fix: 改密计划关掉周期执行再打开,任务不再执行

pull/5953/head^2
xinwen 2021-04-07 18:34:01 +08:00
parent 48d1eecc08
commit 32e2d19553
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ def create_or_update_celery_periodic_tasks(tasks):
crontab=crontab,
name=name,
task=detail['task'],
enabled=detail.get('enabled', True),
args=json.dumps(detail.get('args', [])),
kwargs=json.dumps(detail.get('kwargs', {})),
description=detail.get('description') or ''