We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c0cda commit d1bf375Copy full SHA for d1bf375
scheduler/tools.py
@@ -45,7 +45,7 @@ def get_scheduled_task(task_type_str: str, task_id: int) -> "BaseTask": # noqa:
45
if task_type_str in TASK_TYPES:
46
try:
47
task_type = TaskType(task_type_str)
48
- task = model.objects.filter(task_type=TaskType.ONCE, id=task_id).first()
+ task = model.objects.filter(task_type=task_type, id=task_id).first()
49
if task is None:
50
raise ValueError(f"Job {task_type}:{task_id} does not exit")
51
return task
0 commit comments