-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme to add scheduling section
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# Bunya Jobs | ||
|
||
**⚠️This repo is still under active development.** | ||
**⚠️This repo is still under ACTIVE development.** | ||
|
||
![under construction](construction.png) | ||
## Scheduling | ||
|
||
- For the moment, you can fork it and use crontab to run `monitor.py` | ||
- For the moment, you can fork it, or just clone it and use crontab to run `monitor.py` | ||
- Follow the `dot_env_template` to create your own `.env` file | ||
- then do `crontab -e` | ||
- and add `* * * * * your-python-path complete-file-path-to-monitor.py` to your cronjob | ||
- for example, `* * * * * ~/anaconda3/bin/python /scratch/user/your-username/bunya_jobs/monitor.py` | ||
- then your jobs will be monitored at an 1 minute interval | ||
- if you wish to have a different interval, check this [page](https://www.atatus.com/tools/cron). | ||
|
||
## Slack Integration | ||
|
||
- follow [slack webhook tutorial](https://api.slack.com/messaging/webhooks) to create a slack app for your slack workspace and add it to appropriate channels | ||
- remember to replace the `.env` webhook to your own |
Binary file not shown.