Commit Graph

52 Commits

Author SHA1 Message Date
David Turanski
a1cffe8bd4 Change closecontextEnable to closeContextEnabled
Added test

Updated to use the standard log library

resolves #217
2017-04-12 11:06:26 -04:00
Ali Shahbour
450de51d0c Add Ordered interface to all event listeneres
changes requested by cppwfs

Fix Constructors duplication

Add @author

Some cleanup on chunk listener

Updated chunk listener to send message before and after chunk.
Fixed Links for JavaDocs to prevent failure on javadoc build.
Updated tests to support new chunk messages.
2017-03-31 09:15:28 -04:00
Glenn Renfro
ad6ce32750 Update copyright to this year 2017-03-22 09:08:36 -04:00
Glenn Renfro
901b21cbe8 Add Note to TaskConfigurer Ref Doc
Reminds users to create their own TaskConfigurer implementation when the DefaultTaskConfigurer does not meet their needs.

resolves #272
2017-03-06 11:13:41 -06:00
Glenn Renfro
3819a418e5 Added docs on handling tests
resolves #281
2017-03-03 11:19:38 -06:00
Glenn Renfro
acaaad89f3 Adds support for Task Execution Parent Ids
resolves #261
2017-01-20 14:47:12 -06:00
Michael Minella
3d1ee18db3 Minor polish 2017-01-06 12:54:38 -06:00
Glenn Renfro
10bb457a5a Allows user to set table prefix via properties.
resolves #244
2017-01-06 12:54:30 -06:00
Michael Minella
91485769d5 Fixed release versions 2016-11-22 10:22:13 -06:00
Glenn Renfro
9074926736 Updated RC1 to GA for migration comments, tests and docs. 2016-11-22 09:39:42 -06:00
Gunnar Hillert
366cbaf213 Revert to Docboc
- Due to the lack of multipage Html support we need to revert to Docbook for the time being
- Revert "gh-246 Remove docbooks from asciidoctor infrastructure"
- This reverts commit 4ed50a6b31.
2016-11-21 05:46:18 -10:00
Gunnar Hillert
4ed50a6b31 gh-246 Remove docbooks from asciidoctor infrastructure
resolves #246

Removed javadoc build from parent pom.

It is now contained in the doc pom
2016-11-16 14:50:05 -05:00
Glenn Renfro
fa5cb4f242 Update docs and static maven artifacts to RC1 2016-11-03 22:47:07 -04:00
Glenn Renfro
4a1a2c3c88 Add Application Name to TaskLaunchRequest for launched task
resolves #238
2016-11-03 15:50:21 -05:00
Michael Minella
cc1f971f3e Build updates to support automated doc deployment
The Spring build infrastructure has the capabilities to deploy
documentation automatically that it finds in Artifactory.  This commit
creates the required zip archive for that process.

Resolves SCT-78
2016-11-03 14:15:56 -05:00
Glenn Renfro
99e5397f29 Added instructions for launching tasks with partitions
resolves #230
2016-11-02 10:44:21 -05:00
Thomas Schuettel
c61a6e9c35 Adds DB2 support
Provides the files and enum constants for Spring Cloud Task
to work with a DB2 database.
2016-10-27 15:26:50 -04:00
Glenn Renfro
8e8a5c927a Added Notes for launching partitions on Mesos/Chronos. 2016-10-20 14:39:50 -04:00
Glenn Renfro
644daa8508 Updated docs for external-execution-id 2016-10-12 17:14:08 -04:00
Glenn Renfro
ce4402053d Version update preparations. 2016-10-12 14:48:03 -04:00
Michael Minella
17e4250586 Checks for invalid ExecutionId in the TaskLifeCycleListener
resolves #115
* Fixes bug where if the user set the environment variable and commandline args a unique constraint would fire.
* Updated docs
* Removed deprecation
* Fixed version number for integration test.

Added integration tests for externally generated task executions

Add externalExecutionId

resolves #80
2016-10-12 12:45:29 -05:00
Steve Brown
bf0c27dd1a Correct typo of closecontext.enable property
https://github.com/spring-cloud/spring-cloud-task/blob/master/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/TaskLifecycleListener.java#L92
2016-09-25 01:51:08 -04:00
Glenn Renfro
8bcd026bf6 Updated docs to include links to samples
Added info on Partitioning with the Kubernetes platform
Updated schema diagram

resolves #212 #209
2016-09-21 17:22:48 -04:00
Glenn Renfro
3f83b33104 Updated Versions for this build 2016-09-08 18:33:50 -04:00
Michael Minella
2f03474bbe Added details discovered when testing against CloudFoundry 2016-09-08 13:36:00 -05:00
Glenn Renfro
29ec7df449 Updated adding guava dependency 2016-09-08 13:36:00 -05:00
Glenn Renfro
3c63196a47 Updated Partition doc and added note on Yarn deployment
Changed the note to a subsection of partitioning

resolves spring-cloud/spring-cloud-task#196
2016-09-08 13:36:00 -05:00
Glenn Renfro
37bc7646ee updated module commands with app commands
resolves #189
2016-09-07 17:47:04 -04:00
Michael Minella
db0565b7cf Introduced Error Message to Task Execution
To provide the ability to control task orchestration via the exit
message, we moved the stack trace storage to a new field.  This means
that exit message is now a field we can use similar to how exit code is
in batch, and still have the stack trace of an unsuccessful task
execution stored.

