Skip to content

Commit

Permalink
queue_job: fix partial index to add 'wait_dependencies' state
Browse files Browse the repository at this point in the history
  • Loading branch information
sebalix committed Mar 6, 2024
1 parent 11ae588 commit dc8eba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue_job/models/queue_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def init(self):
self._cr.execute(
"CREATE INDEX queue_job_identity_key_state_partial_index "
"ON queue_job (identity_key) WHERE state in ('pending', "
"'enqueued') AND identity_key IS NOT NULL;"
"'enqueued', 'wait_dependencies') AND identity_key IS NOT NULL;"
)

@api.depends("records")
Expand Down

0 comments on commit dc8eba5

Please sign in to comment.