Repository navigation
[19.0] queue_job: forward ports from 18.0 - #1022
Open
MiquelRForgeFlow wants to merge 13 commits into
Open
MiquelRForgeFlow wants to merge 13 commits into
MiquelRForgeFlow wants to merge 13 commits into
Conversation
…rts patches Otherwise monkey-patches could be added twice when instantiating new test classes.
This adds `capacity_default` and `sequential_default` options that set `capacity` and `sequential` for autocreated subchannels. It also allows non-root channel configurations to omit capacity.
Not used at this point by the jobrunner, but the changes on channels trigger a notify to the jobrunner.
queue_job recorded a delayed method by the __name__ of the function found under the requested attribute. A module that installs a replacement under another name (auditlog: write_full, unlink_full) made the job store that name and fail with AttributeError when resolving it. Keep the looked-up name in Delayable, pass it to Job, and reuse the stored name on load. Fixes OCA#996
Delay a method replaced under another __name__ through delayable(), with_delay() and split(), and check the stored and reloaded job keep the requested name.
Contributor
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
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.
Forward ports of: