You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/machines.mdx
+40-17
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ description: "Configure the number of vCPUs and GBs of RAM you want the task to
6
6
The `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.
This is useful when you know that a certain payload will require more memory than the default machine. For example, you know it's a larger file or a customer that has a lot of data.
38
54
39
-
## Out Of Memory errors
55
+
## Out Of Memory (OOM) errors
40
56
41
57
Sometimes you might see one of your runs fail with an "Out Of Memory" error.
42
58
43
59
> 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.
44
60
45
-
If this happens regularly you need to either optimize the memory-efficiency of your code, or increase the machine.
61
+
We automatically detect common Out Of Memory errors, including when ffmpeg throws an error because it ran out of memory.
62
+
63
+
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.
This will only retry the task if you get an OOM error. It won't permanently change the machine that a new run starts on, so if you consistently see OOM errors you should change the machine in the `machine` property.
0 commit comments