chore: document SIGINT cancellation in §4
After bug #9's context plumbing, a signal interrupts the current encode immediately rather than waiting for the poll cycle. Document the new shutdown semantics: children killed, work dir cleaned via the deferred RemoveAll, source routed to failed/.
This commit is contained in:
@@ -100,7 +100,7 @@ Flags:
|
|||||||
- `-d` — delete the source `.mkv` after a successful encode instead of moving it to `originals/`.
|
- `-d` — delete the source `.mkv` after a successful encode instead of moving it to `originals/`.
|
||||||
- `-c PATH` — path to config file.
|
- `-c PATH` — path to config file.
|
||||||
|
|
||||||
Stop with `Ctrl+C` (SIGINT) or `SIGTERM`. A signal triggers a clean shutdown after the current poll cycle.
|
Stop with `Ctrl+C` (SIGINT) or `SIGTERM`. The signal cancels any in-flight encode immediately — the ffmpeg / ffprobe / opusenc children are killed, the per-job work directory is removed by its deferred cleanup, and the source `.mkv` is routed to `paths.failed` so the next run sees a clean `paths.input`.
|
||||||
|
|
||||||
The program runs as a foreground daemon. It scans the input directory on startup and every 15 seconds thereafter.
|
The program runs as a foreground daemon. It scans the input directory on startup and every 15 seconds thereafter.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user