Skip to content

check asset status#19

Open
jawndiego wants to merge 1 commit intomainfrom
jawn/i_18
Open

check asset status#19
jawndiego wants to merge 1 commit intomainfrom
jawn/i_18

Conversation

@jawndiego
Copy link
Copy Markdown
Contributor

resolves issue #18

@railway-app
Copy link
Copy Markdown

railway-app Bot commented Apr 3, 2024

This PR is being deployed to Railway 🚅

river-media-service: ◻️ REMOVED

Comment thread routes/mux/upload.ts
processing = false
return assetDetails.status
} else {
await new Promise(resolve => setTimeout(resolve, 5000)) // 5 seconds delay
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come the delay is necessary?

Comment thread routes/mux/upload.ts

const finalStatus = await checkAssetStatus(asset.id)

return { id: asset.id, playbackId: asset.playback_ids?.[0].id, processing, status: finalStatus }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of finalStatus it is processingStatus or just status?

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.

2 participants