# Web hook/POST to external URL when job begins and completes running

**URL:** <https://help.galaxyproject.org/t/web-hook-post-to-external-url-when-job-begins-and-completes-running/4017>\
**Category:** Uncategorized\
**Tags:** devops-administration, job-config, galaxy-local, cluster\
**Created:** [June 30, 2020, 10:23pm UTC](https://help.galaxyproject.org/t/web-hook-post-to-external-url-when-job-begins-and-completes-running/4017 "2020-06-30T22:23:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![phagepower](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@phagepower](https://help.galaxyproject.org/u/phagepower)\
**Post date:** [June 30, 2020, 10:23pm UTC](https://help.galaxyproject.org/t/web-hook-post-to-external-url-when-job-begins-and-completes-running/4017/1 "2020-06-30T22:23:46Z")

</div>

Hello,

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!

---

_[View the full topic](https://help.galaxyproject.org/t/web-hook-post-to-external-url-when-job-begins-and-completes-running/4017)._
