mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Fixed bug with healthchecks facade causing speedtest job to fail
This commit is contained in:
@@ -82,16 +82,17 @@ class SpeedtestJob implements ShouldQueue
|
|||||||
private function healthcheck(String $method)
|
private function healthcheck(String $method)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$hc = new Healthchecks(SettingsHelper::get('healthchecks_uuid')->value);
|
||||||
if($method === 'start') {
|
if($method === 'start') {
|
||||||
Healthcheck::start();
|
$hc->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($method === 'success') {
|
if($method === 'success') {
|
||||||
Healthcheck::success();
|
$hc->success();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($method === 'fail') {
|
if($method === 'fail') {
|
||||||
Healthcheck::fail();
|
$hc->fail();
|
||||||
}
|
}
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user