I was looking into the web hooks available in Galaxy and from what I can tell, in terms of job scheduling, the only hook available is once the job is submitted by the user. There doesn’t seem to be a hook which can be triggered when a job begins running on a cluster (using Slurm for scheduling on our HPC), or when it finishes (either success or fail).
Would it be possible for me to add something like this to my Galaxy install, or perhaps there’s an easier way to do so. Ideally this would be for all tools, so it’s not quite feasible to edit all the tool XMLs and add custom execution code.
Essentially what I would want is to POST to a URL (external REST API) with a certain message (BEGIN or END FAIL or END SUCCESS, and the submitting user’s username) when jobs begin or finish.
Any suggestions are appreciated!