Page MenuHomeSoftware Heritage

celery/tests: mostly revert e770eb30 to fix celery app initialization in tests
ClosedPublic

Authored by douardda on Oct 18 2019, 4:45 PM.

Details

Summary

This revision did fix tests for the scheduler itself, but broke all other
tests of scheduler dependent swh packages.

In this fix, we ensure we override the app in
swh.scheduler.celery_backend.config, since it is used by all
celery task declarations (via the @app.task() decorator).

Diff Detail

Repository
rDSCH Scheduling utilities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Oct 18 2019, 6:33 PM
This revision was landed with ongoing or failed builds.Oct 19 2019, 11:42 AM
This revision was automatically updated to reflect the committed changes.