Closed jsbrittain closed 4 months ago
I've updated the module to permit glob-matched email attachments, and to support monitoring of successive email 'triggers' to permit multiple sends (these are useful when monitoring long jobs); there is a test config file with short timeouts that can be run as snakemake --cores 4 --configfile config/config_test.yaml
.
Squashed the last two commits to remove email from the commit history.
I know this has already been squashed and merged but I have added two relatively minor comments and, also, try as I might I can't get it to work in GRAPEVNE
@rowannicholls Thanks for taking a look at this - I think you've found an issue that was initially overlooked. Although everything seemed to work on my test-bed, trying it on a clean install did raise an unexpected issue when testing in GRAPEVNE (the email
standard library module was not being bundled with the packaged python/snakemake environment). I will add this to the new PR.
In the meantime (and just for clarity) to test the module in grapevne:
LinkLocalFile
module to provide the credentials file to the Email module.Here's a screenshot of my setup:
Module can be used to send emails at various stages of a workflow. Credentials are provided by local file, and email transmission is triggered by the presence/arrival of a trigger-file which can be user configured.
To test the module:
workflow/Snakefile
docstring); note that this replicates a separate module which would like to a local file during normal execution.snakemake --use-cores 1 --use-conda
To test the module in grapevne:
workflows
folder in this repo (use the local copy, since the module had not yet been merged in)