add more timeout process order
This commit is contained in:
@@ -165,7 +165,7 @@ class ProcessOrderPaymentJob implements ShouldQueue
|
|||||||
if ($this->retryCount < self::MAX_RETRIES) {
|
if ($this->retryCount < self::MAX_RETRIES) {
|
||||||
// Kiểm tra nếu lỗi là timeout, tăng delay time
|
// Kiểm tra nếu lỗi là timeout, tăng delay time
|
||||||
$isTimeoutError = $this->isTimeoutError($failedVMs);
|
$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, [
|
Log::warning("Có lỗi khi tạo VM, thử lại lần " . ($this->retryCount + 1), array_merge($errorDetails, [
|
||||||
'is_timeout_error' => $isTimeoutError,
|
'is_timeout_error' => $isTimeoutError,
|
||||||
|
|||||||
Reference in New Issue
Block a user