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

Upgrade to Celery protocol 2 #800

Closed
7 tasks done
timmc-edx opened this issue Sep 18, 2024 · 3 comments
Closed
7 tasks done

Upgrade to Celery protocol 2 #800

timmc-edx opened this issue Sep 18, 2024 · 3 comments
Assignees

Comments

@timmc-edx
Copy link
Member

timmc-edx commented Sep 18, 2024

edx-platform, registrar, and enterprise-catalog are all using Celery task protocol 1. Upgrading to protocol 2 may remove some technical debt, and as a side benefit may help with #692. We also may have seen a bug where something in celery (or an associated library) was adding headers to a v1 message as if it were a v2 message, which caused a bug in ddtrace; such things may become more likely over time as code is written with the assumption of v2 messages.

Implementation:

Notes:

@timmc-edx timmc-edx converted this from a draft issue Sep 18, 2024
@robrap
Copy link
Contributor

robrap commented Sep 23, 2024

@timmc-edx: Are you also planning on opening a github issue against celery if you think they are missing test coverage, and potentially have a bug around this?

@timmc-edx
Copy link
Member Author

Unlikely. Too much of a rabbit hole to go down right now, unfortunately. (It's not even necessarily celery -- could be some other library that interacts with it.)

@robrap
Copy link
Contributor

robrap commented Sep 24, 2024

[inform] This work was scheduled because even though the issue will hopefully first have been fixed by DD in another way, this change will remove technical debt that would have avoided this situation altogether, and may help avoid future related situations.

@timmc-edx timmc-edx self-assigned this Oct 29, 2024
timmc-edx added a commit to openedx/edx-platform that referenced this issue Nov 6, 2024
This will allow us to test protocol 2 in a stage environment before
removing the override to make 2 the default.

We may have seen a bug where something in celery (or an
associated library) was adding headers to a v1 message as
if it were a v2 message, which caused a bug in ddtrace; such
things may become more likely over time as code is written
with the assumption of v2 messages. Moving to v2 will avoid
those issues.

See edx/edx-arch-experiments#800 for further details.
@github-project-automation github-project-automation bot moved this from In Progress to Done in Arch-BOM Nov 20, 2024
@jristau1984 jristau1984 moved this from Done to Done - Long Term Storage in Arch-BOM Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done - Long Term Storage
Development

No branches or pull requests

2 participants