This commit is contained in:
27942
2026-03-03 02:28:54 +08:00
parent 3788197358
commit 8c10ded6c7

View File

@@ -30,8 +30,7 @@ class TaskDispatcher:
def _normalize_account_name(account_name: Optional[str]) -> str:
return (account_name or "").strip()
@staticmethod
def _find_active_task(worker_id: str, account_name: str) -> Optional[Task]:
def _find_active_task(self, worker_id: str, account_name: str) -> Optional[Task]:
normalized = self._normalize_account_name(account_name)
if not worker_id or not normalized:
return None