Commit Graph

32 Commits

Author SHA1 Message Date
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
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
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
Glenn Renfro
cf240f478a Code review 2016-01-26 15:50:43 -05:00
Glenn Renfro
715be254a9 Corrected mvn Project Names. 2016-01-26 13:39:38 -05:00
Michael Minella
2ceb353838 Use spring Boot events to get exit code
Spring Boot now provides the result of an ExitCodeExceptionMapper via an
event called ExitCodeEvent.  This commit takes advantage of this new
event.

Resolves spring-cloud/spring-cloud-task#48
2016-01-22 13:26:32 -06:00
Glenn Renfro
d00925622b SCT-59 Add Support for H2 database
resolves spring-cloud/spring-cloud-task#59
2016-01-14 14:21:46 -05:00
Glenn Renfro
584cfb90f5 TaskExecution should use long id
* Replace String executionId with a long executionId
* Add externalExecutionID that is a String

resolves spring-cloud/spring-cloud-task#47
2016-01-06 17:35:47 -06:00
Michael Minella
1c3bb94bbd Added TaskNameResolver and related implementation
TaskNameResolver allows the ability to customize how a task is named.
During normal use cases, the provided SimpleTaskNameResolver should
suffice.

resolves spring-cloud/spring-cloud-task#54
2016-01-06 17:25:48 -05:00
Glenn Renfro
a2674b50bd Install and package targets skipped for timestamp 2016-01-04 17:05:31 -05:00
Michael Minella
61d3cc3641 Refactor of Task API
This change removes the Spring Cloud Task dependency upon a
CommandLineRunner from boot and moves the handling of the task lifecycle
closer to the "edge" of a Spring Boot application.

With this change, now a developer simply adds @EnableTask to their
configuration somewhere and the task lifecycle will be recorded.

Resolves spring-cloud/spring-cloud-task#39
2015-12-29 11:38:41 -05:00
Glenn Renfro
7be3a88826 SCT-23 Added sample apps for Spring Cloud Task
* Timestamp  Demonstrates a Spring boot/task application as a single java file.
* HelloWorld Demonstrates a Spring boot/task application using java configuration.

resolves spring-cloud/spring-cloud-task#23
2015-12-17 10:22:26 -06:00
Glenn Renfro
a9f882f24b SCT-6 Support RDBMS & Map Repositories
* `DefaultTaskConfigurer` returns only one `SimpleTaskRepository` all others have been removed
* `SimpleTaskRepository` can use `JdbcTaskExecutionDao` or a `MapTaskExecutionDao`
* Add `Jdbc` and Map` `TaskRepositoryFactoryBeans` to support the creation of the correct type of `SimpleTaskRepository`
* `TaskDatabaseInitializer` will initialize a database if a datasource is found and if they have not disabled it using the `spring.task.initialize.enable`
* Add tests
* Added Transaction Support
* Re-add the samples to `pom.xml`
* Samples pom skips install and deploy lifecycle targets.
2015-12-08 15:44:14 -05:00
Michael Minella
54508f7c43 Refactored package name
Just a little cleanup (added a space)
2015-11-20 17:31:28 -05:00