task not found in TaskRegistry
See original GitHub issueI just upgraded to the latest version in master to make use of the fix for closing the db but it seems huey is no longer finding the tasks after the update for some reason. I was already running a pretty recent version so not sure what could have changed… i upgraded huey and restarted the workers which should recreate the task registry in redis again right?
QueueException: queuecmd_create_initial_notifications not found in TaskRegistry
File "huey/bin/huey_consumer.py", line 124, in check_message
task = self.huey.dequeue()
File "huey/api.py", line 211, in dequeue
return registry.get_task_for_message(message)
File "huey/registry.py", line 70, in get_task_for_message
klass = self.get_task_class(klass_str)
File "huey/registry.py", line 60, in get_task_class
raise QueueException('%s not found in TaskRegistry' % klass_str)
Issue Analytics
- State:
- Created 10 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Python Huey throws huey.exceptions.HueyException
py file I'm getting an exception huey.exceptions.HueyException: xxxxxxx not found in TaskRegistry. I have followed all the steps mentioned in ...
Read more >Troubleshooting and Common Pitfalls - Huey - Read the Docs
The most common cause of tasks not running is that they are not being loaded, in which case you will see HueyException “XXX...
Read more >Image not showing after adding ST_HUEY_SCHEDULE - Spirit
Is there a huey.exceptions.HueyException: spirit.core.tasks.search_index_update not found in TaskRegistry error in your log file? Is there a new spirit.core.
Read more >[solved]-python huey throws huey.exceptions.hueyexception
[solved]-python huey throws huey.exceptions.hueyexception: yyyyyy not found in taskregistry-django ... Your consumer isn't finding your tasks. Assuming that you' ...
Read more >Distributed processing — Celery 5.2.7 documentation
tasks (Union[str, Type[TaskRegistry]]) – A task registry, or the name of a registry ... Differs from current_task in that it's not affected by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found it. I’m so thankfull to a comment on another project:
Mine wasn’t at the top level but alongside a
models
directory.Would you add a note about this in the doc ?
I had not seen this example, but it’s similar to the doc. I can make it work in a new django project, but not in mine 😦
I have
huey.contrib.djhuey
in my settings.py:in tasks.py
and in my api.py I just
from tasks import longtask
, but anyway with shell or run_server (I runrun_huey
first) it throwsI really think this is the same configuration and layout as the simple working project…
Any hints ? Thanks again.
(I could point to my project if needed)