Skip to content

Commit 76caa20

Browse files
author
Adhityaa Chandrasekar
committed
suspend jobs: add note about StartTime and ADS
Signed-off-by: Adhityaa Chandrasekar <[email protected]>
1 parent 165c807 commit 76caa20

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

keps/sig-apps/2232-suspend-jobs/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,16 @@ Pods owned by the Job are terminating or have been deleted.
253253
The suspend `JobCondition` also has a `LastTransitionTime` field. This can be
254254
used to infer how long a Job has been suspended for (if `Status` is true).
255255

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.
258266

259267
When a Job is suspended or created in the suspended state, a "Suspended" event
260268
is recorded. Similarly, when a Job is resumed from its suspended state, a

0 commit comments

Comments
 (0)