REFACTOR Make queue_job dependencies optional#2105
Open
ecino wants to merge 1 commit into
Open
Conversation
ecino
commented
Jun 25, 2026
Member
- NEW module queue_job_sh_safe that will safely use queue_jobs when available and fallback to an alternate mechanism with ir_cron in case the module is not installed.
- This is useful for Nordic using odoo.sh on which queue jobs are prohibited and not optimal for the infrastructure
This comment was marked as resolved.
This comment was marked as resolved.
07f6d5f to
a0cad46
Compare
a0cad46 to
e2d8348
Compare
e2d8348 to
51f4a7d
Compare
51f4a7d to
bda7e87
Compare
bda7e87 to
c7688c2
Compare
c7688c2 to
5959cc9
Compare
5959cc9 to
9b2f73a
Compare
9b2f73a to
28c5143
Compare
f21d9e3 to
b886b0a
Compare
b886b0a to
ff7a2b5
Compare
ff7a2b5 to
1f482b5
Compare
1f482b5 to
fff7252
Compare
fff7252 to
e577373
Compare
e577373 to
07cdaba
Compare
- NEW module queue_job_sh_safe that will safely use queue_jobs when available and fallback to an alternate mechanism with ir_cron in case the module is not installed. - This is useful for Nordic using odoo.sh on which queue jobs are prohibited and not optimal for the infrastructure
| job.delay() | ||
| return job | ||
| else: | ||
| return getattr(self.with_delay(**delay_args), job_function)(*job_args) |
There was a problem hiding this comment.
When sbc_compassion calls with_delay_sh("run_analyze", wait_for_children=True) without split or parent_job_id, this branch uses with_delay(...).run_analyze() and returns an already-created queue.job record. The next call passes that value as parent_job_id, reaches parent_job.on_done(job), and can crash instead of preserving the old delayable().run_analyze(); job.on_done(after_job).delay() ordering.
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.