Skip to content

Support a label to allow re-running completed k8s Jobs on deploy#757

Merged
prathamesh0 merged 1 commit into
mainfrom
laconic-recreate-job
Jun 5, 2026
Merged

Support a label to allow re-running completed k8s Jobs on deploy#757
prathamesh0 merged 1 commit into
mainfrom
laconic-recreate-job

Conversation

@prathamesh0

@prathamesh0 prathamesh0 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator
  • Adds support for a laconic.recreate-job compose label. Any service carrying it gets the same annotation stamped onto its generated k8s Job
  • On deploy, a Job marked for recreate is deleted (cascading to its pods) and recreated instead of erroring because the Job already exists
  • The delete blocks until the old Job is fully gone (bounded by a timeout) before recreating, so each run starts clean
  • Adds unit tests for the label -> annotation propagation and the delete-then-recreate path

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@prathamesh0 prathamesh0 merged commit a181281 into main Jun 5, 2026
1 check passed
@prathamesh0 prathamesh0 deleted the laconic-recreate-job branch June 5, 2026 07:06
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.

2 participants