Actions
Issue #1154
closedscheduled tasks fail to run
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
Tasks that are dispatched by the scheduler, such as the document reaper task, fail to run. The scheduler sends them to the workers, but the workers don't know about the task type.
celery.worker.consumer:ERROR: (13806-03680) Received unregistered task of type 'pulp.server.db.reaper.queue_reap_expired_documents'.
celery.worker.consumer:ERROR: (13806-03680) The message has been ignored and discarded.
celery.worker.consumer:ERROR: (13806-03680)
celery.worker.consumer:ERROR: (13806-03680) Did you remember to import the module containing this task?
celery.worker.consumer:ERROR: (13806-03680) Or maybe you are using relative imports?
celery.worker.consumer:ERROR: (13806-03680) Please see http://bit.ly/gLye1c for more information.
celery.worker.consumer:ERROR: (13806-03680)
celery.worker.consumer:ERROR: (13806-03680) The full contents of the message body was:
celery.worker.consumer:ERROR: (13806-03680) {'utc': True, 'chord': None, 'args': [], 'retries': 0, 'expires': None, 'task': 'pulp.server.db.reaper.queue_reap_expired_documents', 'callbacks': None, 'errbacks': None, 'timelimit': (None, None), 'taskset': None, 'kwargs': {}, 'eta': None, 'id': 'c98909e5-5436-444a-a07d-9fc6b1e0ab06'} (246b)
celery.worker.consumer:ERROR: (13806-03680)
celery.worker.consumer:ERROR: (13806-03680) Traceback (most recent call last):
celery.worker.consumer:ERROR: (13806-03680) File "/usr/lib/python2.7/site-packages/celery/worker/consumer.py", line 455, in on_task_received
celery.worker.consumer:ERROR: (13806-03680) strategies[name](message, body,
celery.worker.consumer:ERROR: (13806-03680) KeyError: 'pulp.server.db.reaper.queue_reap_expired_documents'
celery.beat:INFO: Scheduler: Sending due task reap_expired_documents (pulp.server.db.reaper.queue_reap_expired_documents)
Actions
Added import of tasks in the schedule manager
https://pulp.plan.io/issues/1154 fixes #1154