Skip to content

Commit f6546d0

Browse files
authored
Merge pull request #19 from uc-cdis/feat/no_retry
feat(np_retry): set no retry
2 parents 416e5b2 + 73e38ce commit f6546d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

handlers/jobs.go

+2
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func CreateK8sJob(inputURL string, jobConfig JobConfig) (*JobInfo, error) {
181181
name := fmt.Sprintf("%s-%s", jobConfig.Name, randname)
182182
glog.Infoln("job input URL: ", inputURL)
183183
var deadline int64 = 72000
184+
var backoff int32 = 0
184185
labels := make(map[string]string)
185186
labels["app"] = "ssjdispatcherjob"
186187

@@ -219,6 +220,7 @@ func CreateK8sJob(inputURL string, jobConfig JobConfig) (*JobInfo, error) {
219220
// Optional: ActiveDeadlineSeconds:,
220221
// Optional: Selector:,
221222
// Optional: ManualSelector:,
223+
BackoffLimit: &backoff,
222224
ActiveDeadlineSeconds: &deadline,
223225
Template: k8sv1.PodTemplateSpec{
224226
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)