Resolves spring-cloud/spring-cloud-task#186

Disabled integration tests by default

Just some cleanup on merge
2016-08-15 18:30:15 -04:00
Michael Minella
172f4b957a Added code to record task completion when process is terminated gracefully
Updated per code review

Updates for merge
2016-07-25 16:51:44 -04:00
Michael Minella
57e9d4dcae Refactored dependency management
Created a Spring Boot starter that can be used to configure Spring Cloud
Task and it's related functionality.

Updates per code review

Removed autowiring of app context

Refactored DeployerPartitionHandler to correctly use environment variables

Exposed deployment properties of TaskLauncher

Exposed deployment properties via the TaskLaunchRequest

Updated based on code review
2016-07-06 16:15:13 -04:00
Michael Minella
eb54285c9a Updated versions in documentation 2016-06-28 22:33:07 -05:00
Michael Minella
8aa02da2cd Renamed properties to better be grouped in YAML
Updated Unit tests to pass
2016-06-27 19:50:59 -04:00
Michael Minella
5393962685 Fixed verbage around return codes and batch 2016-06-27 15:26:42 -05:00
Glenn Renfro
53936945b5 Document how Job Failures relate to Tasks
Resolves #123
2016-06-27 15:11:12 -05:00
Michael Minella
0706e08137 Added all batch disable properties 2016-06-27 09:28:17 -05:00
Glenn Renfro
43943dcae5 Fixes BeanNotFoundException when disabling BatchEventListeners.
Resolves #153
2016-06-27 09:28:10 -05:00
Glenn Renfro
319db45c4e 3 spelling corrections 2016-06-16 14:46:51 -04:00
Michael Minella
bf50b7ad30 Updated versions in documentation & dependency management within samples
Versions where updated in documentation that is included in the
generation of our reference documentation.

Also, to clean up version management within the samples, the
spring-cloud-task-dependencies was introduced into each pom so that
versions are managed at that level.

Updated a version number
2016-06-14 14:55:51 -04:00
Michael Minella
77fdfbdbc0 Refactored the use of the name parameters to be arguments
This PR refactors the use of the term parameters to arguments to be
consistent with how the component is utilized within Spring Cloud Data
Flow.
2016-06-09 09:39:14 -05:00
Michael Minella
619bc567a1 Documentation additions around batch events and formatting fixes 2016-04-26 11:03:33 -05:00
Michael Minella
8368a1cf8c Add Task Event Listener
Adds a Task Listener that emits the TaskExecution as an event via a
Spring Cloud Stream channel (essentially the listener serves as a SCSt
Source).

Resolves spring-cloud/spring-cloud-task#11
2016-04-15 20:34:31 +05:30
Michael Minella
0a56672171 Refactored task end event to be Spring Boot's ApplicationReadyEvent
In testing and other use cases, the ability to keep a context open
beyond the end of a task can be useful.  This change provides the
ability to keep the context alive once a task has completed while also
explicitly shutting the context down (by default) once a task has ended.

Resolves spring-cloud/spring-cloud-task#102
2016-04-06 12:24:52 -05:00
Michael Minella
3d3b90812e Create the DeployerPartitionHandler and related
DeployerStepExecutionHandler

Created a PartitionHandler that delegates to a TaskLauncher from Spring
Cloud Deployer to execute workers.

Resolves spring-cloud/spring-cloud-task#109

Updates per code review
2016-04-04 11:01:03 -04:00
Glenn Renfro
aad0a0b1ee SCT-12 Creates the SCSt sink that can launch tasks.
resolves  spring-cloud/spring-cloud-task#12
2016-03-23 11:11:24 -05:00
Michael Minella
f35f8ef52d Update TaskLifecycleListener to use SmartLifecycle
This commit changes the starting point of a task from the point when the
ApplicationContext issues the ContextRefreshedEvent to
SmartLifecycle#start.  This is a more accurate point of start for a task
in that all beans should now be available.  It also allows us to clean
up many ApplicationContext hacks that were present to get around the
fact that many beans were not ready when a Task was attempting to begin.

Resolves spring-cloud/spring-cloud-task#107
2016-03-18 14:51:59 -04:00
Glenn Renfro
f486050086 SCT-95 Support TaskExecutionListener Annotations
Added the ability to implement TaskExecutionListener functionality without
implementing the TaskExecutionListener interface.

resolves spring-cloud/spring-cloud-task#95
2016-03-09 10:07:39 -06:00
Glenn Renfro
20a56c9581 SCT-35 Tasks Support TaskExecutionListener
resolves spring-cloud/spring-cloud-task#35

TaskExecutionListener now supports TaskExecution Params
2016-02-26 15:11:06 -06:00
Glenn Renfro
91fa6be092 SCT-79 Support sqlserver
resolves spring-cloud/spring-cloud-task#79
2016-02-26 14:53:49 -06:00
Glenn Renfro
3b252680e7 SCT-82 Exit Code needs to be null while task is running
TaskLifecycleListener will set a TaskExecution's exitCode to null upon taskStart in the repository.
Only at the end of the execution will it store the exitCode.

resolves spring-cloud/spring-cloud-task#82
2016-02-25 12:45:32 -06:00