-
-
Notifications
You must be signed in to change notification settings - Fork 8
v0.25.0 - General Bug Fixes #49
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…lugin-base-class Remove on_worker_started from Plugin base ABC class
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
+ Coverage 71.26% 71.88% +0.61%
==========================================
Files 55 56 +1
Lines 2899 2938 +39
==========================================
+ Hits 2066 2112 +46
+ Misses 833 826 -7
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:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.25.0
🚨 This release requires that you run migrations, as it adds a new queue
setting,
eager_polling. Callchancy.migrate()or use the CLI:✨ Improvements
Chancy.wait_for_job()now accepts a list of states to wait for, so you canuse it to wait for a job to begin running, retried, etc... instead of just
finished.
Reference()objects are now hashable and have equality.Chancy.wait_for_jobs()added to wait for multiple jobs to finish.Chancy.get_jobs()added to fetch multiple jobs by ID in a single query.eager_pollingoption toQueueto trigger immediate pollingwhenever an executor slot becomes free. This is useful for low-latency
processing of jobs with low concurrency, but may increase database load (Set queue wake event when executor is not full anymore #48)
🐛 Fixes
pushed again after the job had started running (Race condition with unique_key allows concurrent execution by resetting running job state to pending #51), reported by @mrsshr.
on_worker_started, which is available viathe
worker.startedevent anyway (Remove on_worker_started from Plugin base ABC class #47) by @PaulM5406.