File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
keps/sig-apps/2232-suspend-jobs Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,16 @@ Pods owned by the Job are terminating or have been deleted.
253
253
The suspend ` JobCondition ` also has a ` LastTransitionTime ` field. This can be
254
254
used to infer how long a Job has been suspended for (if ` Status ` is true).
255
255
256
- If a Job is created with ` suspend: true ` , the ` StartTime ` field of the Job
257
- status is set only when it is resumed for the first time.
256
+ The ` StartTime ` field of the Job status is reset to the current time every time
257
+ the Job is resumed from suspension. If a Job is created with ` suspend: true ` ,
258
+ the ` StartTime ` field of the Job status is set only when it is resumed for the
259
+ first time.
260
+
261
+ If a Job is suspended (at creation or through an update), the ` ActiveDeadlineSeconds `
262
+ timer will effectively be stopped and reset when the Job is resumed again. That
263
+ is, Jobs will never be terminated for exceeding ` ActiveDeadlineSeconds ` when a
264
+ Job is suspended. Users must interpret ` ActiveDeadlineSeconds ` as the duration
265
+ for which a Job can be * continuously* active before which it is terminated.
258
266
259
267
When a Job is suspended or created in the suspended state, a "Suspended" event
260
268
is recorded. Similarly, when a Job is resumed from its suspended state, a
You can’t perform that action at this time.
0 commit comments