In executors, call get_function_and_kwargs from self or cls#46
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 24_4 #46 +/- ##
==========================================
+ Coverage 71.26% 71.31% +0.05%
==========================================
Files 55 55
Lines 2899 2894 -5
==========================================
- Hits 2066 2064 -2
+ Misses 833 830 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This one was originally intentional, as significant care has to be taken when crossing process/thread/sub-interpreter barriers. But your use case is definitely valid and this is definitely safe in the async executor. I'll give the others a closer review. |
|
Hey @TkTech, would you have the time to have another look at this PR ? May it be part of 0.24.4 ? |
|
#49 will release tomorrow with this supported at least for the async executor. Could you expand on your use case for this one? Is the kwarg you want to inject related to Chancy itself, like job or queue data, or your own? |
|
Hey @TkTech,
I would like to be able to override
get_function_and_kwargsin custom executor to be able to dynamically inject other kwargs like it is possible withQueueJob.Thanks !