Skip to content

Commit cf9f211

Browse files
committed
fix: correct check in QueueChecker to consider empty queue
1 parent 8fc9f82 commit cf9f211

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG_de-DE.md

+4
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@
3131
* Show IndexerName for TaskLogger
3232
* Add manager for Elasticsearch
3333
* Add performance checks
34+
35+
# 0.1.5
36+
37+
* Fix QueueChecker to show correct message

CHANGELOG_en-GB.md

+4
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@
3131
* Show IndexerName for TaskLogger
3232
* Add manager for Elasticsearch
3333
* Add performance checks
34+
35+
# 0.1.5
36+
37+
* Fix QueueChecker to show correct message

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frosh/tools",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Provides some basic things for managing the Shopware Installation",
55
"type": "shopware-platform-plugin",
66
"license": "MIT",

src/Components/Health/Checker/HealthChecker/QueueChecker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function collect(HealthCollection $collection): void
2525
$minutes = 15;
2626

2727
// When the oldest message is older then $minutes minutes
28-
if (($oldestMessage + ($minutes * 60)) < time()) {
28+
if ($oldestMessage && ($oldestMessage + ($minutes * 60)) < time()) {
2929
$result = SettingsResult::warning('frosh-tools.checker.queuesWarning');
3030
}
3131

0 commit comments

Comments
 (0)