mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(generator): add build worker with retries and placeholder fallback
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -230,7 +230,8 @@ def claim_next_job() -> Optional[dict]:
|
||||
c.execute("UPDATE jobs SET status='running', updated_at=?, attempts=attempts+1 WHERE id=?",
|
||||
(now, row["id"]))
|
||||
c.commit()
|
||||
return {"id": row["id"], "username": row["username"], "kind": row["kind"], "status": "running"}
|
||||
return {"id": row["id"], "username": row["username"], "kind": row["kind"],
|
||||
"status": "running", "attempts": row["attempts"] + 1}
|
||||
|
||||
|
||||
def complete_job(job_id: int) -> None:
|
||||
|
||||
Reference in New Issue
Block a user