Draft
Conversation
Co-authored-by: QMasterMoo <3915399+QMasterMoo@users.noreply.github.com>
Co-authored-by: QMasterMoo <3915399+QMasterMoo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] create a youtube live workflow
Add YouTube live stream monitoring workflow
Jun 19, 2025
QMasterMoo
reviewed
Jun 19, 2025
| youtube = build("youtube", "v3", developerKey=api_key) | ||
|
|
||
| # Calculate time threshold | ||
| now = datetime.now(timezone.utc) |
Member
There was a problem hiding this comment.
this should use the scheduled time on temporal. otherwise it would be possible for delays
Contributor
Author
There was a problem hiding this comment.
Fixed in commit a51da38. The activity now uses workflow.info().current_build_started_at as the scheduled time instead of datetime.now(). This ensures consistent monitoring windows even if there are execution delays, preventing missed streams or incorrect time calculations.
…nitoring windows Co-authored-by: QMasterMoo <3915399+QMasterMoo@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a temporal workflow that monitors YouTube channels for new live streams and sends Slack notifications when channels go live.
Features
Implementation Details
New Components
YouTubeLiveWorkflow- Main temporal workflow that orchestrates the monitoringcheck_youtube_live_streams_activity- Activity that queries YouTube APIsend_slack_notification_activity- Activity that sends Slack notificationsIntegration
SlackMessageQODWorkflowConfiguration
Requires
YOUTUBE_API_KEYenvironment variable with YouTube Data API v3 credentials.Default monitored channels (configurable):
Example Notification
Testing
Added comprehensive unit tests covering:
Documentation
docs/youtube-live-monitor.mdFixes #102.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.