Skip to content

Commit

Permalink
Merge pull request #14 from gyselroth/dev
Browse files Browse the repository at this point in the history
fixes #13
  • Loading branch information
raffis authored Jan 24, 2019
2 parents 5af6ed4 + 7630727 commit 0ff5436
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 3.0.1
**Maintainer**: Raffael Sahli <[email protected]>\
**Date**: Thu Jan 25 17:29:34 CET 2018

* [FIX] Catch \Throwable insteadof \Exception #13


## 3.0.0
**Maintainer**: Raffael Sahli <[email protected]>\
**Date**: Mon Nov 19 17:24:34 CET 2018
Expand Down
2 changes: 1 addition & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ protected function processJob(array $job): ObjectId
try {
$this->executeJob($job);
$this->current_job = null;
} catch (\Exception $e) {
} catch (\Throwable $e) {
pcntl_alarm(0);

$this->logger->error('failed execute job ['.$job['_id'].'] of type ['.$job['class'].'] on worker ['.$this->id.']', [
Expand Down

0 comments on commit 0ff5436

Please sign in to comment.