The workflow is:
- retrieve emails (this marks them as read)
- move them to "Checked" folder
- compile email data into CSV file
- attempt to send the CSV file as an attachment to a new email
- store the CSV file as an artifact of the workflow run
If the email sending step fails, the workflow will finish early, and the CSV file artifact will not be stored. Storing this artifact regardless of success/failure would allow us to recover by downloading the artifact and sending it manually. As it currently stands, re-compiling the lost data is difficult because all of the unsuccessfully-processed emails have already been moved.
The workflow is:
If the email sending step fails, the workflow will finish early, and the CSV file artifact will not be stored. Storing this artifact regardless of success/failure would allow us to recover by downloading the artifact and sending it manually. As it currently stands, re-compiling the lost data is difficult because all of the unsuccessfully-processed emails have already been moved.