Commit Graph

323 Commits

Author SHA1 Message Date
Spring Buildmaster
dc3af1dfd4 [artifactory-release] Release version 2.1.0.RELEASE 2019-01-22 14:30:29 +00:00
Glenn Renfro
580c18ab0b Updated Deployer Dependencies 2019-01-22 08:35:10 -05: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
47f05c87e3 Updated dependencies for RC1
updated to releases

Updated with last bits

Updated deployers  to RC1
2019-01-14 17:47:57 -05: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
b86fbee779 Update docs to discuss exit codes for failed annotated methods
resolves #497
2019-01-14 10:31:22 -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
Glenn Renfro
bf35b2355f Version update for Task RC1 release
resolves #486
2018-12-13 15:53:01 -06: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
6c11d5aea3 Removed snapshots from starter and depencencies pom.xmls 2018-11-02 17:25:11 -04: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
b46ca25133 Updated time to wait for test task to finish in TaskLauncherSinkTests to complete 2018-11-02 15:49:11 -04: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
Glenn Renfro
1c09ecae24 Updated the dependency versions 2018-11-02 13:57:26 -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
Glenn Renfro
c719f8b1f9 Updated getting started docs to use Spring Initializer
resolves #423
2018-10-25 13:11:17 -04:00
David Turanski
cba26ed968 Implement getRunningTaskCount
Expose functionality via TaskExplorer

Polishing on merge
2018-09-05 08:43:55 -04:00
Glenn Renfro
1406fa986c Refer users to SCDF to launch tasks 2018-06-26 14:10:21 -04:00
Glenn Renfro
f8fd74e616 Added docs on deploying SCT apps to CF 2018-06-18 18:42:39 -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
Michael Minella
af24db3f12 Reverted javadoc fix. 2018-05-03 15:27:44 -05:00
Michael Minella
50fce183ef Updated to latest version of the local deployer 2018-05-03 12:34:02 -05:00
Michael Minella
4d4e98345b Updated version prior to GA 2018-05-01 08:58:01 -05:00
Michael Minella
30f50dded9 Fixed integration tests 2018-05-01 08:07:07 -05:00
Michael Minella
ba5bc3908a Documentation fixes prior to GA release
This commit addresses two formatting issues with the documentation as
well as should fix the publishing of the javadocs.

Resolves #417
2018-04-30 12:02:11 -05:00
Michael Minella
f9924782cc Cleaned up dependencies across the project 2018-04-13 17:43:30 -05:00
Michael Minella
508aa84d83 Updated versions prior to release 2018-04-13 17:16:56 -05: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