2023-05-22 12:00:59 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Jobs;
|
|
|
|
|
2023-06-15 11:23:48 +02:00
|
|
|
use App\Actions\Server\UpdateCoolify;
|
2023-05-22 12:00:59 +02:00
|
|
|
use Illuminate\Bus\Queueable;
|
2023-09-14 10:12:44 +02:00
|
|
|
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
|
2023-05-26 08:16:39 +02:00
|
|
|
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
2023-05-22 12:00:59 +02:00
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2023-09-14 10:12:44 +02:00
|
|
|
class InstanceAutoUpdateJob implements ShouldQueue, ShouldBeUnique, ShouldBeEncrypted
|
2023-05-22 12:00:59 +02:00
|
|
|
{
|
2023-05-22 12:47:15 +02:00
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
2023-05-22 12:00:59 +02:00
|
|
|
|
2024-04-29 09:57:46 +02:00
|
|
|
public $timeout = 600;
|
|
|
|
public $tries = 1;
|
2023-06-06 08:43:01 +02:00
|
|
|
|
2024-05-28 15:05:18 +02:00
|
|
|
public function __construct()
|
2023-05-26 08:58:58 +02:00
|
|
|
{
|
|
|
|
}
|
2023-08-08 11:51:36 +02:00
|
|
|
|
2023-05-26 08:58:58 +02:00
|
|
|
public function handle(): void
|
2023-05-22 12:00:59 +02:00
|
|
|
{
|
2024-05-28 15:05:18 +02:00
|
|
|
UpdateCoolify::run();
|
2023-06-15 09:27:00 +02:00
|
|
|
}
|
2023-05-22 12:00:59 +02:00
|
|
|
}
|