Tasks
Tasks handle the uploading and processing of videos. Because these operations take some time, video uploading and processing are asynchronous.
The platform utilizes two primary types of tasks:
- Video indexing tasks: These tasks upload and index videos, making their content accesible to the Search and Analyze APIs.
- Video embedding tasks: These tasks upload and process videos, making their content accessible to the Embed API.
Video indexing tasks
A video indexing task transitions through the following stages, each representing a phase in the platform’s processing:
- validating: Ensures the video meets requirements.
- pending: Assigns a server to process the video.
- queued: Prepares the video for indexing.
- indexing: Converts the video into embeddings.
- ready: Completes the process, making the video usable.
- failed: Indicates an error occurred.
The example code below shows how you can track the progress of a task, checking its status until it’s completed:
Related topics
- Pyton SDK Reference > Create a video indexing task
- Node.js SDK Reference > Create a video indexing task
- API Reference > Create a video indexing task
Video embedding tasks
A video embedding task progresses through the following stages:
- processing: The platform is creating the embeddings.
- ready: Processing is complete. You can now retrieve the embeddings.
- failed: The task could not be completed, and the embeddings haven’t been created.
The example code below shows how you can track the progress of a video embedding task, checking its status until it’s completed: