Skip to content
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

check asset status #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

check asset status #19

wants to merge 1 commit into from

Conversation

jawndiego
Copy link
Contributor

resolves issue #18

Copy link

railway-app bot commented Apr 3, 2024

This PR is being deployed to Railway 🚅

river-media-service: ◻️ REMOVED

processing = false
return assetDetails.status
} else {
await new Promise(resolve => setTimeout(resolve, 5000)) // 5 seconds delay
Copy link
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?


const finalStatus = await checkAssetStatus(asset.id)

return { id: asset.id, playbackId: asset.playback_ids?.[0].id, processing, status: finalStatus }
Copy link
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