Commit Graph

53 Commits

Author SHA1 Message Date
Glenn Renfro
c353d68396 Boot updated bom to use batch 5.x
Updated code to remove new deprecations
Updated code to fix compilation errors.
Updated code to add new bits for tests
2022-01-18 14:30:20 -05:00
Glenn Renfro
02b44227d4 Updated project to use Spring Boot 3.0
Resolves issues:
TASK-810
TASK-812
TASK-813
2022-01-13 20:11:55 -05:00
Henning Pöttker
a785fb00b1 No TaskBatchExecutionListener without EnableTask
If SCT is on the classpath but EnableTask has not been used, the TaskBatchExecutionListener will no longer be registered with the jobs.

Issue #651
2021-10-20 16:30:45 -04:00
Glenn Renfro
3102aa0265 Update so that it can be natively compiled by Spring Native 0.11 2021-09-27 11:28:05 -04:00
Glenn Renfro
332e693d5e Resolves Circular Dependency issue
Makes sure that dependencies are passed in via parameters in bean declaraction vs. Autowiring

refer to https://github.com/spring-projects/spring-batch/issues/3991
resolves #797

Updated based on code review
2021-09-16 14:00:24 -04:00
Glenn Renfro
78621e7b03 Resolve issues introduced by Boot 2.6.0.M1 upgrade
Updated versions and fixed jdbc test

Updated versions for samples
2021-07-23 15:29:32 -04:00
Glenn Renfro
2cba0f223a Tasks supports JobLauncherApplicationRunner
Will  support JobLauncherCommandLineRunner  if running task on Boot 2.2.0

resolves #645

Updated based on code review and rebased

Updated code based on code review
2020-12-03 09:44:51 -05:00
Glenn Renfro
59c9adf047 Updated all Junit tests to 5.x
resolves TASK-675
2020-07-07 10:55:16 -05:00
Glenn Renfro
8b41515ee3 Upgraded master to use Boot 2.3.0.M4 2020-04-06 11:56:19 -04:00
Glenn Renfro
79719c541f Capture external-execution-id for child tasks started from a partition 2019-10-23 10:04:56 -05:00
Michael Minella
6a5a81b554 Polished 2019-10-22 16:59:14 -05:00
Glenn Renfro
d39ed3c7cb Resolve issue where spring.batch.job.names was not expressed
when using TaskJobLauncherCommandLineRunner

resolves #614
2019-10-22 14:13:56 -05:00
Glenn Renfro
0a179aae61 Allows users to set spring.batch.job.enabled with fail-on-job-failure.
resolves #525
2019-07-03 13:33:50 -05:00
Glenn Renfro
16f68020fb Update dependency versions 2019-05-07 13:54:00 -04:00
Glenn Renfro
8a3ac48cc3 Updated all task_lock tables to add NOT NULL to primary keys.
resolves #505
2019-03-22 11:52:57 -04:00
Spring Operator
2bff013b83 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 204 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Updated Spring Cloud Build dependency

this was so that we can get the latest spring-cloud-build
2019-03-21 16:34:26 -04:00
Glenn Renfro
03d9a980e9 Cleanup from Checkstyle changes
resolves #511

* Sets the appropriate copyright dates
* Updates some docs
2019-02-13 12:21:14 -05:00
Marcin Grzejszczak
60f1e21d03 Added checkstyle 2019-02-03 19:27:07 +01:00
Glenn Renfro
30399dbb57 Established @EnableTask to create instance of TaskLifecycle Bean
resolves #494
2018-12-10 16:07:31 -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
f083d7a7ff Corrects code to remove bug reports from Sonar Report
Resolves #478
2018-11-12 14:54:47 -05: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
Michael Minella
71b74665a0 Polish 2018-02-13 11:49:56 -06:00
Glenn Renfro
01311e8be6 FactoryBean now sets the tablePrefix for taskBatchExecutionListener
resolves #353
2018-02-13 11:49:48 -06: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
Michael Minella
1ae7930d09 Added ability to cofigure CommandLineRunner order
This commit adds the ability to configure the order for the
TaskJobLauncherCommandLineRunner.  It also provides minor polish on a
few other code review related items.
2018-02-12 17:03:48 -06:00
Glenn Renfro
cd4dbe6a93 Allows failed batch apps to set exit code of task app.
resolves #201
 Please enter the commit message for your changes. Lines starting

