Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve cleanup of remote-run job resources #4039

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

piax93
Copy link
Contributor

@piax93 piax93 commented Apr 7, 2025

paasta remote-run works fine now, but I noticed that unless people call paasta remote-run stop explicitly, the job resource would remain defined forever, even if the pod is terminated by the deadline being reached.

Tackling that on two different angles:

  • Setting ttl_seconds_after_finished in the job spec should ensure that when the pod completes, the job gets cleaned up too by k8s itself.
  • Adding jobs to the resources cleaned up by the cleanup script, but using the max duration as the age limit for that. Just in case k8s does not to the above correctly.

@piax93 piax93 requested a review from a team as a code owner April 7, 2025 14:28
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