coolify/app/Jobs/ServerStorageSaveJob.php
Andras Bacsai 7dc65dfd79
Some checks are pending
Staging Build / amd64 (push) Waiting to run
Staging Build / aarch64 (push) Waiting to run
Staging Build / merge-manifest (push) Blocked by required conditions
fix: make sure important jobs/actions are running on high prio queue
2024-11-22 11:16:01 +01:00

27 lines
668 B
PHP

<?php
namespace App\Jobs;
use App\Models\LocalFileVolume;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class ServerStorageSaveJob implements ShouldBeEncrypted, ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct(public LocalFileVolume $localFileVolume)
{
$this->onQueue('high');
}
public function handle()
{
$this->localFileVolume->saveStorageOnServer();
}
}