mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
27 lines
426 B
PHP
27 lines
426 B
PHP
<?php
|
|
|
|
namespace App\Jobs\Queue;
|
|
|
|
use App\Jobs\Job;
|
|
use App\Models\Queue;
|
|
|
|
class GetLogs extends Job
|
|
{
|
|
protected Queue $worker;
|
|
|
|
public function __construct(Queue $worker)
|
|
{
|
|
$this->worker = $worker;
|
|
}
|
|
|
|
public function handle(): void
|
|
{
|
|
$logs = $this->worker->server->processManager()->handler()->getLogs($this->worker->log_file);
|
|
}
|
|
|
|
public function failed(): void
|
|
{
|
|
|
|
}
|
|
}
|