Skip to content

Commit e411228

Browse files
authored
Ignore k8sjob if within job creation grace period (#1797)
Co-authored-by: vishal <vishalbollu@users.noreply.github.com>
1 parent 9caba15 commit e411228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/operator/resources/batchapi/manage_resources_cron.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ func ManageJobResources() error {
141141
continue
142142
}
143143
}
144-
if queueURL == nil {
145-
// 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
144+
if queueURL == nil || k8sJob == nil {
145+
// job has been submitted within the grace period, it may take a while for a newly created queues and jobs to show up in list results
146146
continue
147147
}
148148

0 commit comments

Comments
 (0)