Cleanup Removed taskProperties from TaskBatchAutoConfiguration
2018-02-12 17:03:36 -06:00
Glenn Renfro
b6f6d68385 Deprecate the use of spring.cloud.task.batch.listener.enable
replace it with spring.cloud.task.batch.listener.enabled

resolves #379
2018-02-12 13:41:59 -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
d95f46002f Migrate Task to Spring Cloud Build 2.0.x
resolves #313
2017-07-12 11:38:00 -05:00
Michael Minella
3b8670e765 Provided the ability to configure if properites are sent to the worker
via command line arguments or environment variables.
2017-06-23 13:08:14 -05:00
Glenn Renfro
bbb0d68ce6 Moved the injection of the TaskBatchListner to the postProcessAfterInitialization from postProcessBeforeInitialization
Because when using FactoryBeans  the TaskBatchListener postprocessing isn't fired when using before initialization
2017-04-10 14:37:04 -04:00
Michael Minella
1d1a935f46 Add appending capabilities to the SimpleCommandLineArgsProvider
Adds the ability to add a list of command line arguments to the existing
ones.

Resolves #279
2017-02-10 13:45:55 -06:00
Glenn Renfro
acaaad89f3 Adds support for Task Execution Parent Ids
resolves #261
2017-01-20 14:47:12 -06:00
Glenn Renfro
1185421803 TaskBatchAutoConfiguration now uses datasource from TaskConfigurer
resovles #252
2016-12-20 19:25:26 -06:00
Glenn Renfro
44b3531824 Removed un-necessary test 2016-11-01 20:30:09 -04:00
Glenn Renfro
eff83a1897 Added More tests. 2016-11-01 17:32:22 -04:00
Glenn Renfro
1611c28768 Adding a few more tests.
Added unit tests to classes that had no coverage.
Added unit tests to classes bump up coverage.
2016-11-01 17:32:22 -04:00
Michael Minella
17e4250586 Checks for invalid ExecutionId in the TaskLifeCycleListener
resolves #115
* Fixes bug where if the user set the environment variable and commandline args a unique constraint would fire.
* Updated docs
* Removed deprecation
* Fixed version number for integration test.

Added integration tests for externally generated task executions

Add externalExecutionId

resolves #80
2016-10-12 12:45:29 -05:00
Michael Minella
025c447b89 Refactored for CloudFoundry Support
This commit adds on an abstraction for the providing unique command line
arugements for each worker.  It also updates the partitioned job sample
to be able to successfully be run on CloudFoundry.

Resolves spring-cloud/spring-cloud-task#193

Updated based on comments
2016-09-08 14:20:08 -04:00
Michael Minella
526dc41af9 Added abstraction for defining environment variables
When launching workers as separate tasks, it can be useful to be able to
use additional logic to define environment variables.  This commit
provides an abstraction to allow for the customization of environment
variables on a per worker basis as well as two useful implementations:

* A no-op implementation (returns an empty Map).
* An implementation that moves the current environment variable handling
* out of the `DeployerPartitionHandler`.

Resolves spring-cloud/spring-cloud-task#181
2016-07-22 10:29:36 -05:00
Michael Minella
57e9d4dcae Refactored dependency management
Created a Spring Boot starter that can be used to configure Spring Cloud
Task and it's related functionality.

Updates per code review

Removed autowiring of app context

Refactored DeployerPartitionHandler to correctly use environment variables

Exposed deployment properties of TaskLauncher

Exposed deployment properties via the TaskLaunchRequest

Updated based on code review
2016-07-06 16:15:13 -04:00
Glenn Renfro
15a1c168d0 Updated version numbers for deployers and fixed tests. 2016-06-28 22:55:16 -04:00
Glenn Renfro
df14546a7f SCT-139 Exception info and error codes will be recorded for the task
resolves spring-cloud/spring-cloud-task#139
2016-05-20 09:57:23 -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