Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Add export and transcode to Asset and Task (#893)
* added export * added generic handler to handle export * added scheduleTask - moved pub msgs to scheduleTask * changed ipfs - removed waiting from outside scheduler * parentAssetId to inputAssetId - outputAssetId * typo * fix playbackId length and prefix * removed task name - remove originTaskId - changed scheduler to support both output and input assets * schema: Update export task params+output schema * api: Fixes to the export asset API E2E tested, it works!! https://ipfs.io/ipfs/QmRpyvxmxWPUUNSDXodjqDVutsq1ubH9sc85B57Eo7tB75 * api: Add download URL to assets * api: Add dynamic IPFS URLs to export task outputs * added ingest to webhook * added live-to-vod-asset * same shardKey as stream - better types on shard schedule * same shardKey as stream - better types on shard schedule * api/task: Use our dedicated IPFS gateway * fixed signed url encoding * added origin to ingests * check if asset is ready before export * check if asset is ready before export * api/cannon: Remove redundant stream/session fetch * removed redundant mp4 record url from webhook cannon * removed baseIngest from cannon * baseIngest remove * api/store: Make cleanWriteOnlyResponse recursive * api: Avoid creating fields that dont exist * api: Remove transcode task type for now * api: Fix asset creation on request upload * api: Clean asset responses as well * api: Create type for new asset * api/scheduler: Fix task not getting updated * api: Do some oneOf magic on export-task-params * api: Fix asset subfield clean up * api: Improve task error handling - Set asset as failed in case upload fails - Do not allow upload if asset has already been uploaded - Handle corner cases on task event result procecssing * api: List assets and tasks by updatedAt desc * api: Some final nits * api/task: Set IPFS URLs on regular list as well * prettier Co-authored-by: Victor Elias <[email protected]> Co-authored-by: Victor Elias <[email protected]>
- Loading branch information