Skip to content

Commit

Permalink
Merge pull request #1 from boboldehampsink/total-jobs-fix
Browse files Browse the repository at this point in the history
Also take running jobs into account
  • Loading branch information
bvangennep committed Mar 19, 2020
2 parents c0d9011 + bd31868 commit 41eb16b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.1 - 2020-03-19
### Fixed
- Take all jobs into account, not only pending jobs

## 1.0.0 - 2018-04-18
### Added
- Initial release
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.1",
"name": "nerds-and-company/craft-hirefire",
"description": "Hirefire.io worker scheduler for Craft 3 queue jobs",
"type": "craft-plugin",
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/InfoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function actionIndex(string $token): Response
// Return pending queue for worker
return $this->asJson([[
'name' => 'worker',
'quantity' => Craft::$app->queue->getTotalWaiting(),
'quantity' => Craft::$app->queue->getTotalJobs(),
]]);
}
}

0 comments on commit 41eb16b

Please sign in to comment.