Skip to content

feat(sdk): expose max_run_attempts, current_run_attempt for jobs retries. - #142

Merged
fnwoke-lightning merged 3 commits into
mainfrom
fnwoke/expost-job-max_run_attempts
Sep 1, 2026
Merged

feat(sdk): expose max_run_attempts, current_run_attempt for jobs retries.#142
fnwoke-lightning merged 3 commits into
mainfrom
fnwoke/expost-job-max_run_attempts

Conversation

@fnwoke-lightning

Copy link
Copy Markdown
Contributor

This PR extends the sdk to support retryable jobs. We expand the job create to include max_run_attempts to indicate the maximum number of attempts while the job run keeps failing.

This PR also exposes the max_run_attempts, current_run_attempt and parent_job_id when a job is read.

In the next PR, the cli would be updated as well.

Comment thread python/lightning_sdk/job.py Outdated
@fnwoke-lightning fnwoke-lightning changed the title feat(sdk): expose max_run_attempts, current_run_attempt and parent_job_id for jobs. feat(sdk): expose max_run_attempts, current_run_attempt for jobs retries. Sep 1, 2026
@fnwoke-lightning
fnwoke-lightning merged commit f38e653 into main Sep 1, 2026
25 checks passed
@fnwoke-lightning
fnwoke-lightning deleted the fnwoke/expost-job-max_run_attempts branch September 1, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants