question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task's queue is 'undefined'

See original GitHub issue

By some reason the output is the following:

celery_tasks_total{name="local.update_record",namespace="celery",queue="local_develop",state="STARTED"} 0.0
# skipped
celery_tasks_total{name="local.update_record",namespace="celery",queue="undefined",state="STARTED"} 1.0

All recorded tasks have queue as “undefined”.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
johnnymetzcommented, Feb 26, 2021

Having the same issue:

celery_tasks_total{name="core.tasks.square",namespace="celery",queue="celery",state="SUCCESS"} 0.0
celery_tasks_total{name="core.tasks.square",namespace="celery",queue="undefined",state="SUCCESS"} 4.0
1reaction
itsxcommented, Jun 17, 2020

We have the same problem:

celery_tasks_total{name="watcher.process_notifications",namespace="celery",queue="celery",state="RECEIVED"} 0.0
# skipped
celery_tasks_total{name="watcher.process_notifications",namespace="celery",queue="undefined",state="RECEIVED"} 1012.0

queue=“celery” is wrong, we don’t have celery queue with such a name. Same with the queue=“undefined”.

I checked how our Celery task events look like and it seems, that they are ok and contain all expected data.

Example of out task-received event:

{
   "hostname":"worker-watcher@xyz.com",
   "utcoffset":0,
   "pid":1,
   "clock":137700979,
   "uuid":"fc8bb20f-4e1d-48ac-9f35-bbc0f7724143",
   "name":"watcher.process_notifications",
   "args":"()",
   "kwargs":"{'notify_period': 'immediately'}",
   "root_id":"fc8bb20f-4e1d-48ac-9f35-bbc0f7724143",
   "parent_id":"None",
   "retries":0,
   "eta":"None",
   "expires":"2020-06-17T11:55:42.823008+00:00",
   "timestamp":1592387682.8286304,
   "type":"task-received",
   "local_received":1592394882.9463646
}

I have also noticed that I have not received any task-sent events, I run the exporter with --enable-events flag.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Task Queue error with task : Cannot read property of undefined
I write component witch some caching functionallity. It is based on async storage. static getDiscounts(categoryAndPage) { return ...
Read more >
Class v2.CloudTasksClient (3.0.5) | Node.js client library
Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31...
Read more >
The event loop - JavaScript - MDN Web Docs - Mozilla
The execution depends on the number of waiting tasks in the queue. In the example below, the message "this is just a message"...
Read more >
queue-tea - npm
import createQueue from 'queue-tea' interface Tasks { syncDataWithCloud: { username: string; count: number } runInBackground: undefined } ...
Read more >
Freertos Build Error for Queues - Kernel
Two tasks sending messages and third task will receive the messages from ... Core/Src/main.c:238: undefined reference to xQueueCreateSet'
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found