giftcon_dev/app/Jobs/WorkerHeartbeatJob.php

25 lines
587 B
PHP

<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
final class WorkerHeartbeatJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public string $queue = 'default';
public int $tries = 1;
public int $timeout = 20;
public function handle(): void
{
Log::info('[worker-heartbeat] ok '.now());
}
}