The problem persists, I compared the LOCALE of two identical servers and collation
database and LOCALE of the database server.
They are all the same. but whoever upgrades from moodle keeps sending random duplicate emails.
This is the LOCALE
LANG=es_CL.UTF-8
LC_CTYPE="es_CL.UTF-8"
LC_NUMERIC="es_CL.UTF-8"
LC_TIME="es_CL.UTF-8"
LC_COLLATE="es_CL.UTF-8"
LC_MONETARY="es_CL.UTF-8"
LC_MESSAGES="es_CL.UTF-8"
LC_PAPER="es_CL.UTF-8"
LC_NAME="es_CL.UTF-8"
LC_ADDRESS="es_CL.UTF-8"
LC_TELEPHONE="es_CL.UTF-8"
LC_MEASUREMENT="es_CL.UTF-8"
LC_IDENTIFICATION="es_CL.UTF-8"
LC_ALL=
I think I have a hypothesis. when the process of sending emails is delayed and it runs simultaneously with the next minute, it makes a new sending.
looking at the back of the 2 cron in both I send the same forums.
CRON 1:
Execute scheduled task: Correos del foro y trabajos de mantenimiento (mod_forum\task\cron_task)
... started 19:36:01. Current memory use 36.3MB.
Removing old digest records from 7 days ago.
Removed all old digest records.
Fetching unmailed posts.
Done
Processing post information
Processed 36 posts
Filling caches
Filling course cache
Done
Filling forum cache
Done
Filling discussion cache
Done
Filling user subscription cache
Done
Filling digest cache
Done
All caches filled
Queueing user tasks.
Processing 4 users
Queued 0 digests and 36 messages for 39553
Queued 0 digests and 36 messages for 42
Queued 0 digests and 36 messages for 3637
Queued 0 digests and 36 messages for 13961
Queued 0 digests, and 4 individual tasks for 144 post mails. Unique users: 4 (0 ignored)
All tasks queued.
... used 21 dbqueries
... used 0.040299892425537 seconds
Scheduled task complete: Correos del foro y trabajos de mantenimiento (mod_forum\task\cron_task)
Execute adhoc task: mod_forum\task\send_user_notifications
... started 19:36:01. Current memory use 37.7MB.
Sending messages to 238600464 (39553)
Post 23750 sent
Post 23751 sent
...
CRON 2:
Scheduled task complete: Background processing for scheduled allocation (workshopallocation_scheduled\task\cron_task)
Execute adhoc task: mod_forum\task\send_user_notifications
... started 19:36:11. Current memory use 33.2MB.
Sending messages to augusto (42)
Post 23750 sent
Post 23751 sent
.....