Skip to content

Configuration options

PropertyTypeDescriptionDefault Value
spring.persistent-tasks.poll-ratejava.lang.IntegerThe interval at which the scheduler checks for new tasks, in seconds.30
spring.persistent-tasks.max-threadsjava.lang.IntegerThe number of threads to use; set to 0 to disable task processing.10
spring.persistent-tasks.task-timeoutjava.time.DurationThe maximum time allowed for a task and scheduler to complete a task.PT5M (5 minutes)
spring.persistent-tasks.poll-task-timeoutjava.lang.IntegerThe interval at which the system checks for abandoned tasks, in seconds.300 (5 minutes)
spring.persistent-tasks.scheduler-enabledjava.lang.BooleanIndicates whether this node should handle triggers.true
spring.persistent-tasks.thread-factoryDEFAULT/VIRTUALWhich thread factory should be used DEFAULT or VIRTUAL.DEFAULT
spring.persistent-tasks.history.delete-afterjava.time.DurationThe max age for a trigger in the history.PT72H (3 days)
spring.persistent-tasks.history.delete-ratejava.time.IntegerThe interval at which old triggers are deleted, in hours.24 (24 hours)

Released under the MIT License.