Skip to content

worker shutdown option#61

Merged
bghira merged 2 commits intomainfrom
feature/worker-shutdown-option
Sep 12, 2025
Merged

worker shutdown option#61
bghira merged 2 commits intomainfrom
feature/worker-shutdown-option

Conversation

@bghira
Copy link
Copy Markdown
Owner

@bghira bghira commented Sep 12, 2025

adds --when_finished parameter for caption worker;

  • stay_connected - remain online, waiting for new configs (default)
  • shutdown - exit when no work is available
  • post_exec_hook - run a specific command provided via --post_exec_hook as a path to an executable or script

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 87.34177% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/caption_flow/workers/caption.py 88.13% 7 Missing ⚠️
src/caption_flow/cli.py 83.33% 2 Missing ⚠️
src/caption_flow/models.py 87.50% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/caption_flow/models.py 95.53% <87.50%> (-0.38%) ⬇️
src/caption_flow/cli.py 46.75% <83.33%> (+1.13%) ⬆️
src/caption_flow/workers/caption.py 61.91% <88.13%> (+4.43%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bghira bghira merged commit 3ff324a into main Sep 12, 2025
4 checks passed
@bghira bghira deleted the feature/worker-shutdown-option branch September 12, 2025 16:58
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