huey: task not found in TaskRegistry

I 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)

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Found it. I’m so thankfull to a comment on another project:

Must be named tasks.py and be in the top level of an INSTALLED_APPS directory for Huey to find it.

Mine wasn’t at the top level but alongside a models directory.

Would you add a note about this in the doc ?