From f8b343eba5b1e60b27844d401b6e1a5ec1e47085 Mon Sep 17 00:00:00 2001 From: Sergey Smolnikov Date: Thu, 4 Jul 2024 14:02:20 +0200 Subject: [PATCH] Info about job-scheduler batch statuses. --- public-site/docs/radix-config/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public-site/docs/radix-config/index.md b/public-site/docs/radix-config/index.md index 408aa637..d21c1528 100644 --- a/public-site/docs/radix-config/index.md +++ b/public-site/docs/radix-config/index.md @@ -1221,14 +1221,14 @@ spec: - `condition` - `Any`, `All` - `operator` - `In`, `NotIn` - `jobStatuses` - `Waiting`, `Active`, `Running`, `Succeeded`, `Failed`, `Stopped` -- `batchStatus` - `Running`, `Succeeded`, `Failed`, `Waiting`, `Stopping`, `Stopped`, `DeadlineExceeded`, `Active`, `Completed` +- `batchStatus` - `Waiting`, `Active`, `Running`, `Succeeded`, `Failed`, `Stopping`, `Stopped`, `DeadlineExceeded`, `Completed` Rules are applied in the order from top to bottom in the rules list. When any rule matches, rules following it are ignored. -If `batchStatusRules` are not defined or no rules match - following rules are applied: -* No jobs are started - the batch status is `Waiting` -* Any jobs are in `Active` or `Running` state - the batch status is `Active` -* No jobs are in `Waiting`, `Active` or `Running` states - the batch status is `Completed` +If `batchStatusRules` are not defined or no rules match a batch status is set by following rules: +* `Waiting` - no jobs are started +* `Active` - any jobs are in `Active` or `Running` state +* `Completed` - no jobs are in `Waiting`, `Active` or `Running` states Batch statuses, default or defined by rules, are the same in the Radix console, returned by [job notifications](/guides/jobs/notifications.md) and [Job Manager API](/guides/jobs/job-manager-and-job-api.md). If rules are changed, they will be applied on next deployment of an application environment, also affecting already existing batches statuses in this environment.