HomeSoftware Heritage

Kill the CustomCelery class

Description

Kill the CustomCelery class

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).

Details

Provenance
douarddaAuthored on Jan 7 2019, 4:53 PM
douarddaPushed on Jan 10 2019, 3:53 PM
Differential Revision
D888: Kill the CustomCelery class
Parents
rDSCH96ad58b1fb72: Move logging configuration into the cli group function
Branches
Unknown
Tags
Unknown
Build Status
Buildable 3369
Build 4344: test-and-build