Today the watcher begins encoding immediately on startup if input/ already has files. Change the default so the daemon starts 'held': it scans and shows the queue but does not begin encoding until the user clicks Start in the UI. An env var (e.g. AV1DAE_AUTOSTART=1, truthy) restores the current start-ASAP behavior.
NOTE: this flips the current default behavior (auto-start -> held).
Design:
A global processing gate (running vs held) on the watcher/control. While held, scanAndProcess still tracks the queue (so /status shows what is waiting) but does not hand files to processFn.
UI: Start / Hold control on the dashboard; status shows 'Held - N files waiting' vs running.
API: POST /api/start and /api/hold (or a single toggle); /status exposes the gate state.
Default held; env var AV1DAE_AUTOSTART truthy -> start running immediately. (Env var per request; a -autostart flag or a config/settings field are equivalent alternatives.)
Distinct from #10 (pause an in-flight ffmpeg via SIGSTOP) - this gates whether the queue is processed at all. They compose: 'running' with the current encode paused, or 'held' with nothing running.
Behavior decision: if an encode is in progress when the user clicks Hold, recommend hold = 'do not start the next file' and let the current one finish (pausing the active encode is #10's job).
Mutation -> shares the auth consideration in #2 (deferred on the isolated network).
Today the watcher begins encoding immediately on startup if input/ already has files. Change the default so the daemon starts 'held': it scans and shows the queue but does not begin encoding until the user clicks Start in the UI. An env var (e.g. AV1DAE_AUTOSTART=1, truthy) restores the current start-ASAP behavior.
NOTE: this flips the current default behavior (auto-start -> held).
Design:
- A global processing gate (running vs held) on the watcher/control. While held, scanAndProcess still tracks the queue (so /status shows what is waiting) but does not hand files to processFn.
- UI: Start / Hold control on the dashboard; status shows 'Held - N files waiting' vs running.
- API: POST /api/start and /api/hold (or a single toggle); /status exposes the gate state.
- Default held; env var AV1DAE_AUTOSTART truthy -> start running immediately. (Env var per request; a -autostart flag or a config/settings field are equivalent alternatives.)
Distinct from #10 (pause an in-flight ffmpeg via SIGSTOP) - this gates whether the queue is processed at all. They compose: 'running' with the current encode paused, or 'held' with nothing running.
Behavior decision: if an encode is in progress when the user clicks Hold, recommend hold = 'do not start the next file' and let the current one finish (pausing the active encode is #10's job).
Mutation -> shares the auth consideration in #2 (deferred on the isolated network).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Today the watcher begins encoding immediately on startup if input/ already has files. Change the default so the daemon starts 'held': it scans and shows the queue but does not begin encoding until the user clicks Start in the UI. An env var (e.g. AV1DAE_AUTOSTART=1, truthy) restores the current start-ASAP behavior.
NOTE: this flips the current default behavior (auto-start -> held).
Design:
Distinct from #10 (pause an in-flight ffmpeg via SIGSTOP) - this gates whether the queue is processed at all. They compose: 'running' with the current encode paused, or 'held' with nothing running.
Behavior decision: if an encode is in progress when the user clicks Hold, recommend hold = 'do not start the next file' and let the current one finish (pausing the active encode is #10's job).
Mutation -> shares the auth consideration in #2 (deferred on the isolated network).