lasthourcloud/app/Jobs/CheckResaleLicenseJob.php

30 lines
788 B
PHP
Raw Normal View History

2023-07-14 09:27:08 +00:00
<?php
namespace App\Jobs;
use App\Actions\License\CheckResaleLicense;
use Illuminate\Bus\Queueable;
2023-09-14 08:12:44 +00:00
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
2023-07-14 09:27:08 +00:00
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
2024-06-10 20:43:34 +00:00
class CheckResaleLicenseJob implements ShouldBeEncrypted, ShouldQueue
2023-07-14 09:27:08 +00:00
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
2024-06-19 06:59:46 +00:00
public function __construct() {}
2023-07-14 09:27:08 +00:00
public function handle(): void
{
try {
CheckResaleLicense::run();
2023-09-11 15:36:30 +00:00
} catch (\Throwable $e) {
2024-06-10 20:43:34 +00:00
send_internal_notification('CheckResaleLicenseJob failed with: '.$e->getMessage());
2023-09-11 15:36:30 +00:00
ray($e);
throw $e;
2023-07-14 09:27:08 +00:00
}
}
}