Commit Graph

81 Commits

Author SHA1 Message Date
Glenn Renfro
fc3dcffe4b Added ConditionalOnProperty for batch event listeners
Resolves spring-cloud/spring-cloud-task#130
2016-05-10 13:31:17 -04: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
Ilayaperumal Gopinathan
6073493175 Fix autoconfiguration class entries
- This will make sure to invoke all the auto configuration classes

Resolves #135
2016-05-06 16:52:25 +05:30
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
619bc567a1 Documentation additions around batch events and formatting fixes 2016-04-26 11:03:33 -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
Ilayaperumal Gopinathan
ced5a3aa87 Add integration test for task events
This resolves #126

Use RedisConnectionFactory from RedisTestSupport

Add sub-project for integration tests

 - Since there are overlaps with the integration tests and the unit tests running together (using redis binder vs test support binder), it is better to move the integration tests
to a separate sub-project

Little cleanup
2016-04-20 10:03:30 -04: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
Ilayaperumal Gopinathan
5b72400b06 Remove binder dependency from spring-cloud-task-stream
- Spring Cloud Task Stream shouldn't depend on a specific binder implementation; hence removing redis binder from dependencies
   - The binder dependency needs to come from the task application
 - Also removed few other unwanted dependencies

This resolves #120

Added spring-cloud-task-core back as a dependency.

This will be needed when https://github.com/spring-cloud/spring-cloud-task/pull/117 is merged.
2016-04-12 14:41:28 -04:00
Michael Minella
bdd73632eb Added context active check 2016-04-11 08:39:15 -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
Michael Minella
726441dda3 Increase paraemter size to 2500
Some parameters provided to tasks can be quite large (classpath
definitions for hadoop based jobs for example).  This commit increases
the size of the parameter field in the task repository from 250 to 2500.

Resolves spring-cloud/spring-cloud-task#112
2016-03-29 11:56:51 -05: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
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
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
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
Michael Minella
bb76cef391 Remove hard dependency on SLF4J
This PR removes the use of SLF4J from all non-test code.  SLF4J is still
directly referenced in the unit tests because of the mocking
functionality we're using.  We can explore refactoring that in a later
PR.

Resolves spring-cloud/spring-cloud-task#101
2016-03-09 12:11:53 -06:00
Glenn Renfro
dc26f7c98d SCT-96 Update TaskRepository to be additive only
resolves spring-cloud/spring-cloud-task#96
2016-03-09 11:44:05 -06:00
Michael Minella
83836e1eea Sonar cleanup 2016-03-09 10:48:07 -06: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
Michael Minella
27c8c6d76d Refactored building of TaskLifecycleListener
When using Spring Boot's datasource initialization features, there was
the possibility that the datasource used by the TaskLifecycleListener
was not ready by the time it was needed for regular injection.  This
commit addresses that by obtaining the datasource at the last possible
moment.

Resolves spring-cloud/spring-cloud-task#83

Updates per code review
2016-02-26 13:44:45 -05: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
Dave Syer
472df2a399 Use same wrapper script as other Cloud projects 2016-02-12 18:00:38 +00:00
Michael Minella
d8e68d2558 Refactored database initialization
This commit introduces the `TaskRepositoryInitializer` component.  This
component will initialize the `DataSource` when appropriate and silently do
nothing otherwise.  It can be customized to initialize a specific
`DataSource` as required.

Resolves spring-cloud/spring-cloud-task#84
2016-02-11 18:15:29 -06:00
Mark Pollack
ff881f6546 GH-85 Align maven build conventions with those of other spring cloud projects
* move settings.xml to .settings.xml
* add spring profile to pom.xml with spring repository locations
2016-02-10 16:53:09 -05:00
Michael Minella
93182eab99 Added code of conduct 2016-02-02 11:44:33 -06:00
Dave Syer
f7a9f17236 Adjust dependencies so manual deployment works
With these changes you can "mvn deploy" on the command line
as long as your local settings.xml has the credentials for
the repo.spring.io repositories.
2016-01-27 09:58:06 +00:00
Michael Minella
50a3996904 Removed unused build plugin 2016-01-26 17:02:39 -06:00
bamboo
fd0ab6a322 [artifactory-release] Next development version 2016-01-26 22:35:28 +00:00
Glenn Renfro
af23ce5c43 Removed the doc aggregate from parent pom. 2016-01-26 16:53:17 -05:00
Glenn Renfro
cf240f478a Code review 2016-01-26 15:50:43 -05:00
Glenn Renfro
f3340c17ec Now supports javadoc as part of package build. 2016-01-26 15:25:08 -05:00
Michael Minella
812ce0b7a0 Updated to fix title page logo on PDF 2016-01-26 12:47:12 -06:00
Glenn Renfro
715be254a9 Corrected mvn Project Names. 2016-01-26 13:39:38 -05:00
Glenn Renfro
bed52091a9 SCT-58 Add bom to SCT
Resolves spring-cloud/spring-cloud-task#58
2016-01-26 11:10:50 -06:00
Glenn Renfro
2efa75ff16 SCT-72 Remove externalExecutionID & StatusCode
Will add these back when and if they are needed.

resolves spring-cloud/spring-cloud-task#72
2016-01-26 11:57:23 -05:00
Michael Minella
20b5e046ae Initial commit of reference documentation
This is the initial cut of the reference documentation for Spring Cloud
Task.

Resolves spring-cloud/spring-cloud-task#49

Updates per code review

use mvnw instead of mvn in example
2016-01-25 19:27:31 -05:00
Glenn Renfro
c336bea0d2 SCT-66 Fix for Task_Execution error
Sets the argType for the task_execution_id in the Task_Execution_params to be a BIGINT (vs the VARCHAR)

spring-cloud/spring-cloud-task#66
2016-01-25 15:14:06 -05:00