Skip to content

Commit

Permalink
Merge pull request #1 from gpn273/patch-1
Browse files Browse the repository at this point in the history
Console message for processing job
  • Loading branch information
Kieron authored Jan 23, 2019
2 parents afb5c8f + 812e554 commit 98420f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public function runOnce(): bool
{
if ($this->queue->count() > 0) {
$message = $this->queue->pop();

$task = json_decode($message, true)['task'];
$this->output(sprintf('[%s] Processing: %s', (new \DateTime)->format(\DateTime::RFC3339_EXTENDED), $task));

\call_user_func($this->handler, $message);

Expand Down

0 comments on commit 98420f2

Please sign in to comment.