Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jun 11, 2025

Added clarifying documentation to my_secrets_example.py to address issues with identical WORKFLOW_NAME values across different streaming devices.

Problem

The AWS Lambda function uses WORKFLOW_NAME to identify and manage YouTube broadcasts. When multiple devices use identical workflow names, the end_active_broadcasts_for_device() function can terminate the wrong streams since it matches broadcasts by workflow name rather than a unique identifier that includes the camera ID.

This was observed when setting up multiple streams with the same workflow name like [undecided]-[undecided]-SDLT, where ending one stream would terminate others with the same name.

Solution

Added a comprehensive comment block above the WORKFLOW_NAME variable explaining:

  • That WORKFLOW_NAME must be unique across all devices and streams
  • Why this matters (AWS Lambda function uses the name to identify/manage broadcasts)
  • The consequences of identical names (stream conflicts and premature termination)
  • Recommendation to keep names short due to potential Lambda processing limitations

Changes

  • Added 5 lines of documentation to src/ac_training_lab/picam/my_secrets_example.py
  • No functional code changes
  • Users will see this guidance when copying the example file to create their my_secrets.py

Fixes #290.

Copilot AI changed the title [WIP] WORKFLOW_NAME for AWS Lambda function for streaming can't be identical Add WORKFLOW_NAME uniqueness documentation to picam secrets example Jun 11, 2025
Copilot AI requested a review from sgbaird June 11, 2025 03:50
Copilot finished work on behalf of sgbaird June 11, 2025 03:50
@sgbaird sgbaird marked this pull request as ready for review June 12, 2025 04:11
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.

WORKFLOW_NAME for AWS Lambda function for streaming can't be identical

2 participants