Skip to content

[19.0] queue_job: forward ports from 18.0 - #1022

Open
MiquelRForgeFlow wants to merge 13 commits into
OCA:19.0from
ForgeFlow:19.0-fw-port-18.0
Open

MiquelRForgeFlow wants to merge 13 commits into
OCA:19.0from
ForgeFlow:19.0-fw-port-18.0

Conversation

thomaspaulb and others added 13 commits October 28, 2026 15:51
…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.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @guewen, @sbidoul,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:19.0 mod:queue_job Module queue_job mod:test_queue_job Module test_queue_job labels Oct 28, 2026

@florentx florentx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:queue_job Module queue_job mod:test_queue_job Module test_queue_job series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants