Skip to content

Commit

Permalink
fix:修复定时任务的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tahitimoon committed May 20, 2024
1 parent 2a5567d commit 93e8cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/apps/lunarlink/utils/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def update_task(self, task_id):
crontab = celery_models.CrontabSchedule.objects.create(
**self.__crontab_time
)
task_obj.update(
task_obj.save(
name=f"{self.__project}_{self.__name}",
crontab=crontab,
enabled=self.__switch,
Expand Down

0 comments on commit 93e8cc5

Please sign in to comment.