Skip to content

Commit

Permalink
[FIX] base_cron_exclusion: remove numbercall condition from ir_cron s…
Browse files Browse the repository at this point in the history
…elect clause
  • Loading branch information
xaviedoanhduy committed Jan 13, 2025
1 parent 01d056e commit 3a2cf5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base_cron_exclusion/models/ir_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def _lock_mutually_exclusive_cron(db, job_id):
lock_cr.execute(
"""SELECT *
FROM ir_cron
WHERE numbercall != 0
AND active
WHERE active
AND id IN %s
FOR UPDATE NOWAIT""",
(locked_ids,),
Expand Down

0 comments on commit 3a2cf5d

Please sign in to comment.