Moodle 3.8.3: Forum messages sending multiple times or not at all

Moodle 3.8.3: Forum messages sending multiple times or not at all

by Senol Guel -
Number of replies: 2

Version of Moodle 3.8.3+

We got the problem that our Moodle sending either multiple messages or not at all sind 2 days.

But sending of messages to a user and testmail worked.

The problem concerns just forum messages.

I deleted all caches on server.

I started the task manually but it runsd very slowly.
One task (sending of forum message to 1 user) takes a long time. 60 seconds.

Here the console output. The first eight works quickly. Nut look from the ninth:

(15:24:25) [cli] php7.3.6-cli adhoc_task.php --execute='\mod_forum\task\send_user_notifications'

Server Time: Fri, 12 Feb 2021 14:24:37 +0000


Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:38. Current memory use 10.6MB.

Sending messages to n.schuetz (2106)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 30 dbqueries

... used 0.50902891159058 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:38. Current memory use 22.7MB.

Sending messages to s.reinhold (3036)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 25 dbqueries

... used 0.17209601402283 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:38. Current memory use 22.9MB.

Sending messages to s.akkoyun (2088)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.2279999256134 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:39. Current memory use 22.9MB.

Sending messages to s.schulze (2134)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 25 dbqueries

... used 0.27448701858521 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:39. Current memory use 22.9MB.

Sending messages to kuts (1033)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.18858599662781 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:39. Current memory use 23MB.

Sending messages to t.nimz (2127)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.20882105827332 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:39. Current memory use 23MB.

Sending messages to t.kalscheuer (2119)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.18220901489258 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:40. Current memory use 23MB.

Sending messages to y.rosellen (2104)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 3.9113020896912 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:24:44. Current memory use 23MB.

Sending messages to h.yayla (2110)

  Post 2920 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.714210033417 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:25:43. Current memory use 23MB.

Sending messages to a.erkens (2068)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 29 dbqueries

... used 60.204888105392 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:26:44. Current memory use 23.5MB.

Sending messages to a.bahn (2064)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.754853963852 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:27:44. Current memory use 23.6MB.

Sending messages to c.deets (2067)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.30689287185669 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:27:44. Current memory use 23.6MB.

Sending messages to d.staniczek (2141)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 25 dbqueries

... used 0.22761011123657 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:27:44. Current memory use 23.6MB.

Sending messages to e.kossmann (2074)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.218367815018 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:28:44. Current memory use 23.6MB.

Sending messages to f.fix (2069)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.32314109802246 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:28:44. Current memory use 23.6MB.

Sending messages to r.halima (2065)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.16300487518311 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:28:44. Current memory use 23.6MB.

Sending messages to n.hoelting (2071)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.304620027542 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:29:43. Current memory use 23.6MB.

Sending messages to j.tessmann (2080)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 60.387672901154 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:30:44. Current memory use 23.6MB.

Sending messages to d.kluetsch (2073)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 25 dbqueries

... used 59.66148519516 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:31:44. Current memory use 23.6MB.

Sending messages to o.lembke (2077)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.884993076324 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:32:44. Current memory use 23.6MB.

Sending messages to n.ehses (2017)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 25 dbqueries

... used 59.789139986038 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:33:43. Current memory use 23.6MB.

Sending messages to j.pasdzior (2078)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 0.29805612564087 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:33:44. Current memory use 23.6MB.

Sending messages to p.wagner (2081)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.868791103363 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:34:44. Current memory use 23.6MB.

Sending messages to r.amirgol (2063)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.878745079041 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:35:44. Current memory use 23.6MB.

Sending messages to c.sayili (2079)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 59.859508037567 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:36:44. Current memory use 23.7MB.

Sending messages to s.braun (2018)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 25 dbqueries

... used 59.917877912521 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:37:44. Current memory use 23.7MB.

Sending messages to t.fritsche (2019)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 25 dbqueries

... used 59.887099981308 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:38:44. Current memory use 23.7MB.

Sending messages to t.gretschel (2070)

  Post 2907 sent

Sent 1 messages with 0 failures

... used 24 dbqueries

... used 60.221621990204 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:39:44. Current memory use 23.7MB.

Sending messages to d.desousamorgado (2426)

  Post 2910 sent

Sent 1 messages with 0 failures

... used 29 dbqueries

... used 59.760663986206 seconds

Adhoc task complete: mod_forum\task\send_user_notifications

Execute adhoc task: mod_forum\task\send_user_notifications

... started 14:40:44. Current memory use 24.5MB.

Sending messages to j.ernst (2427)


Average of ratings: -
In reply to Senol Guel

Re: Moodle 3.8.3: Forum messages sending multiple times or not at all

by Senol Guel -
Additional information.
The task tries to send although the forum post is deleted.


Execute adhoc task: mod_forum\task\send_user_notifications
... started 14:46:44. Current memory use 24.5MB.
Sending messages to fuchs (1825)
Sent 0 messages with 0 failures
... used 4 dbqueries
... used 0.0028719902038574 seconds
Adhoc task complete: mod_forum\task\send_user_notifications
In reply to Senol Guel

Re: Moodle 3.8.3: Forum messages sending multiple times or not at all

by Senol Guel -
There are multiple task of the same post in db-table "mdl_task_adhoc"
mdl_task_adhoc table