We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Autopopulate.populate
1 parent 9c12891 commit ed3fd03Copy full SHA for ed3fd03
datajoint/autopopulate.py
@@ -204,12 +204,12 @@ def handler(signum, frame):
204
205
keys = (self._jobs_to_do(restrictions) - self.target).fetch("KEY", limit=limit)
206
207
- # exclude "error" or "ignore" jobs
+ # exclude "error", "ignore" or "reserved" jobs
208
if reserve_jobs:
209
exclude_key_hashes = (
210
jobs
211
& {"table_name": self.target.table_name}
212
- & 'status in ("error", "ignore")'
+ & 'status in ("error", "ignore", "reserved")'
213
).fetch("key_hash")
214
keys = [key for key in keys if key_hash(key) not in exclude_key_hashes]
215
0 commit comments