refactor: remove final async blocking query

This commit is contained in:
jxxghp
2026-08-23 23:46:15 +08:00
parent ba2eb869e2
commit 2372b1236e
5 changed files with 61 additions and 5 deletions
+1 -1
View File
@@ -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)