Page MenuHomeSoftware Heritage

Allow to override celery config file name via the SWH_CONFIG_FILENAME env var
ClosedPublic

Authored by douardda on Feb 1 2019, 5:00 PM.

Details

Summary

this will take precedence over the implicit config file scheme. The expected
config file given via the environment variable is expected to have a
[celery] section which will be used as config for the Celery app created
in swh.scheduler.celery_backend.config.

Related to T1410 and T826.

Diff Detail

Repository
rDSCH Scheduling utilities
Branch
master
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 3966
Build 5207: tox-on-jenkinsJenkins
Build 5206: arc lint + arc unit

Event Timeline

ardumont added a subscriber: ardumont.
ardumont added inline comments.
swh/scheduler/celery_backend/config.py
245

i guess we'll see what that changes ;)

This revision is now accepted and ready to land.Feb 1 2019, 6:42 PM
douardda added inline comments.
swh/scheduler/celery_backend/config.py
245

In fact, with the recent modifications in config file handling, this is a noop, the 'task_soft_time_limit' from CONFIG is already passed to the celery app.

This revision was automatically updated to reflect the committed changes.