Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty list of tasks in the monitor #41

Closed
madisvain opened this issue Dec 9, 2017 · 4 comments
Closed

empty list of tasks in the monitor #41

madisvain opened this issue Dec 9, 2017 · 4 comments

Comments

@madisvain
Copy link

Why might the list of tasaks be empty? When I look at the log with tail I can see tasks beeing processed. But somehow these are not showing up for the monitor.

screenshot 2017-12-09 21 10 52

@jezdez
Copy link
Member

jezdez commented Jan 3, 2018

@madisvain I think you're confusing the Celery Curses monitor with the Django admin based monitor that django-celery-monitor provides. Here's a screenshot:

screen-shot-2018-01-03-17-18-59

@jezdez jezdez closed this as completed Jan 3, 2018
@ravitdx
Copy link

ravitdx commented Jun 7, 2018

Hi
I cannot see the tasks in admin.
I followed the steps in https://github.com/jezdez/django-celery-monitor

I used

celery==4.1.1
django-celery-results==1.0.1
django-celery-beat==1.0.1
django_celery_monitor==1.1.2

ran manage.py migrate celery_monitor The migrations went well. ran celery -A lbb events -l info --camera django_celery_monitor.camera.Camera --frequency=2.0 and celery -A lbb worker -l info in separate shells. But still cannot see the tasks I ran in celery-monitor > tasks table. Any help really appreciated. thanks

image

@ravitdx
Copy link

ravitdx commented Jun 7, 2018

Running celery command with -E to force event worked for me.

celery -A proj worker -l info -E

@UmeshDe
Copy link

UmeshDe commented Jun 24, 2020

I have the same issue. not resolved after celery -A proj worker -l info -E also ..
While running this celery -A utility events -l info --camera django_celery_monitor.camera.Camera --frequency=5.0

[2020-06-24 15:16:15,752: ERROR/MainProcess] Error in timer: TypeError('get() argument after ** must be a mapping, not str',)
Traceback (most recent call last):
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/kombu/asynchronous/timer.py", line 169, in apply_entry
entry()
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/kombu/asynchronous/timer.py", line 68, in call
return self.fun(*self.args, **self.kwargs)
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/kombu/asynchronous/timer.py", line 130, in _reschedules
return fun(*args, **kwargs)
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/celery/events/snapshot.py", line 72, in capture
self.state.freeze_while(self.shutter, clear_after=self.clear_after)
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/celery/events/state.py", line 464, in freeze_while
return fun(*args, **kwargs)
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/celery/events/snapshot.py", line 69, in shutter
self.on_shutter(self.state)
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/django_celery_monitor/camera.py", line 125, in on_shutter
self.handle_worker(worker)
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/django_celery_monitor/camera.py", line 77, in handle_worker
update_freq=self.worker_update_freq,
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/django_celery_monitor/managers.py", line 65, in update_heartbeat
defaults={'last_heartbeat': heartbeat},
File "/media/pc/new/projects/utilityapp/env/lib/python3.6/site-packages/django_celery_monitor/managers.py", line 36, in select_for_update_or_create
obj = self.select_for_update().get(**lookup)
TypeError: get() argument after ** must be a mapping, not str

this error!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants