Skip to main content

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 Distribution

nurse_run-0.1.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

nurse_run-0.1.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page