Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from stefankleff/patch-1
Browse files Browse the repository at this point in the history
Update SqsWorker.php
  • Loading branch information
bakura10 committed Oct 2, 2014
2 parents 93c0058 + 38170fb commit e5db7b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SlmQueueSqs/Worker/SqsWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ public function processJob(JobInterface $job, QueueInterface $queue)
try {
$job->execute();
$queue->delete($job);
return static::JOB_SUCCESSFUL;
} catch (Exception $exception) {
// Do nothing, the job will be reinserted automatically for another try
return static::JOB_RESCHEDULED;
}
}
}

0 comments on commit e5db7b0

Please sign in to comment.