Skip to main content

No project description provided

Project description

superinactive

Supervisor plugin to monitor for file activity and restart program on inactivity

Imagine you have an infinite long running ffmpeg job, which converts a video stream on the fly. After a certain time the file output does not change any more but supervisor does not detect the ffmpeg job as crashed.

This plugin may solve such situations.

Installation:

pip3 install superinactive

Configuration:

[program:ffmpeg]
command=ffmpeg ......  -o /home/volker/out.stream

[program:superinactive]
command=superinactive /home/volker/out.stream 10 ffmpeg

Command line options:

usage: superinactive.py [-h] [-g GROUP] [-a] path timeout [prog [prog ...]]

Supervisor plugin to monitor a file activity and restart programs on
inactivity

optional arguments:
  -h, --help            show this help message and exit

file monitoring:
  path                  file path to monitor for inactivity
  timeout               timeout (seconds) for inactivity

programs:
  prog                  supervisor program name to restart
  -g GROUP, --group GROUP
                        supervisor group name to restart
  -a, --any             restart any child of this supervisor

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

superinactive-0.1.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

superinactive-0.1.0-py3-none-any.whl (5.8 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