From 24b61b1c1558a9891528a00368a931e76acd5371 Mon Sep 17 00:00:00 2001 From: Kent Rancourt Date: Fri, 8 Apr 2022 11:55:26 -0400 Subject: [PATCH 1/2] add fallible field to JobSpec Signed-off-by: Kent Rancourt --- src/core/jobs.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/jobs.ts b/src/core/jobs.ts index bd0608e..06e9456 100644 --- a/src/core/jobs.ts +++ b/src/core/jobs.ts @@ -108,6 +108,12 @@ export interface JobSpec { * operating system (i.e. Windows) or specific hardware (e.g. a GPU.) */ host?: JobHost + /** Specifies whether the job is permitted to fail WITHOUT causing the + * worker process to fail. The API server does not use this field directly, + * but it is information that may be valuable to gateways that report job + * success/failure upstream to original event sources. + */ + fallible?: Boolean } /** From 4573d39d610f1fa7a1f5198c5663852d2622ab64 Mon Sep 17 00:00:00 2001 From: Kent Rancourt Date: Fri, 8 Apr 2022 12:30:23 -0400 Subject: [PATCH 2/2] style/lint fixes Signed-off-by: Kent Rancourt --- src/core/jobs.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/jobs.ts b/src/core/jobs.ts index 06e9456..29eab99 100644 --- a/src/core/jobs.ts +++ b/src/core/jobs.ts @@ -109,11 +109,11 @@ export interface JobSpec { */ host?: JobHost /** Specifies whether the job is permitted to fail WITHOUT causing the - * worker process to fail. The API server does not use this field directly, - * but it is information that may be valuable to gateways that report job - * success/failure upstream to original event sources. - */ - fallible?: Boolean + * worker process to fail. The API server does not use this field directly, + * but it is information that may be valuable to gateways that report job + * success/failure upstream to original event sources. + */ + fallible?: boolean } /**