-
-
Notifications
You must be signed in to change notification settings - Fork 409
coretasks: update event priorities from high to medium #2018
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might have to go over this again from a computer, after this first review round is addressed, to catch any non-obvious typos that don't jump out at me on GitHub's Android app, but just in general: Why remove the priorities from all those coretasks handlers instead of using "medium", following the Tao of Python's advice that "[e]xplicit is better than implicit"?
|
All fixed! |
dgw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left coretasks.py itself un-marked as "Viewed" because I'm still curious about removing @plugin.priority from the relevant callables instead of explicitly specifying @plugin.priority('medium'). That's my main concern; the rest of this review is just typos and phrasing tweaks.
I can do that, no problem. |
dgw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Exirel I fixed my own stupid typo, so feel free to squash stuff down when ready.
* events are now at default priority (medium) * events are not threaded anymore * events are now unblockable This will allow other plugin to act before (priority=high) or before (priority=low) the core plugin handles them. One event is still on low priority as it will send a QUIT message.
Co-authored-by: dgw <[email protected]>
e7d365c to
72bbf01
Compare
|
Done. |
Description
Fix #2017 and add a new chapter for advanced tips and tricks.
Checklist
make qa(runsmake qualityandmake test)