1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/core/Scheduler/RetryableException.php
Ben Burgess f20c4cbed3 Retry scheduled tasks on failure (#18335)
* Catch and log errors for scheduled tasks

* Added retry on exception mechanism for scheduled tasks

* Replace error code with custom exception

* Fix/workaround for SchedulerTest mock breaking retry list option loading

* Log warning instead of info if a task has failed three times

* Added basic tests, minor code improvements

* Test fix

* Fix for test

* Added integration test to check that only tasks that throw exceptions are scheduled for retry
2022-02-02 12:19:23 +13:00

10 خطوط
114 B
PHP

<?php
namespace Piwik\Scheduler;
use Piwik\Exception\Exception;
class RetryableException extends Exception
{
}