Update backend/app/workers/queue_worker.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2025-10-02 13:04:37 +02:00
committed by GitHub
parent a0bc94d7ec
commit 233a331cba

View File

@@ -120,7 +120,7 @@ def _auto_import_handlers() -> None:
if not imported: if not imported:
logger.warning( logger.warning(
"Failed to import any handler modules. Ensure the worker is executed " "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: else:
logger.info("Imported %d handler module(s): %s", imported, ", ".join(handler_modules)) logger.info("Imported %d handler module(s): %s", imported, ", ".join(handler_modules))