This package starts and looks after your program, based on the configuration.
Project description
Nurse run
This package starts and looks after your program, retry when your program fails, and perform the specified action after the number of retries (usually sending an alert notification).
This package works with the python-dotenv package to configure settings via environment variables or .env.
Essentially, this package solves three common types of problems with program running:
- retry
- clean
- alarm
Definition of environment variables:
Name | Description |
---|---|
NURSE_RUN_RETRY_TIMES | max retry times |
NURSE_RUN_RETRY_DELAY | retry delay (seconds) |
NURSE_RUN_CLEANER | Cleanup function (format 'module:func') |
NURSE_RUN_ALERTER | Alarm function (format 'module:func') |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file nurse_run-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: nurse_run-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6150abf270f0b6b846c5be9e43dc7299c31e1b19def284a6573fb313ae4c8a19 |
|
MD5 | 6ac8df4f1581cd0b1315e154dd6669ee |
|
BLAKE2b-256 | 37003dbc7cbf95917f566f38214a6eb5dcd31923b923096c9741575df3af290e |