Skip to content

Commit d1bf375

Browse files
committed
wip
1 parent 49c0cda commit d1bf375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scheduler/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_scheduled_task(task_type_str: str, task_id: int) -> "BaseTask": # noqa:
4545
if task_type_str in TASK_TYPES:
4646
try:
4747
task_type = TaskType(task_type_str)
48-
task = model.objects.filter(task_type=TaskType.ONCE, id=task_id).first()
48+
task = model.objects.filter(task_type=task_type, id=task_id).first()
4949
if task is None:
5050
raise ValueError(f"Job {task_type}:{task_id} does not exit")
5151
return task

0 commit comments

Comments
 (0)