diff options
Diffstat (limited to 'plugins/jobs/drivers/sqs/requeue.go')
-rw-r--r-- | plugins/jobs/drivers/sqs/requeue.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/jobs/drivers/sqs/requeue.go b/plugins/jobs/drivers/sqs/requeue.go deleted file mode 100644 index 87e885e0..00000000 --- a/plugins/jobs/drivers/sqs/requeue.go +++ /dev/null @@ -1,25 +0,0 @@ -package sqs - -import "context" - -// requeueListener should handle items passed to requeue -func (j *JobConsumer) requeueListener() { - go func() { - for { //nolint:gosimple - select { - case item, ok := <-j.requeueCh: - if !ok { - j.log.Info("requeue channel closed") - return - } - - // TODO(rustatian): what context to use - err := j.handleItem(context.TODO(), item) - if err != nil { - j.log.Error("requeue handle item", "error", err) - continue - } - } - } - }() -} |