@@ -9,7 +9,6 @@ import os
9
9
from typing import Dict
10
10
from scheduler.types import SchedulerConfiguration, Broker, QueueConfiguration
11
11
12
-
13
12
SCHEDULER_CONFIG = SchedulerConfiguration(
14
13
EXECUTIONS_IN_PAGE = 20 ,
15
14
SCHEDULER_INTERVAL = 10 ,
@@ -48,23 +47,58 @@ Number of job executions to show in a page in a ScheduledJob admin view.
48
47
49
48
Default: ` 20 ` .
50
49
51
- ### SCHEDULER_CONFIG: ` DEFAULT_RESULT_TTL `
50
+ ### SCHEDULER_CONFIG: ` SCHEDULER_INTERVAL `
51
+
52
+ Default scheduler interval, a scheduler is a subprocess of a worker and
53
+ will check which job executions are pending.
54
+
55
+ Default: ` 10 ` (10 seconds).
56
+
57
+ ### SCHEDULER_CONFIG: ` BROKER `
52
58
53
- Default time to live for job execution result.
59
+ ### SCHEDULER_CONFIG: ` CALLBACK_TIMEOUT `
60
+
61
+ ### SCHEDULER_CONFIG: ` DEFAULT_SUCCESS_TTL `
62
+
63
+ Default time to live for job execution result when it is successful.
64
+
65
+ Default: ` 600 ` (10 minutes).
66
+
67
+ ### SCHEDULER_CONFIG: ` DEFAULT_FAILURE_TTL `
68
+
69
+ Default time to live for job execution result when it is failed.
54
70
55
71
Default: ` 600 ` (10 minutes).
56
72
57
- ### SCHEDULER_CONFIG: ` DEFAULT_TIMEOUT `
73
+ ### SCHEDULER_CONFIG: ` DEFAULT_JOB_TTL `
74
+
75
+ Default timeout for job info.
58
76
59
- Default timeout for job when it is not mentioned in queue.
60
77
Default: ` 300 ` (5 minutes).
61
78
62
- ### SCHEDULER_CONFIG: ` SCHEDULER_INTERVAL `
79
+ ### SCHEDULER_CONFIG: ` DEFAULT_JOB_TIMEOUT `
63
80
64
- Default scheduler interval, a scheduler is a subprocess of a worker and
65
- will check which job executions are pending.
81
+ timeout (seconds) for a job.
66
82
67
- Default: ` 10 ` (10 seconds).
83
+ Default: ` 300 ` (5 minutes).
84
+
85
+ ### SCHEDULER_CONFIG: ` DEFAULT_WORKER_TTL `
86
+
87
+ Time To Live (TTL) in seconds to keep worker information after last heartbeat.
88
+ Default: ` 600 ` (10 minutes).
89
+
90
+ ### SCHEDULER_CONFIG: ` DEFAULT_MAINTENANCE_TASK_INTERVAL `
91
+
92
+ The interval to run worker maintenance tasks in seconds.
93
+ Default: ` 600 ` 10 minutes.
94
+
95
+ ### SCHEDULER_CONFIG: ` DEFAULT_JOB_MONITORING_INTERVAL `
96
+
97
+ The interval to monitor jobs in seconds.
98
+
99
+ ### SCHEDULER_CONFIG: ` SCHEDULER_FALLBACK_PERIOD_SECS `
100
+
101
+ Period (secs) to wait before requiring to reacquire locks.
68
102
69
103
### SCHEDULER_CONFIG: ` TOKEN_VALIDATION_METHOD `
70
104
@@ -73,12 +107,6 @@ Enables checking stats using API token.
73
107
74
108
Default: no tokens allowed.
75
109
76
- ### SCHEDULER_CONFIG: ` BROKER `
77
-
78
- Broker driver to use for the scheduler. Can be ` redis ` or ` valkey ` or ` fakeredis ` .
79
-
80
- Default: ` redis ` .
81
-
82
110
### ` SCHEDULER_QUEUES `
83
111
84
112
You can configure the queues to work with.
0 commit comments