Get a task by ID.
(self, task_id: int)
| 195 | return cur.lastrowid |
| 196 | |
| 197 | def get_task(self, task_id: int) -> Optional[Dict]: |
| 198 | """Get a task by ID.""" |
| 199 | with self._lock: |
| 200 | cur = self._conn.execute("SELECT * FROM task_queue WHERE id = ?", (task_id,)) |
| 201 | row = cur.fetchone() |
| 202 | return dict(row) if row else None |
| 203 | |
| 204 | def get_next_pending(self) -> Optional[Dict]: |
| 205 | """Get the next pending task whose dependencies are all done (oldest first). |
no test coverage detected