forked from Rockachopa/Timmy-time-dashboard
Integrate Celery task queue for background task processing (#129)
This commit is contained in:
committed by
GitHub
parent
b8ff534ad8
commit
f2dacf4ee0
@@ -476,6 +476,14 @@ def create_full_toolkit(base_dir: str | Path | None = None):
|
||||
except Exception:
|
||||
logger.debug("Delegation tools not available")
|
||||
|
||||
# Background task submission via Celery
|
||||
try:
|
||||
from timmy.tools_celery import submit_background_task
|
||||
|
||||
toolkit.register(submit_background_task, name="submit_background_task")
|
||||
except Exception:
|
||||
logger.debug("Background task tool not available")
|
||||
|
||||
return toolkit
|
||||
|
||||
|
||||
@@ -596,6 +604,11 @@ def get_all_available_tools() -> dict[str, dict]:
|
||||
"description": "Local AI coding assistant using Ollama (qwen2.5:14b or deepseek-coder)",
|
||||
"available_in": ["forge", "orchestrator"],
|
||||
},
|
||||
"submit_background_task": {
|
||||
"name": "Background Task",
|
||||
"description": "Submit a task to the Celery background queue for async processing",
|
||||
"available_in": ["orchestrator"],
|
||||
},
|
||||
}
|
||||
|
||||
# ── Git tools ─────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user