Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update celery config imports #29862

Merged
merged 2 commits into from
Aug 5, 2024
Merged

fix: update celery config imports #29862

merged 2 commits into from
Aug 5, 2024

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Aug 5, 2024

closes #29708

related error in docker-compose:

superset_worker       | The full contents of the message headers:
superset_worker       | {'lang': 'py', 'task': 'reports.scheduler', 'id': 'b150a39b-57bb-4a58-9556-cc7d1a47132a', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'group_index': None, 'retries': 0, 'tim
elimit': [None, None], 'root_id': 'b150a39b-57bb-4a58-9556-cc7d1a47132a', 'parent_id': None, 'argsrepr': '()', 'kwargsrepr': '{}', 'origin': 'gen8@daf2692c865a', 'ignore_result': False, 'replaced_task_nesting': 0,
'stamped_headers': None, 'stamps': {}}
superset_worker       |
superset_worker       | The delivery info for this task is:
superset_worker       | {'exchange': '', 'routing_key': 'celery'}
superset_worker       | Traceback (most recent call last):
superset_worker       |   File "/usr/local/lib/python3.10/site-packages/celery/worker/consumer/consumer.py", line 659, in on_task_received
superset_worker       |     strategy = strategies[type_]
superset_worker       | KeyError: 'reports.scheduler'

I confirmed that this issue is gone after applying this fix and re-running docker-compose up

closes #29708

About the change in `superset/utils/json.py`, I was somehow getting a pre-commit hook to trigger
@pull-request-size pull-request-size bot added size/S and removed size/XS labels Aug 5, 2024
@mistercrunch mistercrunch merged commit 9fed576 into master Aug 5, 2024
35 of 36 checks passed
@mistercrunch mistercrunch deleted the fix_29708 branch August 5, 2024 22:46
@sadpandajoe
Copy link
Member

@supersetbot label 4.1

@github-actions github-actions bot added the v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch label Aug 5, 2024
WanjohiWanjohi pushed a commit to IDinsight/surveystream_superset_source that referenced this pull request Aug 6, 2024
sadpandajoe pushed a commit that referenced this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:backend Requires changing the backend closes-issue preset-io size/S v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.1.0rc1 celery issue - Received unregistered task of type 'reports.scheduler'.
3 participants