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

Add default TTL for jobs of 24h #272

Merged
merged 1 commit into from
Jul 21, 2023
Merged

Add default TTL for jobs of 24h #272

merged 1 commit into from
Jul 21, 2023

Conversation

manno
Copy link
Member

@manno manno commented Jul 21, 2023

Since gitjob now retries failed jobs, we need a mechanism to allow automatic clean up.
We can make this configurable later.

See

Relates to rancher/fleet#1387

@manno manno requested a review from a team as a code owner July 21, 2023 08:16
@manno manno enabled auto-merge July 21, 2023 08:27
@manno manno changed the title Add default TTL for jobs of 3600s Add default TTL for jobs of 24h Jul 21, 2023
Copy link
Contributor

@raulcabello raulcabello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just left a minor comment

@manno manno merged commit d3c69ad into master Jul 21, 2023
4 checks passed
@manno manno deleted the add-default-ttl branch July 21, 2023 12:52
manno pushed a commit that referenced this pull request Aug 9, 2023
This reverts commit d3c69ad, reversing
changes made to a166d55.
manno added a commit that referenced this pull request Aug 10, 2023
Add propagationPolicy to delete job

Deleting jobs via the API does not remove their pods. This PR adds the
propagationPolicy to both delete request, the ForceUpdateGeneration one,
which previously didn't work and the new one, which is used to retrigger
failed jobs.

* Revert "Merge pull request #272 from rancher/add-default-ttl"
* Remove unused context value
* Add debug logging to job controller
* Remove the job cache from apply, so jobs can be recreated
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.

None yet

2 participants