Skip to content

Commit

Permalink
fix: logging from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daneren2005 committed Oct 16, 2024
1 parent 980571f commit 5facd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Resque/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function perform()
$removed = Resque::redis()->lrem('working:' . $this->queue, 0, $this->payload['id']);
Resque::redis()->del('job:' . $this->payload['id'] . ':worker');
if($removed <= 0) {
$this->logger->log(Psr\Log\LogLevel::WARNING, $this->payload['id'] . ' was not removed from working: ' . $this->queue . ', retrying in 250ms.');
$this->worker->logger->log(Psr\Log\LogLevel::WARNING, $this->payload['id'] . ' was not removed from working: ' . $this->queue . ', retrying in 250ms.');
usleep(250000);

$removed = Resque::redis()->lrem('working:' . $this->queue, 0, $this->payload['id']);
Expand Down

0 comments on commit 5facd36

Please sign in to comment.