- dev/betrieb/deploy.sh: Tag auschecken, composer, Caches leeren (bewusst
kein route:/config:cache wegen hostabhaengiger Routen und env()-Aufrufen),
horizon:terminate, FPM-Reload, Worker-Pruefung am Ende
- dev/betrieb/README.md: Einrichtung Server, Umstellung des Live-Verzeichnisses,
Release, Deploy, Rollback
- config('app.version') aus RELEASE, php artisan about --only=mivita
- monitoring:queue-probe prueft nach dem Deploy, ob Horizon Jobs abholt
- Vorlage dev/git-deploy-monitoring aus Pressekonto
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
767 B
PHP
31 lines
767 B
PHP
<?php
|
|
|
|
namespace App\Jobs\Monitoring;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Queue\Queueable;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
/**
|
|
* Test-Job für `monitoring:queue-probe`: tut nichts außer zu quittieren,
|
|
* dass ein Worker ihn abgeholt hat. Läuft auf der Standard-Queue —
|
|
* Horizon muss sie bedienen.
|
|
*/
|
|
class QueueProbe implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
|
|
public int $tries = 1;
|
|
|
|
public function __construct(public string $token) {}
|
|
|
|
public static function cacheKey(string $token): string
|
|
{
|
|
return 'monitoring:queue-probe:'.$token;
|
|
}
|
|
|
|
public function handle(): void
|
|
{
|
|
Cache::put(self::cacheKey($this->token), now()->toIso8601String(), now()->addMinutes(10));
|
|
}
|
|
}
|