Skip to content
Prev Previous commit
Next Next commit
Update to the CRD to support 'pauseTimeInSeconds'
  • Loading branch information
metalcycling committed Oct 24, 2023
commit 347b9c5c711011df0e0876f2a654e8e2a651715d
6 changes: 6 additions & 0 deletions config/crd/bases/workload.codeflare.dev_appwrappers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ spec:
description: Field to keep track of how many times a requeuing
event has been triggered.
type: integer
pauseTimeInSeconds:
default: 0
description: When a job is ready to be redispatched after
it has been requeued due to preemption, MCAD will wait 'pauseTimeInSeconds'
before redispatching
type: integer
timeInSeconds:
default: 300
description: Initial waiting time before requeuing conditions
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/workload.codeflare.dev_schedulingspecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ spec:
description: Field to keep track of how many times a requeuing
event has been triggered.
type: integer
pauseTimeInSeconds:
default: 0
description: When a job is ready to be redispatched after it has
been requeued due to preemption, MCAD will wait 'pauseTimeInSeconds'
before redispatching
type: integer
timeInSeconds:
default: 300
description: Initial waiting time before requeuing conditions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ spec:
description: Field to keep track of how many times a requeuing
event has been triggered.
type: integer
pauseTimeInSeconds:
default: 0
description: When a job is ready to be redispatched after
it has been requeued due to preemption, MCAD will wait 'pauseTimeInSeconds'
before redispatching
type: integer
timeInSeconds:
default: 300
description: Initial waiting time before requeuing conditions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ spec:
description: Field to keep track of how many times a requeuing
event has been triggered.
type: integer
pauseTimeInSeconds:
default: 0
description: When a job is ready to be redispatched after it has
been requeued due to preemption, MCAD will wait 'pauseTimeInSeconds'
before redispatching
type: integer
timeInSeconds:
default: 300
description: Initial waiting time before requeuing conditions
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/controller/v1beta1/schedulingspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ type RequeuingTemplate struct {
// This may be necesary to prevent redeployment of generic items that create pods that were not correctly deleted.
// +kubebuilder:default=0
ForceDeletionTimeInSeconds int `json:"forceDeletionTimeInSeconds,omitempty" protobuf:"bytes,7,rep,name=forceDeletionTimeInSeconds"`
// When a job is ready to be redispatched after it has been requeued due to preemption, MCAD will
// wait 'pauseTimeInSeconds' before redispatching
// +kubebuilder:default=0
PauseTimeInSeconds int `json:"pauseTimeInSeconds,omitempty" protobuf:"bytes,8,rep,name=pauseTimeInSeconds"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down