Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benhg/command-posthook-slack-message
Run an HPC job with a post-hook that makes a slack message on job exit
https://github.com/benhg/command-posthook-slack-message
Last synced: about 1 month ago
JSON representation
Run an HPC job with a post-hook that makes a slack message on job exit
- Host: GitHub
- URL: https://github.com/benhg/command-posthook-slack-message
- Owner: benhg
- Created: 2020-04-28T01:05:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-01T22:20:01.000Z (about 4 years ago)
- Last Synced: 2024-11-08T21:42:30.360Z (3 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# command-posthook-slack-message
Run an HPC job with a post-hook that makes a slack message on job exit## Setup
To set up -
1. Genrate a slack Incoming WebHook link
2. Clone this repo and put `execute_notify.py` somewhere executable/on path.
3. Edit `execute_notify.py` to add global slack link.
4. Optionally, create separate webhook links for separate user
5. Run `execute_notify.py` with `--config` option to save your personal link.## Usage
To use:
```
usage: execute_notify [-h] [--name NAME] [--script SCRIPT] [--blt BLT]
[--qopts QOPTS] [--config] [--globality]
commandpositional arguments:
command Command to run and be notified aboutoptional arguments:
-h, --help show this help message and exit
--name NAME, -n NAME Name to label command with
--script SCRIPT, -s SCRIPT
Save executible script instead of running
interactively. Requires filename for script.
--blt BLT, -b BLT Submit immediately to BLT cluster. Requires job name
--qopts QOPTS, -q QOPTS
SGE Queue to submit to. Will be passed to qsub.
Example: gpu.q
--config, -c Configure this app. Will start an interactive
configuration process
--globality, -g Ignore any local configs and send to global channel
```