Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81367

Adhoc task mod_forum\task\send_user_notifications has misleading messaging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1.9
    • Tasks
    • None
    • MOODLE_401_STABLE

      At debugging we were misled by our own accounting policy where we use only login via Shibboleth and both username and email field have the same structure, but might not be identical (e.g. username = martinb@example.org - not an email alias!, email = martin.bozic@example.org).

      Debugging log for the mentioned task looks like this:

      Execute adhoc task: mod_forum\task\send_user_notifications
      Adhoc task id: 17085718
      Adhoc task custom data: ["725157"]
      ... started 09:59:57. Current memory use 21.6 MB.
      Debugging increased temporarily due to faildelay of 86400
      Sending messages to martinb@example.org (1234)
        Failed to send post 6789
      Sent 0 messages with 1 failures
      ... used 28 dbqueries
      ... used 0.072945117950439 seconds
      Adhoc task failed: mod_forum\task\send_user_notifications,error/Error sending posts.
      Backtrace:
      * line 367 of /lib/cronlib.php: call to mod_forum\task\send_user_notifications->execute()
      * line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
      * line 131 of /admin/cli/adhoc_task.php: call to cron_run_adhoc_tasks() 

      Even if one doesn't use such username policy I think it would shorten the debugging times if the task log would print email field instead of username.

            Unassigned Unassigned
            martin.bozic Martin Božzic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.