coolify/app/Jobs/CheckResaleLicenseJob.php

32 lines
799 B
PHP
Raw Normal View History

2023-07-14 11:27:08 +02:00
<?php
namespace App\Jobs;
use App\Actions\License\CheckResaleLicense;
use Illuminate\Bus\Queueable;
2023-09-14 10:12:44 +02:00
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
2023-07-14 11:27:08 +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 CheckResaleLicenseJob implements ShouldQueue, ShouldBeEncrypted
2023-07-14 11:27:08 +02:00
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct()
{
}
public function handle(): void
{
try {
CheckResaleLicense::run();
2023-09-11 17:36:30 +02:00
} catch (\Throwable $e) {
send_internal_notification('CheckResaleLicenseJob failed with: ' . $e->getMessage());
ray($e);
throw $e;
2023-07-14 11:27:08 +02:00
}
}
}