Page MenuHomeSoftware Heritage

Fix scheduler's default configuration use

Authored by ardumont on Mon, Dec 17, 3:38 PM.

Diff Detail

rCDFD Dockerfiles for developers
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont created this revision.Mon, Dec 17, 3:38 PM
vlorentz requested changes to this revision.Mon, Dec 17, 3:40 PM
swh-scheduler-runner_1    | Traceback (most recent call last):
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/", line 193, in _run_module_as_main
swh-scheduler-runner_1    |     "__main__", mod_spec)
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/", line 85, in _run_code
swh-scheduler-runner_1    |     exec(code, run_globals)
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/site-packages/swh/scheduler/celery_backend/", line 105, in <module>
swh-scheduler-runner_1    |     main_backend = get_scheduler('local')
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/site-packages/swh/scheduler/", line 57, in get_scheduler
swh-scheduler-runner_1    |     return SchedulerBackend(**args)
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/site-packages/swh/scheduler/", line 187, in __init__
swh-scheduler-runner_1    |     self.reconnect()
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/site-packages/swh/scheduler/", line 62, in reconnect
swh-scheduler-runner_1    |     cursor_factory=psycopg2.extras.RealDictCursor,
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/site-packages/psycopg2/", line 130, in connect
swh-scheduler-runner_1    |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
swh-scheduler-runner_1    | psycopg2.OperationalError: definition of service "swh-scheduler" not found
This revision now requires changes to proceed.Mon, Dec 17, 3:40 PM
ardumont updated this revision to Diff 2664.Mon, Dec 17, 3:43 PM
  • swh-scheduler-api: Fix default configuration to use the right db
ardumont updated this revision to Diff 2665.Mon, Dec 17, 3:54 PM
  • *scheduler*/entrypoint: Name the db service swh-scheduler
ardumont updated this revision to Diff 2666.Mon, Dec 17, 4:01 PM
  • *scheduler*/entrypoint: Use unambiguous swh-scheduler service name
vlorentz accepted this revision.Mon, Dec 17, 4:03 PM
This revision is now accepted and ready to land.Mon, Dec 17, 4:03 PM
ardumont updated this revision to Diff 2667.Mon, Dec 17, 4:04 PM
  • Fix formatting, use spaces instead of tabs
This revision was automatically updated to reflect the committed changes.