Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule a retry for any alerts that fail #107

Open
bx80 opened this issue Jan 25, 2022 · 1 comment
Open

Schedule a retry for any alerts that fail #107

bx80 opened this issue Jan 25, 2022 · 1 comment

Comments

@bx80
Copy link
Contributor

bx80 commented Jan 25, 2022

matomo-org/matomo#18335 provides the core scheduler with the ability to retry any scheduled tasks that fail if the task throws a Scheduler\RetryableException.

It would be good to implement this in custom alerts so that any alerts that fail to send can be retried.

@bx80 bx80 added the Stability label Jan 25, 2022
@tsteur tsteur added this to the Current sprint milestone Jan 25, 2022
@sgiehl
Copy link
Member

sgiehl commented Jan 25, 2022

When implementing this, we need to keep in mind, that the new exception is only available in newer Matomo versions.
I guess the best solution would be to throw that specific exception only if it is available and use a normal Exception if not.
Otherwise we would need to incease the minimum required Matomo version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants