The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(cron): import Future at module level in cronjob_tools
kshitijk4poord6997d3ff2a5
diff --git a/tools/cronjob_tools.py b/tools/cronjob_tools.pyindex 00ec153a213..c0bba0c2a2f 100644--- a/tools/cronjob_tools.py+++ b/tools/cronjob_tools.py@@ -7,6 +7,7 @@ import loggingimport sysimport threadingimport time+from concurrent.futures import Futurefrom pathlib import Pathfrom typing import Any, Dict, List, Optional, Union@@ -326,7 +327,6 @@ def _run_claimed_job(job: Dict[str, Any], extra_prompt: Optional[str] = None) ->job_id = job["id"]_registered = Falsefire_owner = None- from concurrent.futures import Futureregistration_owner = object()running_future = Future()