General developer forum

Retry failed event?

Picture of Sam Chaffee
Re: Retry failed event?
Core developersParticularly helpful Moodlers
Gareth's suggestion is great and I wanted to add to it. I've found that adhoc tasks are great for this sort of thing. In your failure code, instead of returning false or throwing an exception you would create an instance of the adhoc task, set the event data as the custom data and queue it up.
Average of ratings: -