Skip to content

[13.x] Add del to RETRYABLE_COMMANDS - #62502

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
jackbayliss:del
Nov 16, 2026
Merged

taylorotwell merged 1 commit into
laravel:13.xfrom
jackbayliss:del

Conversation

@jackbayliss

@jackbayliss jackbayliss commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

When a Redis/Vakey cache flakes, today a Cache::delete() can cause a job to fail (cos it throws)

I hit this in a prod env, basically this caused a job to throw an exception rather than the delete being retried.

It feels safe to retry in my mind ie.. If the first attempt never reached Redis, the retry deletes the key. If it did, the key is already gone and the retry is a no-op..

Added a test for regression purposes, but TLDR is I just things to run smooooth

Alternatively we could just set command_retries I guess, but thought this should be retried as default..

The RETRYABLE_COMMANDS got moved into the connection recently via #62406, so the trace isn't the same (as in its not released yet)

trace
  RedisException: read error on connection to tls://cache-xxxxxxxx.eu-west-1.caches.xxxx:6379

  #0  Illuminate/Redis/Connections/Connection.php:124
  #1  Illuminate/Redis/Connections/PhpRedisConnection.php:637
  #2  Illuminate/Redis/Connections/Connection.php:284
  #3  Illuminate/Redis/Connections/PhpRedisConnection.php:779
  #4  Illuminate/Cache/RedisStore.php:288
  #5  Illuminate/Cache/Repository.php:760
  #6  Illuminate/Cache/Repository.php:776
  #7  Illuminate/Cache/CacheManager.php:600
  #8  Illuminate/Support/Facades/Facade.php:364
  #9  App/Jobs/ImportJob.php                      <- Cache::delete()
  #10 Illuminate/Bus/Dispatcher.php:136
  #11 Illuminate/Queue/CallQueuedHandler.php:86
  #12 Illuminate/Queue/Jobs/Job.php:102
  #13 Illuminate/Queue/Worker.php:580

@jackbayliss jackbayliss changed the title [13.x] All del to Redis RETRYABLE_COMMANDS [13.x] Add del to Redis RETRYABLE_COMMANDS Nov 16, 2026
@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss
jackbayliss marked this pull request as ready for review November 16, 2026 12:16
@jackbayliss jackbayliss changed the title [13.x] Add del to Redis RETRYABLE_COMMANDS [13.x] Add del to RETRYABLE_COMMANDS Nov 16, 2026
@taylorotwell
taylorotwell merged commit cfa4fa4 into laravel:13.x Nov 16, 2026
64 checks passed
@jackbayliss
jackbayliss deleted the del branch November 16, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants