Configure the number of vCPUs and GBs of RAM you want the task to use.
machine
configuration is optional. Using higher spec machines will increase the cost of running the task but can also improve the performance of the task if it is CPU or memory bound.
small-1x
which has 0.5 vCPU and 0.5 GB of RAM. You can change the default machine in your trigger.config.ts
file:
Preset | vCPU | Memory | Disk space |
---|---|---|---|
micro | 0.25 | 0.25 | 10GB |
small-1x (default) | 0.5 | 0.5 | 10GB |
small-2x | 1 | 1 | 10GB |
medium-1x | 1 | 2 | 10GB |
medium-2x | 2 | 4 | 10GB |
large-1x | 4 | 8 | 10GB |
large-2x | 8 | 16 | 10GB |
TASK_PROCESS_OOM_KILLED. Your task ran out of memory. Try increasing the machine specs. If this doesn’t fix it there might be a memory leak.We automatically detect common Out Of Memory errors, including when ffmpeg throws an error because it ran out of memory. You can explicitly throw an Out Of Memory error in your task. This can be useful if you use a native package that detects it’s going to run out of memory and then stops before it runs out. If you can detect this, you can then throw this error.
machine
property.