Skip to content

Conversation

@prateekmedia
Copy link
Member

Summary

  • Fix manual video stream creation being blocked when ML is enabled but not running
  • Ensure already-queued manual streams can be retriggered if they were previously stalled

Problem

When ML is enabled, the ComputeController blocks all stream requests when _waitingToRunML is true, even for manual user-initiated streams. Additionally, if files were queued in previous sessions but never processed, clicking "Create Stream" again would just show "already in queue" without actually triggering processing.

Solution

  1. Bypass ML waiting for manual streams: Add bypassMLWaiting parameter to allow manual streams to proceed regardless of ML waiting state
  2. Force processing of stalled queues: Add forceProcess parameter to queueFiles() to trigger processing of already-queued files that may have been stalled

Test plan

  • Enable ML in app settings
  • Ensure ML is not actively running but is "waiting"
  • Try to create a manual video stream - should now work
  • Queue a video stream, restart app, try to create stream again - should trigger processing

When ML is enabled but not running, the compute controller blocks
all stream requests due to _waitingToRunML flag. This prevents
users from manually creating video streams even though ML isn't
actively using resources.

Add bypassMLWaiting parameter to allow manual stream creation
to proceed regardless of ML waiting state, improving UX.
When users click "Create Stream" on files already in queue from
previous sessions, ensure processing actually starts even if the
file was previously stalled due to ML blocking.

Add forceProcess parameter to queueFiles() to bypass the existing
queue check and trigger processing of stalled manual queue items.
@prateekmedia prateekmedia requested a review from ua741 August 29, 2025 12:30
@prateekmedia prateekmedia merged commit 68422b1 into main Aug 29, 2025
1 of 2 checks passed
@prateekmedia prateekmedia deleted the fix/manual-stream-ml-enabled branch August 29, 2025 13:23
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.

3 participants