Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info about batchId in the radix batch and status #377

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions public-site/docs/guides/jobs/job-manager-and-job-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ The Job Manager exposes the following methods for managing jobs:

```json
{
"batchId": "random-batch-id-123",
"defaultRadixJobComponentConfig": {
"imageTagName": "1.0.0",
"timeLimitSeconds": 200,
Expand Down Expand Up @@ -225,6 +226,10 @@ To start a new batch of jobs, send a `POST` request to `http://compute:8000/api/
}
```

### Batch ID
Batch can have `batchId` - it is an optional string, where any value can be put. Radix does not process it. It can exist in a `batchScheduleDescription` (a request body json) for a batch.
If the `batchId` is specified, it will be returned in the batch status, and it will be shown in the Radix console in the batch list.

### Job ID
Jobs can have `jobId` - it is an optional string, where any value can be put. Radix does not process it. It can exist in a `jobScheduleDescription` for a single job or in batch jobs
If the `jobId` is specified, it will be returned in the job's status, and it will be shown in the Radix console in the job list.
Expand Down
2 changes: 2 additions & 0 deletions public-site/docs/guides/jobs/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ When job and batch status needs to be monitored, their statuses can be [pulled](

The URL to the Radix application component or job component endpoint can be specified in the `webhook` option in the `notifications` section in the [radixconfig.yaml](/radix-config/index.md). This is an endpoint where a Radix batch events will be posted when any of the running jobs or batches for this job component changes states. Notification about changes are sent by a `POST` method with an `application/json` `ContentType` with a [Radix batch event format](#radix-batch-event), which extends the [Radix batch status](./job-manager-and-job-api.md#get-a-state-of-a-batch) format with fields
* `name` - internal name of the batch or a single job. In both cases the name begins with `batch-`
* `batchId` - optional string value to identify a batch.
* `created`, `started`, `ended` - timestamp of corresponding batch live cycle event
* `status` - status of a batch or a single job
* `updated` - timestamp when a status was updated
Expand Down Expand Up @@ -57,6 +58,7 @@ Fields in the `jobStatus` list items:
```json
{
"name": "batch-compute-20220302155333-hrwl53mw",
"batchId": "random-batch-id-123",
"created": "2022-03-02T15:53:33+01:00",
"started": "2022-03-02T15:53:33+01:00",
"ended": "2022-03-02T15:54:00+01:00",
Expand Down