Skip to content

Commit

Permalink
Deadline for running a job
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrov committed Jan 6, 2024
1 parent 8b1c799 commit d77f490
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ async fn run(job_api: &Api<Job>, blackhole: &Blackhole) -> Result<(), kube::Erro
},
spec: Some(JobSpec {
ttl_seconds_after_finished: Some(60),
active_deadline_seconds: Some(60 * 360), // 6 hours
template: PodTemplateSpec {
spec: Some(pod_spec.clone()),
..PodTemplateSpec::default()
Expand Down

0 comments on commit d77f490

Please sign in to comment.