-
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
Proposal: step timeout #1690
Comments
I am watching changes: #1722. It provides an ability to retrieve information from taskstep container.
and set |
Seems reasonable to me! @imjasonh do you have an example use case where you'd need this? (just wanna understand why the overall task timeout wouldn't be enough) |
Task authors might want to have one step that should take just a few seconds, to set up the execution environment for instance, followed by a second step that might take a long time. If the setup step takes longer than expected it might indicate some larger issue and you'd want to fail fast rather than exhaust the TaskRun's timeout waiting for setup. |
Hi, @imjasonh I begin to work on it . Can you assign it to me ? My plan is
|
Hey @chengjingtao sorry we didn't reply sooner! Are you still working on this? Your approach sounds solid. Adding Reason and Message into the terminationMessage is a nice addition - it might actually be interesting to tackle this first i.e. in a separate PR - seems useful even outside the context of time outs! |
@bobcatfish yes, I will work on this and sorry for my slow action.
|
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
We should get a detail information in order to indicate the reason of why entrypointer failed Sometimes, it would be DeadlineExecced or others and we want to represent it on TaskStep. It is a PRE-PR to implement the issue tektoncd#1690 Signed-off-by: jtcheng <jtcheng0616@gmail.com>
Hi @chengjingtao, are you still working on this issue? |
seperate Step from Sidecar Originally the Sidecar type is an alias of the Step type. Both tektoncd#3013 and tektoncd#1690 will require the two types to divert from each other. This commit seperates the two types and updates code to accomodate convertListOfSteps() which originally depended on theses types to be the same. Partially based on: https://github.com/tektoncd/pipeline/pull/3013/files
separate Step from Sidecar Originally the Sidecar type is an alias of the Step type. Both tektoncd#3013 and tektoncd#1690 will require the two types to divert from each other. This commit separates the two types and updates code to accomodate convertListOfSteps() which originally depended on theses types to be the same. Partially based on: https://github.com/tektoncd/pipeline/pull/3013/files
separate Step from Sidecar Originally the Sidecar type is an alias of the Step type. Both tektoncd#3013 and tektoncd#1690 will require the two types to divert from each other. This commit separates the two types and updates code to accomodate convertListOfSteps() which originally depended on theses types to be the same. Partially based on: https://github.com/tektoncd/pipeline/pull/3013/files
separate Step from Sidecar Originally the Sidecar type is an alias of the Step type. Both tektoncd#3013 and tektoncd#1690 will require the two types to divert from each other. This commit separates the two types and updates code to accomodate convertListOfSteps() which originally depended on theses types to be the same. Partially based on: https://github.com/tektoncd/pipeline/pull/3013/files
Originally the Sidecar type is an alias of the Step type. Both tektoncd#3013 and tektoncd#1690 will require the two types to divert from each other. This commit separates the two types and updates code to accomodate convertListOfSteps() which originally depended on theses types to be the same. Partially based on: https://github.com/tektoncd/pipeline/pull/3013/files
This feature allows a Task author to specify a timeout for a Step. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast than wait for the TaskRun timeout to abort the TaskRun (example by @imjasonh). Closes tektoncd#1690
This feature allows a Task author to specify a timeout for a Step. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast than wait for the TaskRun timeout to abort the TaskRun (example by @imjasonh). Closes tektoncd#1690
This feature allows a Task author to specify a timeout for a Step. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast than wait for the TaskRun timeout to abort the TaskRun (example by @imjasonh). Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast than wait for the TaskRun timeout to abort the TaskRun (example by @imjasonh). Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast than wait for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast than wait for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast than wait for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
Originally the Sidecar type is an alias of the Step type. Both #3013 and #1690 will require the two types to divert from each other. This commit separates the two types and updates code to accomodate convertListOfSteps() which originally depended on theses types to be the same. Partially based on: https://github.com/tektoncd/pipeline/pull/3013/files
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
I realized my change for #2559 needs to heavily based on Add timeout setting to Steps. I saw this commit was held by #3239 Are both issues' commits going to be merged soon? |
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690 modified: pkg/pod/pod.go
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690 modified: pkg/pod/pod.go
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690 modified: pkg/pod/pod.go
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes #1690
This feature allows a Task author to specify a Step timeout in a Taskrun. An example use case is when a Task author would like to execute a Step for setting up an execution environment. One may expect this Step to execute within a few seconds. If the execution time takes longer than expected one may rather want to fail fast instead of waiting for the TaskRun timeout to abort the TaskRun. Closes tektoncd#1690
It could be nice to augment the
Step
type with a timeout duration, after which time the step fails with some unique status/message.To support this we could pass the timeout value to the entrypoint binary, which would start a timer when step execution starts, and stop executing and raise a timeout error if execution doesn't finish in time.
If this is interesting to people it should be a pretty good first issue for a new contributor.
/kind feature
The text was updated successfully, but these errors were encountered: