Skip to content

[19.0][FW] queue_job: multiple ports from 18.0#913

Open
guewen wants to merge 16 commits intoOCA:19.0from
guewen:oca-port-queue_job-18.0-to-19.0-111691
Open

[19.0][FW] queue_job: multiple ports from 18.0#913
guewen wants to merge 16 commits intoOCA:19.0from
guewen:oca-port-queue_job-18.0-to-19.0-111691

Conversation

RLeeOSI and others added 12 commits March 23, 2026 13:30
Every time a job is done, even if it is not part of a graph, it runs a
query to look for dependents to enqueue. Storing the dependent uuids in
the "dependencies" field was on purpose to know that we have no further
jobs in the graph and that we can skip the check entirely and have no
overhead in this case.

It looks like an oversight, we can add the missing condition.
In this case, when a module adds a value in context, the tests fail
It is forbidden to commit inside a job, because it releases the job lock
and can cause it to start again, while still being run, by the dead jobs
requeuer. For some use cases, it may actually be legitimate, or at least
be needed in the short term before actual updates in the code.

A new option on the job function, false by default, allow to run the job
in a new transaction, at the cost of an additional connection +
transaction overhead.

Related to OCA#889
False on new databases, True on existing databases.
Should always be False by default on future versions.
As the controller changes env on Job instances.
@guewen guewen changed the base branch from 18.0 to 19.0 March 23, 2026 12:34
@guewen guewen marked this pull request as ready for review March 23, 2026 12:38
matthieu.saison and others added 3 commits March 23, 2026 14:38
…ethod

We add the `_subscribe_job_creator` method in `queue.job` which will return True for the cases where we want to subscribe the job creator, False otherwise.
@guewen guewen force-pushed the oca-port-queue_job-18.0-to-19.0-111691 branch from b81bd50 to 0ca06a9 Compare March 23, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants