archivebox.workers.supervisord_util
Module Contents
Functions
Get the path to the supervisord socket file, symlinking to a shorter path if needed due to unix path length limits |
|
Yield each line from a file as they are written.
|
|
Create a supervisord worker config file for a given daemon |
|
loop continuously and monitor worker’s health |
|
Data
API
- archivebox.workers.supervisord_util.get_sock_file()[source]
Get the path to the supervisord socket file, symlinking to a shorter path if needed due to unix path length limits
- archivebox.workers.supervisord_util.follow(file, sleep_sec=0.1) Iterator[str] [source]
Yield each line from a file as they are written.
sleep_sec
is the time to sleep after empty reads.
- archivebox.workers.supervisord_util.create_worker_config(daemon)[source]
Create a supervisord worker config file for a given daemon
- archivebox.workers.supervisord_util.watch_worker(supervisor, daemon_name, interval=5)[source]
loop continuously and monitor worker’s health