-
Notifications
You must be signed in to change notification settings - Fork 159
Add pod start time #322
Add pod start time #322
Changes from 8 commits
15e19d1
d1755fe
51ce7a1
abee971
7acaead
6958950
4be4746
8faf9d1
23eab08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,8 +92,7 @@ func IsTimeout(status *v1alpha1.BuildStatus, buildTimeout string) bool { | |
return false | ||
} | ||
} | ||
|
||
return time.Since(status.StartTime.Time).Seconds() > timeout.Seconds() | ||
return time.Since(status.CreationTime.Time).Seconds() > timeout.Seconds() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Time spent scheduling the pod shouldn't count toward the build's timeout, should this consider Unless we were thinking this would be a useful way to kill a build that was unschedulable, in which case we might need to introduce two separate timeouts. In GCB we only enforce timeouts once the build starts, since it's not the user's fault if it takes us a long time to start their build. We've considered enforcing a timeout on queued time, but I don't think any user has asked for it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we don't enforce timeout for allocating resources then build will remain in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, if that's on your radar for future changes that sounds good to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Created: #325 to follow up with changes discussed in this PR. |
||
} | ||
|
||
// ErrorMessage returns the error message from the status. | ||
|
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.
Can we separate these first-party imports (anything from
knative/build
) from the vendored imports from other packages?