We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b986ae commit 8900feaCopy full SHA for 8900fea
docs/src/design/autopopulate-2.0-spec.md
@@ -310,9 +310,12 @@ def populate(
310
311
New behavior with reserve_jobs=True:
312
1. If refresh=True, calls self.jobs.refresh(*restrictions)
313
- 2. Fetches jobs from self.jobs where status='pending' and scheduled_time <= now
314
- 3. Reserves and processes jobs using the jobs table
315
- 4. Records success/error status in jobs table
+ 2. For each pending job (ordered by priority, scheduled_time):
+ a. Mark job as 'reserved' (per-key, before make)
+ b. Call make(key)
316
+ c. On success: mark job as 'success'
317
+ d. On error: mark job as 'error' with message/stack
318
+ 3. Continue until no more pending jobs or max_calls reached
319
"""
320
...
321
```
0 commit comments