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

Replace celery middleware initialization with a setting #265

Merged
merged 3 commits into from Jun 30, 2023

Conversation

jrobichaud
Copy link
Owner

@jrobichaud jrobichaud commented Jun 30, 2023

CeleryMiddleware has nothing to do with django's request mechanism.

Using a django middleware for this adds useless (maybe negligible) overhead with each request.

This PR replace the CeleryMiddleware with a new setting.

DJANGO_STRUCTLOG_CELERY_ENABLED = True

@jrobichaud jrobichaud self-assigned this Jun 30, 2023
@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (d9b14d1) 100.00% compared to head (c6016f2) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #265   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines          365       365           
=========================================
  Hits           365       365           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jrobichaud jrobichaud merged commit b99d946 into master Jun 30, 2023
12 checks passed
@jrobichaud jrobichaud deleted the celery-without-middleware branch June 30, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant