packit / packit-service

Packit provided as a service
https://packit.dev
MIT License
34 stars 48 forks source link

KeyError: 'packit_service.worker.tasks.babysit_pending_vm_image_builds' #1786

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: PCKT-002-PACKIT-SERVICE-4YM

KeyError: 'packit_service.worker.tasks.babysit_pending_vm_image_builds'
  File "celery/worker/consumer/consumer.py", line 591, in on_task_received
    strategy = strategies[type_]

Received unregistered task of type KeyError('packit_service.worker.tasks.babysit_pending_vm_image_builds').
The message has been ignored and discarded.

Did you remember to import the module containing this task?
Or maybe you're using relative imports?

Please see
http://docs.celeryq.org/en/latest/internals/protocol.html
for more information.

The full contents of the message body was:
b'[[], {}, {"callbacks": null, "errbacks": null, "chain": null, "chord": null}]' (77b)

Thw full contents of the message headers:
{"argsrepr":"()","eta":null,"expires":null,"group":null,"group_index":null,"headers":{"sentry-trace":"2f5873a76a604ba9bd8ba2ef5ad98641-abbd50c579ad82f0-"},"id":"628f97ca-10fa-49df-86ef-387f99f9c52d","ignore_result":false,"kwargsrepr":"{}","lang":"py","origin":"gen1@packit-service-beat-41-gx67d","parent_id":null,"retries":0,"root_id":"628f97ca-10fa-49df-86ef-387f99f9c52d","sentry-trace":"2f5873a76a604ba9bd8ba2ef5ad98641-abbd50c579ad82f0-","shadow":null,"task":"packit_service.worker.tasks.babysit_pending_vm_image_builds","timelimit":[null,null]}

The delivery info for this task is:
{"exchange":"","routing_key":"long-running"}
lbarcziova commented 1 year ago

after a quick look into Sentry and our cluster, it might be related to the recent staging problems, since workers are not running but in pending state, I will check whether this will resolve after workers will be running and close this in that case