ZeitOnline/celery_longterm_scheduler

Support for celery 5.x.x

aakash2610 opened this issue · 5 comments

I tried to use this repo with Celery v5.0.2. This code does not work.
It is giving me error:
AttributeError: module 'celery.bin.base' has no attribute 'Command'

I looked at the celery and found out that Command class has been removed since v5.0.0. Can you please fix the code to support the latest celery version?

Thanks,

Any movement on this?

@zon-hoppe @wosc Sorry for the summons. Can we get pointed in the right direction for how to fix this, or is it simple for one of you to hop on?

wosc commented

Hi there. We do have "update celery from 4.x to 5.x throughout our projects" in our backlog, but there's no date yet when we will be able to get to it.

From reading the celery docs (one, two), the main bw-incompatible change in 5.x seems to be that they've replaced their custom CLI mechanics with click. Thus, our Command setup here needs to be adjusted to that new API. I'm hoping that should be rather straightforward, but as I said, not sure when we'll have the capacity. So if one of you wants to tackle this, I'd be more than happy to merge a patch.

@wosc Thanks for the direction!

wosc commented

Fixed in dcea99b and released as 1.2.0