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

result_backend_thread_safe config shares backend across threads #8058

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

CharlieTruong
Copy link
Contributor

Description

Addresses #6819

This aims to allow users to opt-in to sharing the backend object across threads if the backend is thread safe. Other attempts have been made to do this such as #7961. However, there seemed to be uncertainty with whether to move forward with those or not. I figure allowing this be a configuration lets users switch back if they notice issues.

@auvipy auvipy self-requested a review February 7, 2023 05:06
@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Base: 87.00% // Head: 87.00% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (97922b6) compared to base (cb83eaf).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8058   +/-   ##
=======================================
  Coverage   87.00%   87.00%           
=======================================
  Files         148      148           
  Lines       18486    18496   +10     
  Branches     2520     2523    +3     
=======================================
+ Hits        16083    16093   +10     
  Misses       2123     2123           
  Partials      280      280           
Flag Coverage Δ
unittests 86.98% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
celery/app/base.py 96.72% <100.00%> (+0.05%) ⬆️
celery/backends/base.py 93.03% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants