Skip to content

Commit

Permalink
[IMP] queue_job_cron: Avoid parallel run
Browse files Browse the repository at this point in the history
By default, odoo never runs the same cron job in parallel. This commit uses the identity key mechanism to enforce this mechanism when a cron job is run as a queue job. This behaviour can be controlled by a new setting on the cron definition but is activated by default to keep the original behaviour
  • Loading branch information
lmignon authored and florentx committed Jan 13, 2025
1 parent c754edb commit 40f738d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue_job_cron/views/ir_cron_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<field name="run_as_queue_job" />
<field
name="no_parallel_queue_job_run"
invisible="run_as_queue_job == False"
invisible="not run_as_queue_job"
/>
<field
name="channel_id"
Expand Down

0 comments on commit 40f738d

Please sign in to comment.