add more timeout process order

This commit is contained in:
pbaodev
2025-08-17 21:52:05 +07:00
parent 31e3262412
commit 6b358afd4b
@@ -165,7 +165,7 @@ class ProcessOrderPaymentJob implements ShouldQueue
if ($this->retryCount < self::MAX_RETRIES) {
// Kiểm tra nếu lỗi là timeout, tăng delay time
$isTimeoutError = $this->isTimeoutError($failedVMs);
$delayMinutes = $isTimeoutError ? 10 : 5; // Timeout thì chờ 10 phút, lỗi khác chờ 5 phút
$delayMinutes = $isTimeoutError ? 10 : 10; // Timeout thì chờ 10 phút, lỗi khác chờ 10 phút
Log::warning("Có lỗi khi tạo VM, thử lại lần " . ($this->retryCount + 1), array_merge($errorDetails, [
'is_timeout_error' => $isTimeoutError,