Page MenuHomeSoftware Heritage

Kill the CustomCelery class
ClosedPublic

Authored by douardda on Jan 8 2019, 10:53 AM.

Details

Summary

use functions instead of methods.

This is required to be able to use celery pytest fixtures so one can
really test celery tasks (especially when a task spawns sub tasks).

one (get_queue_lenth) of the 3 methods has been added as (monkeypatched)
method on the Celery class for the sake of bw compat, but this should really
be removed as well as soon as possible (seems only used in swh-archiver).

Diff Detail

Repository
rDSCH Scheduling utilities
Branch
wip
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 3271
Build 4210: tox-on-jenkinsJenkins
Build 4209: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 8 2019, 11:56 AM

Rename newly added DEFAULT_CONFIG var in CELERY_DEFAULT_CONFIG

since DEFAULT_CONFIG already exists in this file...

This revision was automatically updated to reflect the committed changes.