2👍
Your consumer isn’t finding your tasks. Assuming that you’ve added 'huey.contrib.djhuey'
to INSTALLED_APPS
in settings.py
as described in the docs, the likely issue is that you’ve named your task containing file something other than tasks.py
, which is what Huey’s Django integration relies on for auto-discovery:
To run the consumer, use the run_huey management command. This command will automatically import any modules in your INSTALLED_APPS named tasks.py. The consumer can be configured using both the django settings module and/or by specifying options from the command-line.
Alternatively, you can eschew the auto-discovery feature, but then you have to restructure your code a little bit. See docs for details. My recommendation is that you just rename your file tasks.py
.