mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
16 lines
264 B
PHP
Executable File
16 lines
264 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Services\Helpers;
|
|
|
|
use Illuminate\Support\Facades\Process;
|
|
|
|
class QueueHelper
|
|
{
|
|
public static function isRunning(): bool
|
|
{
|
|
$process = Process::run("pgrep -af 'queue:work'");
|
|
|
|
return ! empty($process->output());
|
|
}
|
|
}
|