Skip to content

Celery: user builder instead of instance as argument #11337

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

Merged
merged 1 commit into from
May 22, 2024

Conversation

humitos
Copy link
Member

@humitos humitos commented May 21, 2024

It seems that CeleryTaskWrapper from New Relic passes their own instance= attribute and the Celery task attributes as well as kwargs. This results in passing instance attribute twice and it breaks:

https://read-the-docs.sentry.io/issues/5385629903/?project=148442&query=is%3Aunresolved+%21message%3A%22%21message%3A%22%21message%3A%22SystemExit%22+%21message%3A%22frame-ancestors%22&referrer=issue-stream&statsPeriod=14d&stream_index=0

This commit renames instance argument to builder to avoid this.

It seems that `CeleryTaskWrapper` from New Relic passes their own `instance=`
attribute and the Celery task attributes as well as `kwargs`. This results in
passing `instance` attribute twice and it breaks:

https://read-the-docs.sentry.io/issues/5385629903/?project=148442&query=is%3Aunresolved+%21message%3A%22%21message%3A%22%21message%3A%22SystemExit%22+%21message%3A%22frame-ancestors%22&referrer=issue-stream&statsPeriod=14d&stream_index=0

This commit renames `instance` argument to `builder` to avoid this.
@humitos humitos requested a review from a team as a code owner May 21, 2024 16:59
@humitos humitos requested a review from stsewd May 21, 2024 16:59
@humitos humitos added the PR: hotfix Pull request applied as hotfix to release label May 21, 2024
@humitos humitos merged commit 5ff3d10 into main May 22, 2024
7 checks passed
@humitos humitos deleted the humitos/celery-argument branch May 22, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: hotfix Pull request applied as hotfix to release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants