Moodle

events_trigger error reporting

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Messages
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

While replacing the email_to_user I had a problem:
I need to know if an event call failed or not (cron status report, etc) but events_trigger only gives me the number of failed events.

How can I make events_triger report if it failed for the called event?

Activity

Hide
Martin Dougiamas added a comment -

You don't really know about cron events because they may happen hours later.

Just check that the returned number of failed 'instant' events is zero, that should be enough.

Show
Martin Dougiamas added a comment - You don't really know about cron events because they may happen hours later. Just check that the returned number of failed 'instant' events is zero, that should be enough.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: