Skip to content

Dump interim transcoder stats on SIGINFO - #273

Open
amarkdotdev wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
amarkdotdev:feature/siginfo-progress
Open

Dump interim transcoder stats on SIGINFO#273
amarkdotdev wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
amarkdotdev:feature/siginfo-progress

Conversation

@amarkdotdev

Copy link
Copy Markdown

You could already get a summary by interrupting the process, but that stops the run. This matches dd: kill -s INFO (macOS/BSD) or SIGUSR1 (Linux) prints the current source/processed/transcoded counts to stderr and keeps going.

SIGINT still prints a summary and exits.

Fixes #111

Like dd, SIGINFO (and SIGUSR1 on Linux) dumps a snapshot of the current batch to stderr so operators can check progress without debug logging.

Fixes GoogleCloudPlatform#111

Signed-off-by: Aaron <amark@g.jct.ac.il>
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.

Print interim statistics to STDERR on demand

1 participant