Commit 2dfb9cd5 authored by Bram Daams's avatar Bram Daams
Browse files

job execution section

parent a536f32f
Pipeline #36979 passed with stage
in 1 minute and 19 seconds
......@@ -48,6 +48,13 @@ The following data is used to configure a corresponding Healthchecks check:
- `$USER`: the current user running the cron command is used to create a tag named `user=$USER`
- the jobs schedule and the hosts timezone is used to set the checks schedule
### Job execution
`sch` takes over the role of the shell. Jobs not containing the `JOB_ID` environment variable are directly executed with `os.system`.
For `sch` managed jobs:
- `sch` will start with pinging `/start` endpoint of the check
- os.sytem executes the command
- depending on the exit code, it will ping for success or ping the `/fail` end point on failure
## Development environment
### Setup environment
``` console
......@@ -81,7 +88,5 @@ $ pip install flake8
$ flake8 *py
```
### References
* python-crontab <https://pypi.org/project/python-crontab/>
\ No newline at end of file
* python-crontab <https://pypi.org/project/python-crontab/>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment