The code examples in this section assume that your batch job has already been successfully deployed on Blaxel.
Dispatch job execution
Dispatch a job and wait for execution to start:Time units in the TypeScript SDK are specified in milliseconds.
Dispatch job execution with tasks
Dispatch a new job with tasks:Get execution details
Get full execution details:Get status
The possible job states are:List executions
List all executions for a job:Wait for completion
Poll until execution completes:Override environment and memory for a single job execution
Override memory and/or environment variables for a single job execution, without modifying the deployed job configuration:- Memory overrides are expressed in MB and are downward-only: the value must be <= the memory configured at deployment time. For example, if the job is deployed with 4096 MB, execution overrides must be <= 4096 MB.
envsupports multiple environment variablesmemoryandenvcan be set independently or together- Overrides apply only to the current execution
Complete example
Here is a complete example:Deploy a job
Learn how to deploy your AI batch jobs on Blaxel as a serverless auto-scalable endpoint.
