Skip to content

Instantly share code, notes, and snippets.

@dgafka
Created September 24, 2022 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgafka/0f0a1465f3af5e136b9a5bf6696c4d71 to your computer and use it in GitHub Desktop.
Save dgafka/0f0a1465f3af5e136b9a5bf6696c4d71 to your computer and use it in GitHub Desktop.
Working with asynchronous errors in PHP
<?php
#[ServiceContext]
public function errorConfiguration()
{
return ErrorHandlerConfiguration::createWithDeadLetterChannel(
"errorChannel",
RetryTemplateBuilder::exponentialBackoff(1000, 10)
->maxRetryAttempts(3),
"dbal_dead_letter"
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment