From 12ad920360c33df71d42ae855ac9bc2c8bfd510a Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:05:02 +0100 Subject: [PATCH] separate SIGTERM from maybe OOM errors --- packages/core/src/v3/errors.ts | 50 ++++++++++++++++++++++---- packages/core/src/v3/schemas/common.ts | 2 ++ 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/packages/core/src/v3/errors.ts b/packages/core/src/v3/errors.ts index f63f48b99..e06e97a90 100644 --- a/packages/core/src/v3/errors.ts +++ b/packages/core/src/v3/errors.ts @@ -331,6 +331,14 @@ const prettyInternalErrors: Partial< href: links.docs.machines.home, }, }, + TASK_PROCESS_SIGTERM: { + message: + "Your task exited after receiving SIGTERM but we don't know why. If this keeps happening, please get in touch so we can investigate.", + link: { + name: "Contact us", + href: links.site.contact, + }, + }, }; type EnhanceError = T & { @@ -342,6 +350,14 @@ export function taskRunErrorEnhancer(error: TaskRunError): EnhanceError