Transcoding, Open Source, Open Source Cloud, JavaScript.
Promise((res) => setTimeout(res, ms)); const MAX_ITER = 10000; async function waitForEncoreJobToComplete(jobUrl, token) { for (const _ of Array(MAX_ITER)) { const data = await createFetch(jobUrl, { method: 'GET', headers: { 'x-jwt': `Bearer ${token}`, 'Content-Type': 'application/json' } }); const