-
Notifications
You must be signed in to change notification settings - Fork 11
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: add user_plan to apply_async options #631
Conversation
we were previously calling get_user_plan_from_task_name twice, and this function makes a database call which slows things down. This commit makes it so we call it once in apply_async and pass the value we get back through to the custom task router function.
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #631 +/- ##
=======================================
Coverage 98.13% 98.13%
=======================================
Files 438 438
Lines 36565 36567 +2
=======================================
+ Hits 35884 35886 +2
Misses 681 681
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #631 +/- ##
=======================================
Coverage 98.13% 98.13%
=======================================
Files 438 438
Lines 36565 36567 +2
=======================================
+ Hits 35884 35886 +2
Misses 681 681
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #631 +/- ##
=======================================
Coverage 98.13% 98.13%
=======================================
Files 438 438
Lines 36565 36567 +2
=======================================
+ Hits 35884 35886 +2
Misses 681 681
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Changes have been made to critical files, which contain lines commonly executed in production. Learn more ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #631 +/- ##
=======================================
Coverage 98.15% 98.16%
=======================================
Files 473 473
Lines 37770 37772 +2
=======================================
+ Hits 37075 37077 +2
Misses 695 695
Flags with carried forward coverage won't be shown. Click here to find out more.
|
we were previously calling get_user_plan_from_task_name twice, and this function makes a database call which slows things down.
This commit makes it so we call it once in apply_async and pass the value we get back through to the custom task router function.
Fixes: codecov/engineering-team#2258