-
Notifications
You must be signed in to change notification settings - Fork 33
Stream pull startup improvements #2084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
await triggerCatalystPullStart(stream, getHLSPlaybackUrl(ingest, stream)); | ||
if (!stream.isActive) { | ||
const ingest = await getIngestBase(req); | ||
// TODO run in background |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomshutt @victorges not sure if it's worth it but maybe we should run the manifest call in the background in case the stream becomes active whilst we're still waiting for a response there..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Can we also wait for other states besides Active? I think that as long as we're confident it's in a state that'll become active (e.g Pending) then that's probably okay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah good plan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no, just seen that the 'pending' label you see in studio dashboard comes after the stream is active so that doesn't help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah pending is just "active but waiting for stream health data"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -1093,11 +1093,22 @@ app.put( | |||
} | |||
} | |||
|
|||
const ingest = await getIngestBase(req); | |||
await triggerCatalystPullStart(stream, getHLSPlaybackUrl(ingest, stream)); | |||
if (!stream.isActive) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need some logic in case the stream was just nuked above due to pull source changing. This isActive will certainly be true since it was fetched before the nuke above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah hadn't fully realised the significance, good catch
No description provided.