Skip to main content

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

Metadata

Release files for superinactive 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for superinactive 0.1.0
File Size Uploaded
superinactive-0.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for superinactive 0.1.0
File Interpreter ABI Platform
superinactive-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / superinactive-0.1.0.tar.gz

Download URL superinactive-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ebde97ecb2ee0d2e221e5f7e2b7083b099826b0ff7de93bbf57daf306d61271f
BLAKE2b-256 checksum
How to use checksums
198213bd21e480acd19db4401bcef50151fc83e9642b5e97cc5c388b55d532e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.3 Linux/5.8.0-0.bpo.2-amd64

Release files / superinactive-0.1.0-py3-none-any.whl

Download URL superinactive-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f820279cf9c0f5d6229b500d57acc45ba7d4763e7a7fceb4a645a9b292736800
BLAKE2b-256 checksum
How to use checksums
60e773a9807f18b4d77bd6cd7c11f66710402d56a9fb907f88ec4a631b454073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.3 Linux/5.8.0-0.bpo.2-amd64

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page