Updated to add metadata for Conditionals
Also renamed camel-cased properties to cononical format. resolves #442
This commit is contained in:
committed by
Janne Valkealahti
parent
c719f8b1f9
commit
d2c90c5256
@@ -218,7 +218,7 @@ returned from the task is the same as a boot application.
|
||||
To override this behavior and allow the task to return an exit code other than zero when a
|
||||
batch job returns an
|
||||
https://docs.spring.io/spring-batch/4.0.x/reference/html/step.html#conditionalFlow[ExitStatus]
|
||||
of `FAILED`, set `spring.cloud.task.batch.failOnJobFailure` to `true`. Then the exit code
|
||||
of `FAILED`, set `spring.cloud.task.batch.fail-on-job-failure` to `true`. Then the exit code
|
||||
can be 1 (the default) or be based on the
|
||||
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-spring-application.html#boot-features-application-exit[specified
|
||||
`ExitCodeGenerator`])
|
||||
|
||||
@@ -346,14 +346,14 @@ the exit messages from both the `onTaskStartup` and `onTaskFailed`.
|
||||
|
||||
Spring Cloud Task lets you establish that only one task with a given task name can be run
|
||||
at a time. To do so, you need to establish the <<features-task-name, task name>> and set
|
||||
`spring.cloud.task.singleInstanceEnabled=true` for each task execution. While the first
|
||||
`spring.cloud.task.single-instance-enabled=true` for each task execution. While the first
|
||||
task execution is running, any other time you try to run a task with the same
|
||||
<<features-task-name, task name>> and`spring.cloud.task.singleInstanceEnabled=true`, the
|
||||
<<features-task-name, task name>> and`spring.cloud.task.single-instance-enabled=true`, the
|
||||
task fails with the following error message: `Task with name "application" is already
|
||||
running.` The default value for `spring.cloud.task.singleInstanceEnabled` is `false`. The
|
||||
following example shows how to set `spring.cloud.task.singleInstanceEnabled` to `true`:
|
||||
running.` The default value for `spring.cloud.task.single-instance-enabled` is `false`. The
|
||||
following example shows how to set `spring.cloud.task.single-instance-enabled` to `true`:
|
||||
|
||||
`spring.cloud.task.singleInstanceEnabled=true or false`
|
||||
`spring.cloud.task.single-instance-enabled=true or false`
|
||||
|
||||
To use this feature, you must add the following Spring Integration dependencies to your
|
||||
application:
|
||||
|
||||
Reference in New Issue
Block a user