PHP Tested
Retry a callable with exponential backoff in PHP
Re-run flaky operations with growing delays and jitter, only for chosen exception types.
Loading snippets…
5 snippets
Re-run flaky operations with growing delays and jitter, only for chosen exception types.
Re-run a flaky command a few times with increasing delays and a clear failure exit code.
Make POST requests safe to retry by sending a unique Idempotency-Key that the server can de-duplicate.
Create a temp directory and guarantee it is removed when the script exits, fails or is interrupted.
Write to a temporary file and rename it into place so readers never see a half-written file.