You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update state diagram to Mermaid, consolidate scheduling into refresh()
- Replace ASCII diagram with Mermaid stateDiagram
- Remove separate schedule() and set_priority() methods
- refresh() now handles scheduling via scheduled_time and priority params
- Clarify complete() can delete or keep job based on settings
**Resetting jobs:** To reset a job (error or otherwise), simply delete it from the jobs table. The next `refresh()` will re-add it as `pending` if the key is still in `key_source`.
153
+
**Transition methods:**
154
+
-`refresh()` — Adds new jobs as `pending` (from `key_source - target - jobs`)
155
+
-`reserve()` — Marks a pending job as `reserved` before calling `make()`
156
+
-`complete()` — Marks reserved job as `success`, or deletes it (based on `jobs.keep_completed` setting)
157
+
-`error()` — Marks reserved job as `error` with message and stack trace
158
+
-`delete()` — Removes job entry, returning it to `(none)` state
164
159
165
160
**Manual status control:**
166
161
-`ignore` is set manually via `jobs.ignore(key)` and is not part of automatic transitions
@@ -180,7 +175,13 @@ class JobsTable(Table):
180
175
"""Dynamically generated based on parent table's primary key."""
0 commit comments