Skip to content

Commit ed3fd03

Browse files
authored
exclude "reserved" jobs in Autopopulate.populate
1 parent 9c12891 commit ed3fd03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datajoint/autopopulate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ def handler(signum, frame):
204204

205205
keys = (self._jobs_to_do(restrictions) - self.target).fetch("KEY", limit=limit)
206206

207-
# exclude "error" or "ignore" jobs
207+
# exclude "error", "ignore" or "reserved" jobs
208208
if reserve_jobs:
209209
exclude_key_hashes = (
210210
jobs
211211
& {"table_name": self.target.table_name}
212-
& 'status in ("error", "ignore")'
212+
& 'status in ("error", "ignore", "reserved")'
213213
).fetch("key_hash")
214214
keys = [key for key in keys if key_hash(key) not in exclude_key_hashes]
215215

0 commit comments

Comments
 (0)