Files
archived-frankenphp/testdata/failing-worker.php
Alexander Stecher a36547bc2f suggestion: simplify exponential backoff (#1970)
* removes backoff.

* Adjusts comment.

* Suggestions by @dunglas

* Removes 'max_consecutive_failures'

* Removes 'max_consecutive_failures'

* Adjusts warning.

* Disables the logger in tests.

* Revert "Adjusts warning."

This reverts commit e93a6a9301.

* Revert "Removes 'max_consecutive_failures'"

This reverts commit ba28ea0e4a.

* Revert "Removes 'max_consecutive_failures'"

This reverts commit 32e649caf7.

* Only fails on max failures again.

* Restores failure timings.
2025-11-13 23:38:54 +01:00

8 lines
179 B
PHP

<?php
if (rand(1, 100) <= 50) {
throw new Exception('this exception is expected to fail the worker');
}
// frankenphp_handle_request() has not been reached (also a failure)