Created
September 24, 2022 10:07
-
-
Save dgafka/0f0a1465f3af5e136b9a5bf6696c4d71 to your computer and use it in GitHub Desktop.
Working with asynchronous errors in PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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