refactor(queue): address code review feedback — extract constants and sync refresh interval

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-27 00:47:58 +00:00
parent c7c5718f78
commit 4dd018f210
6 changed files with 83 additions and 5 deletions
+6 -1
View File
@@ -46,7 +46,12 @@ class TestGetCeleryInspectStats:
"worker1": [{"id": "task-2", "name": "app.tasks.upload_to_s3.upload_to_s3", "args": [2]}]
}
mock_inspector.scheduled.return_value = {
"worker1": [{"request": {"id": "task-3", "name": "app.tasks.check_credentials.check_credentials"}, "eta": "2026-01-01"}]
"worker1": [
{
"request": {"id": "task-3", "name": "app.tasks.check_credentials.check_credentials"},
"eta": "2026-01-01",
}
]
}
mock_celery_mod.control.inspect.return_value = mock_inspector