Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,16 @@ export type RemoteConfigurationFirecrest = {
system_name: RemoteConfigurationFirecrestSystemName;
partition?: RemoteConfigurationFirecrestPartition;
};
export type RemoteConfiguration = RemoteConfigurationFirecrest;
export type RemoteConfigurationRunaiApiUrl = string;
export type RemoteConfigurationRunai = {
/** Kind of remote resource pool */
kind: "runai";
base_url: RemoteConfigurationRunaiApiUrl;
provider_id?: RemoteConfigurationFirecrestProviderId;
};
export type RemoteConfiguration =
| RemoteConfigurationFirecrest
| RemoteConfigurationRunai;
export type IdleThreshold = number;
export type HibernationThreshold = number;
export type HibernationWarningPeriod = number;
Expand Down Expand Up @@ -768,9 +777,16 @@ export type RemoteConfigurationFirecrestPatch = {
system_name?: RemoteConfigurationFirecrestSystemName;
partition?: RemoteConfigurationFirecrestPartition;
};
export type RemoteConfigurationRunaiPatch = {
/** Kind of remote resource pool */
kind?: "runai";
base_url?: RemoteConfigurationRunaiApiUrl;
provider_id?: RemoteConfigurationFirecrestProviderId;
};
export type RemoteConfigurationPatch =
| RemoteConfigurationPatchReset
| RemoteConfigurationFirecrestPatch;
| RemoteConfigurationFirecrestPatch
| RemoteConfigurationRunaiPatch;
export type ResourcePoolPatch = {
quota?: QuotaPatch;
classes?: ResourceClassesPatchWithId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2622,6 +2622,9 @@
"oneOf": [
{
"$ref": "#/components/schemas/RemoteConfigurationFirecrest"
},
{
"$ref": "#/components/schemas/RemoteConfigurationRunai"
}
]
},
Expand Down Expand Up @@ -2671,6 +2674,31 @@
"description": "The partition to use when submitting jobs",
"example": "normal"
},
"RemoteConfigurationRunai": {
"type": "object",
"description": "The configuration for starting sessions remotely using Runai\n",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"enum": ["runai"],
"description": "Kind of remote resource pool",
"example": "runai"
},
"base_url": {
"$ref": "#/components/schemas/RemoteConfigurationRunaiApiUrl"
},
"provider_id": {
"$ref": "#/components/schemas/RemoteConfigurationFirecrestProviderId"
}
},
"required": ["kind", "base_url"]
},
"RemoteConfigurationRunaiApiUrl": {
"type": "string",
"description": "The base URL of the Runai server",
"example": "https://sdsc.run.ai"
},
"RemoteConfigurationPatch": {
"type": "object",
"description": "Patch for the configuration used by to start sessions remotely\n",
Expand All @@ -2680,6 +2708,9 @@
},
{
"$ref": "#/components/schemas/RemoteConfigurationFirecrestPatch"
},
{
"$ref": "#/components/schemas/RemoteConfigurationRunaiPatch"
}
]
},
Expand Down Expand Up @@ -2713,6 +2744,25 @@
}
}
},
"RemoteConfigurationRunaiPatch": {
"type": "object",
"description": "The configuration for starting sessions remotely using Runai\n",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"enum": ["runai"],
"description": "Kind of remote resource pool",
"example": "runai"
},
"base_url": {
"$ref": "#/components/schemas/RemoteConfigurationRunaiApiUrl"
},
"provider_id": {
"$ref": "#/components/schemas/RemoteConfigurationFirecrestProviderId"
}
}
},
"IdleThreshold": {
"type": "integer",
"description": "A threshold in seconds after which a session gets hibernated (0 means no threshold)",
Expand Down
Loading