Commit Graph

135 Commits

Author SHA1 Message Date
Spring Buildmaster
dc3af1dfd4 [artifactory-release] Release version 2.1.0.RELEASE 2019-01-22 14:30:29 +00:00
Spring Buildmaster
549e9e14cd [artifactory-release] Next development version 2019-01-15 14:06:50 +00:00
Spring Buildmaster
3534b42f79 [artifactory-release] Release version 2.1.0.RC1 2019-01-15 14:06:46 +00:00
Glenn Renfro
9c20e45771 Updated the DB2 Script to fix the not null in primary key.
resolves #500
2019-01-14 16:41:48 -06:00
Glenn Renfro
39a74253b6 closeContextEnable should be closeContextEnabled in docs 2019-01-11 10:24:05 -05:00
Spring Buildmaster
d3381b71f9 [artifactory-release] Next development version 2018-12-13 22:12:42 +00:00
Spring Buildmaster
a1c10b8d46 [artifactory-release] Release version 2.1.0.M2 2018-12-13 22:12:38 +00:00
Michael Minella
5525382563 Polish 2018-12-13 15:02:42 -06:00
Glenn Renfro
30399dbb57 Established @EnableTask to create instance of TaskLifecycle Bean
resolves #494
2018-12-10 16:07:31 -05:00
wildloop
b4b50e8182 bug-fix: throwable param's required for @FailedTask annotated methods
Lack of this parameter causes:
-  the exception with message: "o.s.c.t.listener.TaskLifecycleListener: taskExecution and throwable parameters are required for @FailedTask annotated methods :While handling this error: java.lang.IllegalStateException: Failed to execute ApplicationRunner" - please, take look at [this](https://github.com/spring-cloud/spring-cloud-task/blob/master/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/annotation/TaskListenerExecutor.java#L113)
- and, as a consequence, a lost lock on the task (record in the table `task_locks`)
2018-12-06 17:10:49 -05:00
Michael Minella
da56c2b08e Polish 2018-12-05 16:53:20 -06:00
Glenn Renfro
2c1e696da2 Add documentation on when to resolve SCT delcared beans.
resolves #491
2018-12-05 16:53:12 -06:00
Janne Valkealahti
de45d1eb47 Rely on spring-cloud-deployer autoconfig
- Deployer core/local uses 2.0.0.BUILD-SNAPSHOT
- Use pring-cloud-deployer-dependencies bom
- Remove ResourceLoadingAutoConfiguration as that is now in
  deployer itself with a way to configure loaders.
- spring-cloud-task-core now depends on spring-cloud-deployer-autoconfigure.
- Rest of deployer modules like support/maven are still defined in deps
  as those are optional in spring-cloud-deployer-autoconfigure.
2018-11-29 15:42:34 +00:00
Glenn Renfro
8e1d38a76a Cleanup code smells reported by Sonar
This is a first pass are removing some of the code smells.
Many reported code smells were ignored in this effort
2018-11-27 16:09:17 -05:00
Glenn Renfro
fa3e4e55c6 Updated tests to remove SQL Bad Grammar warnings
Also replacing the last of the SpringJunit4ClassRunner with SpringRunner
Other cleanup

resolves #482
2018-11-21 11:17:31 -06:00
Glenn Renfro
ab58cdd9df Added discussion on using SmartLifecycle#stop to java docs.
Also updated other docs in the TaskLifecycleListener.

resolves #471
2018-11-21 10:46:05 -06:00
Glenn Renfro
f083d7a7ff Corrects code to remove bug reports from Sonar Report
Resolves #478
2018-11-12 14:54:47 -05:00
Spring Buildmaster
9d38c9a86d [artifactory-release] Next development version 2018-11-02 21:54:16 +00:00
Spring Buildmaster
3c8cfcf1d8 [artifactory-release] Release version 2.1.0.M1 2018-11-02 21:54:11 +00:00
Glenn Renfro
f772956680 Binary defaults for conditional metadata now used Binary Type
Before they were of String type

resolves #467
2018-11-02 16:21:01 -04:00
Glenn Renfro
4387d816d1 Updated javadoc to remove ContextRefreshedEvent
Updated it to discuss SmartLifecycle#start() as the agent that kicks off the task.

resolves #447
2018-11-02 14:52:43 -05:00
Glenn Renfro
422efcee78 Added spring-boot-autoconfigure-processor to the active modules of SCT
resolves #432
2018-11-02 14:05:44 -05:00
Ilayaperumal Gopinathan
324abd4e5c Exit code is nullable
- Make exit code nullable and only update of execution status can make it a valid integer
 - Update JDBC create/start task execution queries to have exitCode as `null` values
 - Update tests to validate/verify the appropirate exit code values for create/start/complete task executions

On merge had to add a pause to the TaskLauncherSinkTests to wait for the task to complete successfully   Before we assumed that 0 was a satisfactory result meaning it was either running or completed.    Now with the null being returned it could be zero or null.  So we have to wait for the task to complete.
2018-11-02 14:45:55 -04:00
Michael Minella
7be8b8a105 Polish 2018-11-02 11:56:42 -05:00
Glenn Renfro
c7ef7fbff4 Starting to move to java 11[Do Not Merge]
All version changes are present.

Fixed all Java-Doc Errors and warnings

* Due to the stricter nature of the javadoc compiler we can't wrap <ul> / <ui> in <p>
* We will also need to Push up a test app for taklauncher to work with.   The old one fails to start now.   Or use one of the task starters possibly.
* Built on the work from TASK-439C.   Wait for that merge before merging this one.
* Replaced applicationFailedEvent class attribute with applicaitonFailedException
* Also polished the app used by the taskLauncherSink integration test
2018-11-01 15:23:17 -04:00
Michael Minella
90c88c52e6 Polish 2018-11-01 10:45:15 -05:00
Glenn Renfro
d2bc2530cc Update Task to BOOT 2.1.M1
Migrating to use ApplicationContextRunner or ImportAutoConfiguration with SpringApp.run, instead of SpringApplicationBuilder, because builder does not handle AutoConfiguration properly

SimpleTaskAutoConfiguration now has an annotation AutoConfigureBefore the BatchTaskAutoConfig so that it is processed prior.  THis is so that that BatchTaskAutoConfig can create the appropriate beans

SimpleTaskAutoConfiguration has new annotations so that it is AutoConfigured after BindingServiceConfiguration and after SimpleTaskAutoConfiguration.  This is so that it does not attempt to start emitting messages before stream is ready and it can create the appropriate beans after SimpleTaskAutoConfiguration has run.

Renamed SimpleTaskConfiguration to SimpleTaskAutoConfiguration.

Task version updated to  2.1.0

Added missing headers

Updated documentation.

Deprecated EnableTask

Added ability to disable Task autoconfiguration.

Removed @EnableTask from tests

Resolves #439
Resolves #440
Resolves #448
Resolves #466
2018-11-01 10:43:31 -05:00
Glenn Renfro
d2c90c5256 Updated to add metadata for Conditionals
Also renamed camel-cased properties to cononical format.

resolves #442
2018-10-26 09:42:14 +01:00
David Turanski
cba26ed968 Implement getRunningTaskCount
Expose functionality via TaskExplorer

Polishing on merge
2018-09-05 08:43:55 -04:00
Gunnar Hillert
de1ebfb351 gh-424 Add the ability to retrieve the last TaskExecution for Tasks
- Add the ability to retrieve the last TaskExecution to:
  - MapTaskExecutionDao
  - JdbcTaskExecutionDao
- Refactor `JdbcTaskExecutionDao` and use `NamedParameterJdbcTemplate` for all persistence store calls
- Add the following TaskExecution methods to TaskExplorer:
  - getLatestTaskExecutionsByTaskNames
  - getLatestTaskExecutionForTaskName
- Add Tests
- Ensure that code is JDK7 compatible due to backporting needs
- Ensure commit backports to 1.2.x

Polishing on tests during merge
2018-06-15 16:54:28 -04:00
Michael Minella
4c5ce965fd Incremented version to the next development version 2018-05-08 17:01:51 -05:00
Spring Buildmaster
81b54aadba [artifactory-release] Next development version 2018-05-03 20:43:48 +00:00
Glenn Renfro
5672b326ed SimpleTaskConfiguration ignores proxy beans when validating datasources
If a user adds spring-cloud-starter-config to the dependencies it has to add a proxy for the datasource else the Hikari connection pool pukes.

resolves #407
2018-04-13 16:19:52 -05:00
Glenn Renfro
0915dc6dfe TaskRepositoryInitializer now uses TaskConfigurer to determine the datasource
resolves #405
2018-03-09 13:22:17 -05:00
Michael Minella
6426cfea7e Polish 2018-02-13 09:28:22 -06:00
Glenn Renfro
76309b89ff Removed code that was marked as deprecated.
Also updated test that tested deprecated code.

resolves #366
2018-02-13 09:28:09 -06:00
Glenn Renfro
d8a73ba183 Prevent a task from starting if an inst with the same name is running.
resolves #81

Using LockRegistryLeaderInitiator to do leadership election.

When task is started and singleInstanceEnabled isset to true then we use leader election
to determine if a task needs to be started.

Error Event Name had to be updated
2018-01-25 13:24:53 -06:00
Glenn Renfro
94e074d841 Set the spring.cloud.task.closecontext_enable default to false
resolves #364
2018-01-24 14:11:35 -06:00
Glenn Renfro
3f316a0170 SCT now handles exceptions thrown by execution listeners
resolves #341
2018-01-24 12:12:50 -06:00
Glenn Renfro
fd2d4a9124 Adds configuration metadata for properties
resolves #365
2018-01-18 11:51:29 -06:00
Glenn Renfro
3ad9efe3fe Updated tests to remove deprecated code from tests
* cleanup removing unused headers
* Updated asserts in code base that needed messages (marked as deprecated)
* left one test that was testing a deprecated constructor.  When that code is removed we can remove that test.
* some other cleanup

resolves #338
2018-01-18 11:42:37 -06:00
Glenn Renfro
e279846e7e Updated Spring Cloud Task to latest releases
Updated to remove all commons-logging-api dependencies to resolve  logging issue.

Updated to handle 2.0.0.M3 Spring Cloud Stream

resovles #347

Changes based on code review
2017-11-01 09:12:46 -04:00
Glenn Renfro
d95f46002f Migrate Task to Spring Cloud Build 2.0.x
resolves #313
2017-07-12 11:38:00 -05:00
Spring Buildmaster
54bce9a590 [artifactory-release] Next development version 2017-06-27 15:46:26 +00:00
Glenn Renfro
c7f15f5c8a Sets Version of repo to 1.2.1
* Docs and poms updated

* Updated deployer dependencies

resolves #323
2017-06-26 17:19:11 -04:00
Glenn Renfro
6c47223859 Repository is not initialized if tablePrefix is set.
resolves #311
2017-06-26 16:04:22 -05:00
Glenn Renfro
b03f8398a7 Task identifies if JPA is in use and uses JPTransactionManager
resolves #309
2017-06-26 15:49:20 -05:00
Glenn Renfro
6fad14ead7 Support DB2 on Mainframe as DB2ZOS
resolves #303

Added support for DB2ZOS DatabaseType.
Added DB2AS400, DB2VSE, based on how Spring Batch implemeted DB2 identification via metadata.
All DB2 database types will use the DB2 repository initialize sql script

Tested this against a local DB2.
2017-05-19 10:44:08 -04:00
Spring Buildmaster
1a16d44b2c [artifactory-release] Next development version 2017-04-24 19:36:00 +00:00
David Turanski
a1cffe8bd4 Change closecontextEnable to closeContextEnabled
Added test

Updated to use the standard log library

resolves #217
2017-04-12 11:06:26 -04:00