Commit Graph

21 Commits

Author SHA1 Message Date
Spring Buildmaster
449b62b009 [artifactory-release] Next development version 2016-09-08 20:47:17 +00:00
bamboo
4645e9f5b1 [artifactory-release] Next development version 2016-07-27 05:59:23 +00:00
Michael Minella
526dc41af9 Added abstraction for defining environment variables
When launching workers as separate tasks, it can be useful to be able to
use additional logic to define environment variables.  This commit
provides an abstraction to allow for the customization of environment
variables on a per worker basis as well as two useful implementations:

* A no-op implementation (returns an empty Map).
* An implementation that moves the current environment variable handling
* out of the `DeployerPartitionHandler`.

Resolves spring-cloud/spring-cloud-task#181
2016-07-22 10:29:36 -05:00
bamboo
583e53e9c0 [artifactory-release] Next development version 2016-07-08 19:30:16 +00:00
bamboo
48a8dca6a3 [artifactory-release] Release version 1.0.1.RELEASE 2016-07-08 19:30:16 +00: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
bamboo
5ca639f03c [artifactory-release] Next development version 2016-06-29 05:52:28 +00:00
Glenn Renfro
15a1c168d0 Updated version numbers for deployers and fixed tests. 2016-06-28 22:55:16 -04:00
Michael Minella
30fe0602d0 Update dependencies to latest
This commit brings the dependencies for Spring Cloud Task up to the
latest where appropriate prior to the 1.0.0.RC1 release.
2016-06-14 12:38:08 -05: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
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