Skip to content

Commit

Permalink
fix status
Browse files Browse the repository at this point in the history
  • Loading branch information
agoalofalife committed Mar 12, 2018
1 parent 4665673 commit 7c9248a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified docs/images/base.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Console/ParseReportsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public function handle() : void

if ($reportInProcess->count() > 0) {
$reportInProcess = $reportInProcess->random();
$this->call('reports:handle', ['classReport' => $reportInProcess->class_name]);
$reportInProcess->update([
'pid' => getmypid(),
'status' => Report::STATUS_WORKER
]);
$this->call('reports:handle', ['classReport' => $reportInProcess->class_name]);
} else {
$this->warn('Reports in the status "in process" is missing');
}
Expand Down

0 comments on commit 7c9248a

Please sign in to comment.