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.