Simon-Harris-IBM / ChallengeWorkflowTemplatesSimon

0 stars 1 forks source link

Tidy up emails sent to participants #7

Open Simon-Harris-IBM opened 4 years ago

Simon-Harris-IBM commented 4 years ago

Too many emails are sent to participants -- currently 5 for a successful submission. We should whittle these down.

thomasyu888 commented 4 years ago

Set this in your .env

SUBMITTER_NOTIFICATION_MASK - controls for which events notifications are sent to the submitter. The integer value is a union of these masks:

 1: send message when job has started;
 2: send message when job has completed;
 4: send message when job has failed;
 8: send message when job has been stopped by user;
 16: send message when job has timed out;

Also people won't be notified of Processing started on main q #. You get emails because you are the admin user submitting.

Simon-Harris-IBM commented 4 years ago

Hi @thomasyu888 - can this be customised on a per queue basis ? For example, i might want to send the email for starting on the fanout q, but not the backend q ?

thomasyu888 commented 4 years ago

This is specified in the orchestrator .env so it definitely can.