Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/operator/resources/batchapi/manage_resources_cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func ManageJobResources() error {
errors.PrintError(err)
continue
}

if newStatusCode != jobState.Status {
err = errors.FirstError(
writeToJobLogStream(jobKey, msg),
Expand All @@ -128,6 +127,10 @@ func ManageJobResources() error {
continue
}
}
if queueURL == nil {
// job has been submitted within the grace period, it may take a while for a newly created queue to be listed in SQS api response
continue
}

err = checkIfJobCompleted(jobKey, *queueURL, k8sJob)
if err != nil {
Expand Down