Skip to content

Commit f28a47a

Browse files
committed
fixed delete-after
1 parent 9040ea6 commit f28a47a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ SpringBeanTask<Vehicle> task1(VehicleRepository vehicleRepository) {
117117

118118
### Spring configuration options
119119

120-
| Property | Type | Description | Default Value |
121-
| ---------------------------------------------- | -------------------- | ------------------------------------------------------------------------ | ------------- |
122-
| `spring.persistent-tasks.poll-rate` | `java.lang.Integer` | The interval at which the scheduler checks for new tasks, in seconds. | - |
123-
| `spring.persistent-tasks.max-threads` | `java.lang.Integer` | The number of threads to use; set to 0 to disable task processing. | `10` |
124-
| `spring.persistent-tasks.task-timeout` | `java.time.Duration` | The maximum time allowed for a task and scheduler to complete a task. | `5 minutes` |
125-
| `spring.persistent-tasks.poll-task-timeout` | `java.lang.Integer` | The interval at which the system checks for abandoned tasks, in seconds. | `5 minutes` |
126-
| `spring.persistent-tasks.history.delete-after` | `java.lang.Integer` | The interval at which old triggers are deleted, in seconds. | `72 hours` |
127-
| `spring.persistent-tasks.scheduler-enabled` | `java.lang.Boolean` | Indicates whether this node should handle triggers. | `true` |
120+
| Property | Type | Description | Default Value |
121+
| ---------------------------------------------- | -------------------- | ------------------------------------------------------------------------ | ------------------ |
122+
| `spring.persistent-tasks.poll-rate` | `java.lang.Integer` | The interval at which the scheduler checks for new tasks, in seconds. | - |
123+
| `spring.persistent-tasks.max-threads` | `java.lang.Integer` | The number of threads to use; set to 0 to disable task processing. | `10` |
124+
| `spring.persistent-tasks.task-timeout` | `java.time.Duration` | The maximum time allowed for a task and scheduler to complete a task. | `PT5M` (5 minutes) |
125+
| `spring.persistent-tasks.poll-task-timeout` | `java.lang.Integer` | The interval at which the system checks for abandoned tasks, in seconds. | `300` (5 minutes) |
126+
| `spring.persistent-tasks.history.delete-after` | `java.time.Duration` | The interval at which old triggers are deleted, in duration format. | `PT72H` (72 hours) |
127+
| `spring.persistent-tasks.scheduler-enabled` | `java.lang.Boolean` | Indicates whether this node should handle triggers. | `true` |
128128

129129
# Setup DB with Liquibase
130130

core/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"name": "spring.persistent-tasks.history.delete-after",
25-
"type": "java.lang.Integer",
25+
"type": "java.lang.Duration",
2626
"description": "The interval at which old triggers are deleted, in seconds. Defaults to every 72 hours."
2727
},
2828
{

0 commit comments

Comments
 (0)