mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
Weekly thread #50
This commit is contained in:
parent
59205f1326
commit
e44c3d0f65
8 changed files with 107 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: 'Use retry() for callbacks that may randomly fail'
|
||||
tweet_id: '1471864638199451648'
|
||||
thread_slug: weekly-thread-2021-01
|
||||
author_username: alexjgarrett
|
||||
images:
|
||||
- 'https://pbs.twimg.com/media/FGP3MSQWQAYKjSm.jpg'
|
||||
created_at: 2021-12-17T15:27:30+00:00
|
||||
slug: use-retry-for-callbacks-that-may-randomly-fail
|
||||
---
|
||||
.@laravelphp out here helping me again, with its helpers!
|
||||
|
||||
I was hitting a shaky API that sometimes failed.
|
||||
|
||||
Here, the retry function tries the callback 3 times, with a 2 second interval in-between retries.
|
||||
Loading…
Add table
Add a link
Reference in a new issue