Save workspace changes

This commit is contained in:
2026-04-18 17:02:56 +02:00
parent f02ea9a711
commit 87d60af5a9
4220 changed files with 1388603 additions and 1554 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Redis;
use Throwable;
class HealthSchedulerTickCommand extends Command
{
protected $signature = 'health:tick';
protected $description = 'Write a scheduler heartbeat timestamp to Redis for health:check --only=scheduler.';
public function handle(): int
{
try {
Redis::setex('health:scheduler_last_tick', 300, time());
} catch (Throwable $e) {
// Non-fatal — never block the scheduler.
$this->warn('health:tick could not write to Redis: ' . $e->getMessage());
}
return self::SUCCESS;
}
}