Skip to content

refactor(engine): manage child process lifecycles#2160

Open
jrusso1020 wants to merge 1 commit into
07-10-refactor_engine_add_browser_leasesfrom
07-10-refactor_engine_manage_child_processes
Open

refactor(engine): manage child process lifecycles#2160
jrusso1020 wants to merge 1 commit into
07-10-refactor_engine_add_browser_leasesfrom
07-10-refactor_engine_manage_child_processes

Conversation

@jrusso1020

@jrusso1020 jrusso1020 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

What

Give FFmpeg and related subprocesses one managed lifecycle.

Why

Timeout, cancellation, stderr bounds, and SIGTERM/SIGKILL behavior were duplicated and inconsistent across encoding phases.

How

Add ManagedChildProcess with composed signals, grace escalation, guaranteed reap, and typed termination reasons, then migrate encode/probe/extract paths.

Test plan

  • managed process, encoder, ffprobe, extraction, and assembly tests
  • Stack-wide lint, format, build, typecheck, and relevant integration gates

jrusso1020 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch from 9295542 to 1a9af9b Compare July 13, 2026 18:35
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from 246c941 to fa435fb Compare July 13, 2026 20:27
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch 2 times, most recently from 131f444 to f906eee Compare July 13, 2026 20:33
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from fa435fb to e9734f0 Compare July 13, 2026 20:33
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch from f906eee to bfe60e6 Compare July 13, 2026 22:09
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from 1dd7199 to 82cdfe7 Compare July 13, 2026 22:18
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch 2 times, most recently from 5e82fec to fc61671 Compare July 13, 2026 23:08
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from 82cdfe7 to 5f2aacb Compare July 13, 2026 23:08
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch 2 times, most recently from b683ddb to 4e86382 Compare July 14, 2026 03:20
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch 2 times, most recently from 78ee37c to 263a1a1 Compare July 14, 2026 17:03
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch 2 times, most recently from 1a7d917 to 7dd4686 Compare July 14, 2026 17:11
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from 406ba14 to a53a699 Compare July 14, 2026 17:35
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch from 7dd4686 to 8733675 Compare July 14, 2026 17:35
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from a53a699 to ae6769c Compare July 14, 2026 17:57
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch from 8733675 to 223e861 Compare July 14, 2026 17:57
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from ae6769c to 3335e20 Compare July 14, 2026 18:06
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch 4 times, most recently from eda0bb1 to c0bd5b9 Compare July 14, 2026 19:47
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from 248ec97 to d35fc32 Compare July 14, 2026 19:55
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_manage_child_processes branch 2 times, most recently from 571341a to 606e05b Compare July 14, 2026 23:29
@jrusso1020 jrusso1020 force-pushed the 07-10-refactor_engine_add_browser_leases branch from d35fc32 to 4f12432 Compare July 14, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant