Initial Ladill Queue release — enterprise QMS standalone app.
Deploy Ladill Queue / deploy (push) Successful in 56s
Deploy Ladill Queue / deploy (push) Successful in 56s
Phases 1–6: tickets, counters, displays, appointments, workflows, rules, analytics, reports, feedback, admin, device API, and Gitea deploy workflow for queue.ladill.com. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\Qms\DeviceService;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class MarkDevicesOfflineCommand extends Command
|
||||
{
|
||||
protected $signature = 'qms:mark-devices-offline';
|
||||
|
||||
protected $description = 'Mark queue devices offline when heartbeat is stale';
|
||||
|
||||
public function handle(DeviceService $devices): int
|
||||
{
|
||||
$count = $devices->markStaleOffline();
|
||||
|
||||
$this->info("Marked {$count} device(s) offline.");
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user