-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
4.1.4
-
MOODLE_401_STABLE
Hi,
I discovered that we have in our Moodle instance some users that have comunicated some email and nowadays, these email addresses do not exist.
What is the problem?
This is making the task \mod_forum\task\send_user_notifications try and try and try to send emails to these people, without exit, since email addresses do not exist any more.
And this may happen to other adhoc tasks too, for other reasons.
Possible, but weird workaround
I know that I could delete the records of the table task_adhoc for those users and finish with the issue.
However, I think this is only a temporary patch. If any other message is sent to those users or any other Moodle user enters to the same situation, we will face the same issue again.
Proposal
After commenting it within our team, we believe that it would be interesting to have some setting (preferably on the web, but also acceptable only via config.php) to let adhoc tasks in general, or to only some specific adhoc task, to run for a maximum of X time (for instance, 5 days).
Nowadays, technology may fail, but it is not expected to fail during so long time. And if locally or for any reason, there is some trouble with the Moodle instance, this setting could then be disabled, and let the adhoc task requeue until external problem is solved.
So, even though we started talking about forum module and one of its adhoc tasks, this issue is related to Moodle adhoc tasks in general. However, I would choose forum module just to start with the use case I found. Let us see if it is interesting in general.
Question
Is this proposal sound for you for adhoc tasks in forum module? And, is it interesing this proposal aslo in general to any adhoc task?
Thanks
- duplicates
-
MDL-79130 Tasks: Ad-hoc tasks shouldn't retry after max fail delay
-
- Closed
-
- has a non-specific relationship to
-
MDL-72729 Disabling forum posts message provider causes related adhoc task to continually fail/requeue
-
- Open
-
- has been marked as being related by
-
MDL-80898 Duplicate web notifications when email delivery fails for forum notifications
-
- Open
-
- will be (partly) resolved by
-
MDL-79130 Tasks: Ad-hoc tasks shouldn't retry after max fail delay
-
- Closed
-