Thank you so much for your reply.
I will describe below what I found so far, and please correct me if I got something wrong
I have checked the codein file
There I found that a function empty_queue which I guess is suppose to clear the queue as soon as the digest goes out to the user.
Then I went to the DB and checked the table mdl_forum_queue sorted by timemodified, it seems that the queue is there from 05/03/2020, 5 days ago.
Then I went to table mdl_task_adhoc and run the following query
SELECT *, FROM_UNIXTIME(nextruntime )
FROM mdl_task_adhoc mta
WHERE userid = 177;
I got this result
So it seems that user_digests for the specific user will be sent out today.
Logs report that everything was successfull.
So now my questions are:
1. When the adhoc task is run, it should execute all rows in the mdl_forum_queue table? If yes, this is not happening for me
2. Is there a limit on how many queue tasks will be ran? If yes, can I change the value? Note that there are 1496 records for user 177 in mdl_forum_queue table
3. If I manually delete records from mdl_forum_queue tabl, will I cause any issues?
Sorry for the long post, am trying to be as specific as possible