Commit Graph

22 Commits

Author SHA1 Message Date
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
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
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
eb995ee037 SCT-69 Mysql script uses correct engines for each tables.
resolves spring-cloud/spring-cloud-task#69
2016-01-22 11:15:12 -05:00
Michael Minella
846eb3fad9 Stores the command line arguements within the task repository
Resolves spring-cloud/spring-cloud-task#62

Code Review Polishing
2016-01-20 14:59:46 -05:00
Thomas Risberg
1a7cd94721 Adding NOCACHE to sequence TASK_SEQ
Resolves #63
2016-01-19 15:33:39 -05: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
a53a304b45 SCT-56 Adds Pageable to Explorer methods
* findRunningTaskExecutions
* findTaskExecutionsByName

resolves resolves spring-cloud/spring-cloud-task#56
2016-01-07 20:26:05 -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
0e90778f20 SCT-41 Introduces findAll for task explorer
resolves spring-cloud/spring-cloud-task#41
2016-01-04 14:35:23 -06: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
ccd3a553da Code Review Changes 2015-12-16 11:03:59 -06:00
Glenn Renfro
2e6868628b Polishing and rebase 2015-12-16 11:03:59 -06:00
Glenn Renfro
b62cb184c0 SCT-7 Add TaskExplorer implementation
* Supports SimpleTaskExplorer that accepts a TaskExecutionDao.
* Updated Dao's to support the explorer query requirements
* Added tests.

This resolves spring-cloud/spring-cloud-task#7
2015-12-16 11:03:59 -06:00
Glenn Renfro
5c3795e7c7 SCT-33 Sonar Cleanup
* Removes all Critical and Major notifications from Spring Cloud Task.
* Removes unused local variables
* Removes What it saw as redundant null checks and subsequent complexity alert.

resolves spring-cloud/spring-cloud-task#33
2015-12-16 10:56:35 -06:00
Glenn Renfro
ec096b473c SCT-27 Added Oracle, Mysql, Postgres init scripts
* Added Mysql to DatabaseTypes

Resolves spring-cloud/spring-cloud-task#27
2015-12-14 13:00:54 -05: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
Glenn Renfro
ce8854b89e SCT-4 Added SimpleTaskConfiguration
* Added unit tests
* Introduced @EnableTask
* Readme updated to include @EnableTask
* Removed warnings from build
* Cleanup
2015-11-30 15:32:40 -06:00
Michael Minella
93e4698175 fixes spring-cloud/spring-cloud-task#8
SCT-8: Added NoOpTaskExplorer

Set the Junit to test scope.
2015-11-30 14:04:20 -05:00
Michael Minella
54508f7c43 Refactored package name
Just a little cleanup (added a space)
2015-11-20 17:31:28 -05:00
Glenn Renfro
bd1243cae6 Initial commit of POC functionality
This commit provides the inital code from a POC of spring-cloud-task
functionality.  Further cleanup will be done and tracked via future
stories.
2015-11-20 14:42:22 -06:00