mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
Update backend/app/workers/queue_worker.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -120,7 +120,7 @@ def _auto_import_handlers() -> None:
|
||||
if not imported:
|
||||
logger.warning(
|
||||
"Failed to import any handler modules. Ensure the worker is executed "
|
||||
"as a module (e.g., 'python -m backend.app.workers.queue_worker')."
|
||||
"as a module (e.g., 'python -m backend.app.workers.queue_worker') or as a script (e.g., 'python3 app/workers/queue_worker.py')."
|
||||
)
|
||||
else:
|
||||
logger.info("Imported %d handler module(s): %s", imported, ", ".join(handler_modules))
|
||||
|
||||
Reference in New Issue
Block a user