Skip to content

Commit 92bd2ea

Browse files
author
ismael
committed
add default value in config for job ttl
1 parent 8ab4942 commit 92bd2ea

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

mrq/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ def add_parser_args(parser, config_type):
150150
type=str,
151151
help='Adds random latency to the network calls, zero to N seconds. Can be a range (1-2)')
152152

153+
parser.add_argument(
154+
'--default_job_ttl',
155+
default=180 * 24 * 3600,
156+
action='store',
157+
type=float,
158+
help='Seconds the tasks are kept in MongoDB when statuses are not success, abort, cancel and started')
159+
153160
parser.add_argument(
154161
'--default_job_result_ttl',
155162
default=7 * 24 * 3600,

0 commit comments

Comments
 (0)