Commit Graph

65 Commits

Author SHA1 Message Date
Glenn Renfro
d657b22b79 Updated dependencies and refactored code.
* Updated spring cloud streams to 1.1.0.RELEASE
* Updated cloud dependencies parent to 1.2.1.RELEASE
* Updated samples to 1.4.1
* Updated Tests to take advantage of 1.4 boot test annotations
* Removed @Bindings as they are deprecated
* Updated BatchApplication test to pass.  Boot no longer logs environment values.  So count was reduced from 3 to 1

resolves #218, #221

renamed spring-cloud-task-starter to spring-cloud-starter-task
2016-10-11 08:38:38 -05:00
Michael Minella
441bbfe492 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
2016-10-10 17:45:35 -05:00
Glenn Renfro
3f83b33104 Updated Versions for this build 2016-09-08 18:33:50 -04:00
Glenn Renfro
b0602fc56b Removed relative path from sample parent 2016-09-08 17:52:37 -04:00
Michael Minella
025c447b89 Refactored for CloudFoundry Support
This commit adds on an abstraction for the providing unique command line
arugements for each worker.  It also updates the partitioned job sample
to be able to successfully be run on CloudFoundry.

Resolves spring-cloud/spring-cloud-task#193

Updated based on comments
2016-09-08 14:20:08 -04:00
Michael Minella
c14d2efca3 Refactored
Refactored based on conversations with wider team

Updates per code review
2016-09-08 10:35:31 -04:00
Glenn Renfro
6afc5cc260 Removed the deprecations from the Task Samples unit tests
With the latest release of boot some of the test classes were deprecated.  This change removes the deprecation warnings from samples.
2016-08-18 16:59:57 -04:00
Dave Syer
0f0bfbe525 Change repo URLs to https 2016-08-17 17:31:27 +01: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
551a4bc53a Upgrade to Spring Boot 1.4
This commit upgraded all places where Spring Cloud Task explicitly
references Spring Boot 1.4

Resolves spring-cloud/spring-cloud-task#166

Updated the jar version numbers in the adocs to 1.1.0
2016-08-15 09:54:08 -04:00
Michael Minella
9f0377df0b Moved master to 1.1.0.BUILD-SNAPSHOT 2016-08-09 14:48:46 -05:00
Michael Minella
e0636e230c Bumped to next development version in constants: 2016-08-08 14:53:28 -05:00
bamboo
4645e9f5b1 [artifactory-release] Next development version 2016-07-27 05:59:23 +00:00
Michael Minella
843c7683f4 Updated versions prior to release 2016-07-26 23:42:49 -05:00
Glenn Renfro
1e1f75d7ba Applied the TaskPartitioner Integration tests.
resolves #178
Using task explorer and cleaned up the BatchExecution Event Tests

Added spring-cloud-task-dependencies to dependency-management
2016-07-26 14:52:25 -05:00
Michael Minella
d6c36ee559 Added starter to dependencies 2016-07-25 13:01:09 -04: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
Glenn Renfro
21d4a17591 Use human readable names in pom.xml for all task projects.
* Update pom to include text for contributor agreement
* Update samples to the latest release number
* Remove CLA section from README.adoc

Resolves #172
2016-07-21 21:59:01 -10:00
Michael Minella
57ec71ce0e Updated versions to new snapshot version 2016-07-08 16:08:21 -05:00
Glenn Renfro
baaa24137c Updated versions in docs and partitioner to release version. 2016-07-07 23:23:05 -04:00
Glenn Renfro
761df8a598 Updated version numbers
Reset the ResourceLoader to DeploymentResourceLoader
Adjusted the poms to not run deploy for Samples as well as integration tests
Used default constructor
2016-07-07 16:50:58 -05:00
Glenn Renfro
02589b1b2d Update timestamp sample
* Log Level is now at DEBUG
* Removed H2 dependency
* Updated main readme to discuss how to build samples

resolves #165
2016-07-07 11:41:51 -05:00
Michael Minella
7f1ece96e6 Removed unused default 2016-07-06 15:52:21 -05: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
Michael Minella
3ad9e1789f Added generation of sources.jar and javadoc.jar to samples builds 2016-06-29 00:26:15 -05:00
Glenn Renfro
eddd38797b 2 typos 2016-06-27 14:54:38 -05:00
Glenn Renfro
3ec0769e02 Replaced the mysql dependency with mariadb
To remain standard with the other applications.
Also updated documentation.
2016-06-27 14:54:38 -05:00
Michael Minella
1b3aac1b8d Removed snapshot versions for Spring Cloud Stream's Rabbit binder 2016-06-14 14:41:33 -05:00
Michael Minella
2cc39475b5 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.
2016-06-14 14:41:33 -05: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
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
Glenn Renfro
f38e1c4195 Added missing Readme to batchevents sample.
Fixed a C/P mistake on 2 other readmes.
2016-06-13 15:29:32 -05:00
Glenn Renfro
b728775bdf Task Sample Poms should not inherit form parent project
They should inherit from spring-boot-starter-parent

Resolves #144
2016-06-10 16:11:29 -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
Glenn Renfro
7f53c7d9f7 Update TaskLaunchRequest to use URI
Update examples to use apps instead of modules

resolves spring-cloud/spring-cloud-task#146
2016-05-24 09:29:45 -04:00
Glenn Renfro
ef1c027146 Replaces Redis as RabbitMQ for test binder.
resolves spring-cloud/spring-cloud-task#134
2016-05-18 18:46:26 -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
b192f79f75 Disabled deployment of all sample apps 2016-04-26 23:19:40 -05:00
Michael Minella
f126d51775 Updated dependencices in preparation for M2 release 2016-04-26 22:24:18 -05:00
Michael Minella
bf52aee188 Code review cleanup 2016-04-25 23:05:31 -05:00
Michael Minella
43d869f726 Add Job Event Messaging to tasks.
* Added test for sample and cleanup

* Added skipEventsListener

* Added new message format.

* Added integration tests.

* Updated application.properties to add json content type

resolves spring-cloud/spring-cloud-task#119
2016-04-25 23:05:07 -05:00
Glenn Renfro
1cd18497b8 Updates the default group used by the task processor sample
resolves spring-cloud/spring-cloud-task#122
2016-04-15 10:19:23 -05:00
Ilayaperumal Gopinathan
08f7b77aed Minor updates
- Add `task-events` as a module to samples parent POM
 - Rename task configuration class in task-events sample
2016-04-15 20:35:23 +05:30
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
695e71f6b9 Updated Per Code Review 2016-03-23 16:05:30 -04:00
Michael Minella
8272421ea9 Fixed READMEs in samples to not reference old build property 2016-03-23 12:15:49 -05:00
Michael Minella
9f8f8b773e Updated group ids for all samples to be io.spring.cloud and removed the
configuration for them not to be installed in a local repository.
2016-03-23 12:11:56 -05:00