US02-07: Automate Phase B End-to-End Acceptance (#60)
This commit was merged in pull request #60.
This commit is contained in:
@@ -27,6 +27,11 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||
|
||||
if args.command == "worker":
|
||||
from photo_pipeline.db import create_db_engine, create_session_factory
|
||||
|
||||
# Importing this registers the safety/analysis job handlers into the shared
|
||||
# REGISTRY the Worker defaults to; without it a standalone worker process
|
||||
# claims nothing because it knows no job types.
|
||||
import photo_pipeline.jobs.domain_handlers # noqa: F401
|
||||
from photo_pipeline.jobs.worker import Worker
|
||||
|
||||
run_migrations(config.database_url)
|
||||
|
||||
Reference in New Issue
Block a user