-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
set activeDeadlineSeconds to max for tasks with notimeouts #4450
Conversation
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-alpha-integration-tests |
I would rather set it to the |
PR tektoncd#4217 introduced better handling of the resource quota by adding support for activeDeadlineSeconds. activeDeadlineSeconds is calculated based on this formula: int64(taskRun.GetTimeout(ctx).Seconds() * 1.5) In case when a timeout on a task is set to 0s i.e. no timeout, the taskrun fails with ambiguous message "Invalid value: 0: must be between 1 and 2147483647, inclusive." This is happening because activeDeadlineSeconds is set to 0 in case of a 0s timeout but in this case activeDeadlineSeconds is assigned a value out of the permitted range (1 to maxint32). This commit is changing the way activeDeadlineSeconds is set such that it is set to MaxInt32 for a task with 0s timeout.
The following is the coverage report on the affected files.
|
thank you @vdemeester 👍 Setting it to the Yup I agree, it could be confusing to have some of the pods as terminating vs nonterminating. I am not sure though to completely disallowing timeout of 0s. There might be use cases for such no timeout tasks 🤔 . Its up to the user to select no timeout if it applies to their pipeline. As long as |
Thanks @pritidesai ! /lgtm |
@pritidesai lgtm, we just need to change the name of the PR (for "history") |
Done, sorry for the delay 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @pritidesai! 😸
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerop The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
PR #4217 introduced better handling of the resource quota by adding support for
activeDeadlineSeconds
.activeDeadlineSeconds
is calculated based on this formula:In case when a
timeout
on a task is set to0s
i.e. no timeout, thetaskrun
fails with ambiguous message"Invalid value: 0: must be between 1 and 2147483647, inclusive."
This is happening becauseactiveDeadlineSeconds
is set to 0 in case of a0s
timeout
but it is outside of the permitted range (1 to maxint32).This commit is changing the way activeDeadlineSeconds is set such that it is set to
MaxInt32
for a task with 0s timeout.Closes #4435
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes