Page MenuHomeSoftware Heritage

Fix scheduler's default configuration use
ClosedPublic

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

Diff Detail

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

Event Timeline

ardumont created this revision.Dec 17 2018, 3:38 PM
vlorentz requested changes to this revision.Dec 17 2018, 3:40 PM
swh-scheduler-runner_1    | Traceback (most recent call last):
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
swh-scheduler-runner_1    |     "__main__", mod_spec)
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/runpy.py", 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/runner.py", 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/__init__.py", 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/backend.py", line 187, in __init__
swh-scheduler-runner_1    |     self.reconnect()
swh-scheduler-runner_1    |   File "/usr/local/lib/python3.7/site-packages/swh/scheduler/backend.py", 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/__init__.py", 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.Dec 17 2018, 3:40 PM
ardumont updated this revision to Diff 2664.Dec 17 2018, 3:43 PM
  • swh-scheduler-api: Fix default configuration to use the right db
ardumont updated this revision to Diff 2665.Dec 17 2018, 3:54 PM
  • *scheduler*/entrypoint: Name the db service swh-scheduler
ardumont updated this revision to Diff 2666.Dec 17 2018, 4:01 PM
  • *scheduler*/entrypoint: Use unambiguous swh-scheduler service name
vlorentz accepted this revision.Dec 17 2018, 4:03 PM
This revision is now accepted and ready to land.Dec 17 2018, 4:03 PM
ardumont updated this revision to Diff 2667.Dec 17 2018, 4:04 PM
  • Fix formatting, use spaces instead of tabs
This revision was automatically updated to reflect the committed changes.