Skip to content

Comments

[18.0] Skip check of dependencies when a done job has no dependents#900

Open
guewen wants to merge 2 commits intoOCA:18.0from
guewen:18.0-skip-dependents-check-if-no-dependents
Open

[18.0] Skip check of dependencies when a done job has no dependents#900
guewen wants to merge 2 commits intoOCA:18.0from
guewen:18.0-skip-dependents-check-if-no-dependents

Conversation

@guewen
Copy link
Member

@guewen guewen commented Feb 19, 2026

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.

@OCA-git-bot
Copy link
Contributor

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

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.
@guewen guewen force-pushed the 18.0-skip-dependents-check-if-no-dependents branch from 79126b9 to 74c1430 Compare February 19, 2026 15:45
Copy link
Member

@amh-mw amh-mw left a comment

Choose a reason for hiding this comment

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

Code review only, LGTM.

@sbidoul
Copy link
Member

sbidoul commented Feb 19, 2026

Looks good. While you are at it, could you add a return at line 174 of the controller (#883 (comment))?

@guewen guewen requested a review from sbidoul February 20, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants