mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor: remove final async blocking query
This commit is contained in:
+1
-1
@@ -1600,7 +1600,7 @@ class Scheduler(ConfigReloadMixin, metaclass=SingletonClass):
|
||||
trigger_source=trigger_source,
|
||||
)
|
||||
finally:
|
||||
task = AgentTaskOper().get(task_id)
|
||||
task = await AgentTaskOper().async_get(task_id)
|
||||
if task and task.trigger_type == "date" and not task.enabled:
|
||||
self.remove_agent_task_job(task_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user