Commit Graph

12 Commits

Author SHA1 Message Date
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
Glenn Renfro
df14546a7f SCT-139 Exception info and error codes will be recorded for the task
resolves spring-cloud/spring-cloud-task#139
2016-05-20 09:57:23 -05:00
Glenn Renfro
5c0a83dd4f SCT-132 Maven pom cleanup for tasks
resolves spring-cloud/spring-cloud-task#132
2016-05-09 12:55:16 -05:00
Michael Minella
f126d51775 Updated dependencices in preparation for M2 release 2016-04-26 22:24:18 -05:00
Ilayaperumal Gopinathan
9a073631f1 Modify poll interval assertion in DeployerPartitionHandlerTests
- Greater than 20s poll interval check in the assertion might as well needs to be equal to 20s interval as the test could finish before the next second
2016-04-08 11:16:50 -05:00
Michael Minella
d810601708 Added message for debugging timing issues in tests 2016-04-06 14:21:23 -05:00
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
695e71f6b9 Updated Per Code Review 2016-03-23 16:05:30 -04:00
Glenn Renfro
685e4aabee Changes to support putting SCDF back onto snapshot
* Only configure the BatchListener if the Job.class has a bean instance
* Add the task-batch to the task-dependencies pom.
2016-03-23 14:14:41 -04: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
Michael Minella
7c8fc5f50e Add listener to persist relationship between job and task
This introduces a listener that stores the association between a Spring
Batch job and the task it was executed within.

Resolves spring-cloud/spring-cloud-task#46

Merge Changes based on code review.
2016-03-11 09:16:59 -05:00