settleOrder($orderId); }); } $job->delete(); } catch (HttpResponseException $e) { $data = $e->getResponse()->getData(); $message = $data ? ($data['msg'] ?? '') : $e->getMessage(); format_log_error($e, 'PartnerSettle.HttpResponseException', $message); if ($job->attempts() >= 3) { $job->delete(); } else { $job->release(5); } } catch (\Exception $e) { format_log_error($e, 'PartnerSettle'); if ($job->attempts() >= 3) { $job->delete(); } else { $job->release(5); } } } }