This commit is contained in:
2025-09-10 17:54:36 +05:00
parent 673042dd32
commit e64cf34c90
2 changed files with 16 additions and 1 deletions

View File

@@ -8,11 +8,19 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
class SendSberToSystem implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* The number of seconds the job can run before timing out.
*
* @var int
*/
public $timeout = 5;
/**
* Create a new job instance.
*/
@@ -36,5 +44,10 @@ class SendSberToSystem implements ShouldQueue
return;
}
$result = syncWithAzatAPI($orderItem);
if (isset($result['error'])) {
Log::error($result['error']);
}
}
}