fix: 注册dpm task

This commit is contained in:
caoqianming 2024-06-11 17:11:20 +08:00
parent e95b7b73bc
commit 7f3da29560
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class CheckTaskSetCreateSerializer(CustomModelSerializer):
sch = validated_data["myschedule"]
pobj = PeriodicTask()
pobj.name = 'checktask_' + time.strftime('%Y%m%d%H%M%S')
pobj.task = 'apps.dpm.dispath_checkwork_task'
pobj.task = 'apps.dpm.tasks.dispath_checkwork_task'
if sch.crontab:
pobj.crontab = sch.crontab
elif sch.interval: