Skip to content

Improve send summary email job error handling

Related tasks

Context

When sending simulation summary emails, the organization email is added to the set of email recipients. The organization is obtained from the simulation deployment owner information.

If a user requests a simulation and does not specify the target owner, the owner is set to the user itself.

The current email sending job tries to get the organization related to the user that requested the simulation. If the organization does not exist because the user is not part of an organization or because the simulation deployment owner was set to a user and therefore no organization exists for it, the job will fail with an error.

Change

The email sending logic has been updated to fail silently and continue if an user organization is not found when preparing the set of email recipients.

This error handling update had been partially applied in the past (!439 (merged)) by updating the SendSimulationSummaryEmail function. This function is only used for multisims however, and the job update used for single sims was not modified.

Other information

Additional documentation

Edited by Alejo Carballude

Merge request reports