Never mind, just realised that it works purely locally but I can’t get the jobs to run on the remote. I might need to look into the routing of the Celery app
ERROR/MainProcess] Received unregistered task of type 'long_callback_f7722f98bb338a8e66ad8bac63eaa193c9df1a4b'.
The message has been ignored and discarded.
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'[["580e5cef6ee1529cb0873964b0770104bcea8e9a", "580e5cef6ee1529cb0873964b0770104bcea8e9a-progress", [8], {"args_grouping": [{"id": "button_id", "property": "n_clicks", "value": 8, "str_id": "button_id", "triggered": true}], "using_args_grouping": false, "outputs_grouping": {"id": "paragraph_id", "property": "children"}, "using_outputs_grouping": false, "inputs_list": [{"id": "button_id", "property": "n_clicks", "value": 8}], "states_list": [], "outputs_list": {"id": "paragraph_id", "property": "children"}, "input_values": {"button_id.n_clicks": 8}, "state_values": {}, "triggered_inputs": [{"prop_id": "button_id.n_clicks", "value": 8}], "ignore_register_page": true}], {}, {"callbacks": null, "errbacks": null, "chain": null, "chord": null}]' (747b)
Thw full contents of the message headers:
{'lang': 'py', 'task': 'long_callback_f7722f98bb338a8e66ad8bac63eaa193c9df1a4b', 'id': 'e5a2dfb0-d504-4cc5-9f26-4253ac2385cc', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'group_index': None, 'retries': 0, 'timelimit': [None, None], 'root_id': 'e5a2dfb0-d504-4cc5-9f26-4253ac2385cc', 'parent_id': None, 'argsrepr': "('580e5cef6ee1529cb0873964b0770104bcea8e9a', '580e5cef6ee1529cb0873964b0770104bcea8e9a-progress', [8], {'args_grouping': [{...}], 'using_args_grouping': False, 'outputs_grouping': {'id': 'paragraph_id', 'property': 'children'}, 'using_outputs_grouping': False, 'inputs_list': [{...}], 'states_list': [], 'outputs_list': {'id': 'paragraph_id', 'property': 'children'}, 'input_values': {'button_id.n_clicks': 8}, 'state_values': {}, 'triggered_inputs': [{...}], 'ignore_register_page': True})", 'kwargsrepr': '{}', 'origin': 'XXXXX@computer, 'ignore_result': False}
The delivery info for this task is:
{'exchange': '', 'routing_key': 'celery'}
Traceback (most recent call last):
File "/home/pai/celery_worker/venv/lib/python3.10/site-packages/celery/worker/consumer/consumer.py", line 591, in on_task_received
strategy = strategies[type_]
KeyError: 'long_callback_f7722f98bb338a8e66ad8bac63eaa193c9df1a4b'