Open annalbrecht opened 1 month ago
@annalbrecht This ticket does not require that we send a separate email to ECMPS Support on queueing failure. However, ticket #6392 (for submission failures) require that we send a separate email to ECMPS Support.
@yonatan-dp
The issue of inconsistent evaluation emails points to evaluation processing failures (exceptions) that are hidden from the user.
To address the issue of missing or inconsistent evaluation emails, I implemented a few changes to ensure that every evaluation— especially if unsuccessful—results in an email notification to the user and ECMPS support. Below is a summary of the modifications:
camd-services
, ensuring that any issues occurring during the initial queueing of evaluation sets trigger a notification email. camd-services
is now available to handle errors that occur during evaluation processing. This endpoint can be invoked by the quartz-scheduler
(which manages the evaluation process) to send error emails that occur during evaluations.
POST {{baseCamdServicesUrl}}/camd-services/email/eval-error
{ "evaluationSetId": "b2b5f26a-5398-42d7-81b9-b61e57eb4761", "evaluationId": 456, "rootError": "Error details for testing purposes.", "queueingStages": [ { "action": "QUEUE_STARTED", "dateTime": "2024-10-31T10:00:00" }, { "action": "QUEUE_COMPLETED", "dateTime": "2024-10-31T10:05:00" } ] }
Sample Email to User
Sample Email to ECMPS Support
Based on info in https://github.com/US-EPA-CAMD/easey-ui/issues/6205.
During initial queueing:
Acceptance Tests When queueing fails:
When one file in the submission set fails to queue, the whole submission set is marked as failed and an email notification is sent to the user (as described above).