Project

Profile

Help

Task #2527

closed

Ensure Pulp 2.y works with both python-celery 3.1.z and 4.0.z

Added by bizhang almost 8 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.12.2
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 15
Quarter:

Description

Problem

python-celery was recently upgrade from 3.1.20-3 to 4.0.2-1 on Fedora rawhide [0]. Celery 4 has some backwards incompatible changes that affect Pulp's usage of celery. This means that until we update Pulp 2.y to work with Celery 4.0.z Pulp will not be able to work with rawhide (and F26). There are at least 2 problems, but there may be more.

  • Tasks with reservation won't work because the the dedicated queue name was changed from C.dq (celery 3.1.z) to C.dq2 (celery 4.0). That variable is set here.
  • A undocumented API change that dalley discovered and fixed along the way
  • The conversion of the two tasks in Comment 11 which need to be converted from @classmethod to @staticmethod to work with both Celery 3.1 and Celery4.

Solution

Pulp3 already works with celery 4.0.z, however it is unlikely to make the F26 beta freeze date of 4-28. So in the interim we need to update pulp2 to work with python-celery 4.0.z It also has to maintain compatibility with python-celery 3.1.z which will continue to be used on EL7, and F25-.

[0] https://apps.fedoraproject.org/packages/python-celery


Related issues

Related to Pulp - Task #2452: Upgrade python-celery in Fedora Rawhide to 4.0CLOSED - CURRENTRELEASE

Actions
Related to Pulp - Issue #489: When an task worker dies or restarts, work assigned to that worker is cancelledMODIFIEDActions
Related to Pulp - Task #2609: Patch Kombu in Rawhide to work with PulpCLOSED - CURRENTRELEASEbmbouter

Actions

Also available in: Atom PDF