report errors:
Did you remember to import the module containing this task?
Or maybe you're using relative imports?
Please see
http://docs.celeryq.org/en/latest/internals/protocol.html
for more information.
The full contents of the message body was:
b'[[], {}, {"callbacks": null, "errbacks": null, "chain": null, "chord": null}]' (77b)
Traceback (most recent call last):
File "d:\venv\lib\site-packages\celery\worker\consumer\consumer.py", line 555, in on_task_received
strategy = strategies[type_]
KeyError: 'terminal.tasks.add_order_and_other'
The reason for this error is that the task has not been found. There are two ways for celery to find the task
1. First of all, Django + celery is used here, not djcelery. Import all tasks in tasks.py in the view view function under settings
from. Task import add_ data, add_ course, add_ order_ and_ Other
(only import is OK) (this method is not recommended, because it’s a bit of heresy, hahaha)
2. Add app.autodiscover in cell.py_ Tasks ([‘terminal. Tasks’]), terminal. Tasks is the location of the task file.
Tips: if you close the corresponding window after starting the cell, the cell timer task will stop
when you start the cell by using the cell multi start W1 – a project name – B, the window timer task will not stop either. At the same time, you do not need to start the beat by using this command.
Read More:
- [Solved] SyntaxError: Missing parentheses in call to ‘print‘. Did you mean print(e)?
- [Solved] The “QtRunWork“ task returned false but did not log an error
- [How to Solve Vue warn]: Unknown custom element: did you register the component correctly?
- Unknown custom element: [xxx] – did you register the component correctly…
- How to Solve Error: Module did not self-register
- How to Solve Import antd Error: Module build failed
- Keras’ print model error: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- Fuel9.0 deployment openstack error: Deployment has failed,All nodes are finishedFailed task:Task[netconfig/1]
- Uncaught SyntaxError: Cannot use import statement outside a module
- [Solved] node Error: SyntaxError: Cannot use import statement outside a module
- Proguard Packaging Error: You have to specify ‘-keep‘ options if you want to write out kept elements with ‘-print
- Solution: from. Import ft2font importerror: DLL load failed: the specified module cannot be found
- Gulp compression error: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module…
- [Solved] HTML_Uncaught SyntaxError: Cannot use import statement outside a module
- [Solved] ERROR: You don‘t have the SNMP perl module installed.
- The showdialog() method in thread/threading. Timer/task reported an error: “before ole can be called, the current thread must be set to single thread unit (STA) mode.”
- How to Fix Error 1069:The service did not start due to a logon failure
- Remember an android app startup error Error running: Default Activity not found
- Kettle reported an error and did not have permission to write files to HDFS
- [Solved] Maven Error: The packaging for this project did not assign a file to the build artifact