It's easy enough to write a query to run from cron and clean up the table. Of course, the nature of the beast is that they will return as there continues to be activity in the courses these users are enrolled in. Of course, the real fix is to delete the users from Moodle. But that throws up issues of data retention and the like.
As it stands, if one does nothing, these tasks build up to swamp all others. The adhoc task queue eventually is doing nothing but attempting to contact long lost users and can't do legitimate tasks any more.
So my assertion is that retrying adhoc tasks forever (even with a one day delay) sounds like a bug. Or my site is broken.
As it stands, if one does nothing, these tasks build up to swamp all others. The adhoc task queue eventually is doing nothing but attempting to contact long lost users and can't do legitimate tasks any more.
So my assertion is that retrying adhoc tasks forever (even with a one day delay) sounds like a bug. Or my site is broken.