Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion pkg/api/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ func IsJobFailed(jobStatus tensorleapapi.JobStatus) bool {
}

func IsJobRunning(jobStatus tensorleapapi.JobStatus) bool {
return jobStatus == tensorleapapi.JOBSTATUS_STARTED || jobStatus == tensorleapapi.JOBSTATUS_PENDING || jobStatus == tensorleapapi.JOBSTATUS_UNSTARTED
return jobStatus == tensorleapapi.JOBSTATUS_STARTED ||
jobStatus == tensorleapapi.JOBSTATUS_PENDING ||
jobStatus == tensorleapapi.JOBSTATUS_INITIALIZING ||
jobStatus == tensorleapapi.JOBSTATUS_UNSTARTED
}

func IsJobFinished(jobStatus tensorleapapi.JobStatus) bool {
Expand Down
2 changes: 2 additions & 0 deletions pkg/tensorleapapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ docs/SetExperimentPropertiesRequest.md
docs/SetSettingValueWrapper.md
docs/SetTeamMachineTypeParams.md
docs/SetUserNotificationsAsRead200Response.md
docs/SetVersionColorParams.md
docs/SetVersionUpdateActionsParams.md
docs/SetVersionUpdateActionsResponse.md
docs/SettingSchema.md
Expand Down Expand Up @@ -945,6 +946,7 @@ model_set_experiment_properties_request.go
model_set_setting_value_wrapper.go
model_set_team_machine_type_params.go
model_set_user_notifications_as_read_200_response.go
model_set_version_color_params.go
model_set_version_update_actions_params.go
model_set_version_update_actions_response.go
model_setting_schema.go
Expand Down
4 changes: 3 additions & 1 deletion pkg/tensorleapapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 11.0.91
- API version: 11.0.94
- Package version: 1.0.0
- Generator version: 7.14.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Expand Down Expand Up @@ -229,6 +229,7 @@ Class | Method | HTTP request | Description
*DefaultAPI* | [**SetExperimentProperties**](docs/DefaultAPI.md#setexperimentproperties) | **Post** /versions/setExperimentProperties |
*DefaultAPI* | [**SetMachineType**](docs/DefaultAPI.md#setmachinetype) | **Post** /teams/setMachineType |
*DefaultAPI* | [**SetUserNotificationsAsRead**](docs/DefaultAPI.md#setusernotificationsasread) | **Post** /notifications/setUserNotificationsAsRead |
*DefaultAPI* | [**SetVersionColor**](docs/DefaultAPI.md#setversioncolor) | **Post** /versions/setVersionColor |
*DefaultAPI* | [**SetVersionUpdateActions**](docs/DefaultAPI.md#setversionupdateactions) | **Post** /versions/setVersionUpdateActions |
*DefaultAPI* | [**StartTrial**](docs/DefaultAPI.md#starttrial) | **Post** /auth/startTrial |
*DefaultAPI* | [**StopJob**](docs/DefaultAPI.md#stopjob) | **Post** /jobs/stopJob |
Expand Down Expand Up @@ -685,6 +686,7 @@ Class | Method | HTTP request | Description
- [SetSettingValueWrapper](docs/SetSettingValueWrapper.md)
- [SetTeamMachineTypeParams](docs/SetTeamMachineTypeParams.md)
- [SetUserNotificationsAsRead200Response](docs/SetUserNotificationsAsRead200Response.md)
- [SetVersionColorParams](docs/SetVersionColorParams.md)
- [SetVersionUpdateActionsParams](docs/SetVersionUpdateActionsParams.md)
- [SetVersionUpdateActionsResponse](docs/SetVersionUpdateActionsResponse.md)
- [SettingSchema](docs/SettingSchema.md)
Expand Down
166 changes: 108 additions & 58 deletions pkg/tensorleapapi/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ info:
license:
name: SEE LICENSE IN LICENSE.md
title: node-server
version: 11.0.91
version: 11.0.94
servers:
- url: /api/v2
paths:
Expand Down Expand Up @@ -2676,6 +2676,22 @@ paths:
security:
- jwt:
- not-demo
/versions/setVersionColor:
post:
operationId: SetVersionColor
parameters: []
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/SetVersionColorParams"
required: true
responses:
"204":
description: No content
security:
- jwt:
- not-demo
/versions/tagModel:
post:
operationId: TagModel
Expand Down Expand Up @@ -12629,8 +12645,9 @@ components:
JobStatus:
enum:
- UNSTARTED
- STARTED
- PENDING
- INITIALIZING
- STARTED
- STOPPED
- TERMINATED
- FINISHED
Expand Down Expand Up @@ -34580,42 +34597,18 @@ components:
Version:
additionalProperties: true
example:
updateActions:
- update_metadata
- update_metadata
notes: notes
serialNumber: 5.962133916683182
color: color
data:
nodes: "{}"
id: id
modelId: modelId
resources:
overrided_version_id: overrided_version_id
inference_resources:
metric_compute_insights: metric_compute_insights
metric_directions: metric_directions
es_model_id: es_model_id
population_exploration_digest_seed_count: 6.027456183070403
inference_artifact_id: inference_artifact_id
es_inspection_index: es_inspection_index
insights_index_counter: 1.4658129805029452
vis_resources:
insights_revision: insights_revision
sample_visualizers_revision: sample_visualizers_revision
csv_blob_path: csv_blob_path
vis_artifact_id: vis_artifact_id
es_metrics_index: es_metrics_index
epochTags:
key: 0.8008281904610115
isActive: true
branch: branch
codeSnapshotId: codeSnapshotId
createdAt: 2000-01-23T04:56:07.000+00:00
createdBy: createdBy
uploadedModel:
transformInputs: true
blobPath: blobPath
teamId: teamId
graphValidationData:
metadata:
- connection_name: connection_name
Expand Down Expand Up @@ -34699,12 +34692,37 @@ components:
node_id: node_id
experimentId: experimentId
tag: tag
projectId: projectId
isFavourite: true
hash: hash
cid: cid
updatedAt: 2000-01-23T04:56:07.000+00:00
parentVersionId: parentVersionId
updateActions:
- update_metadata
- update_metadata
serialNumber: 5.962133916683182
resources:
overrided_version_id: overrided_version_id
inference_resources:
metric_compute_insights: metric_compute_insights
metric_directions: metric_directions
es_model_id: es_model_id
population_exploration_digest_seed_count: 6.027456183070403
inference_artifact_id: inference_artifact_id
es_inspection_index: es_inspection_index
insights_index_counter: 1.4658129805029452
vis_resources:
insights_revision: insights_revision
sample_visualizers_revision: sample_visualizers_revision
csv_blob_path: csv_blob_path
vis_artifact_id: vis_artifact_id
es_metrics_index: es_metrics_index
epochTags:
key: 0.8008281904610115
codeSnapshotId: codeSnapshotId
createdBy: createdBy
teamId: teamId
projectId: projectId
hash: hash
cid: cid
status: draft
properties:
cid:
Expand Down Expand Up @@ -34761,6 +34779,8 @@ components:
serialNumber:
format: double
type: number
color:
type: string
data:
$ref: "#/components/schemas/ModelGraph"
status:
Expand Down Expand Up @@ -34800,42 +34820,18 @@ components:
updatedAt: 2000-01-23T04:56:07.000+00:00
status: visible
version:
updateActions:
- update_metadata
- update_metadata
notes: notes
serialNumber: 5.962133916683182
color: color
data:
nodes: "{}"
id: id
modelId: modelId
resources:
overrided_version_id: overrided_version_id
inference_resources:
metric_compute_insights: metric_compute_insights
metric_directions: metric_directions
es_model_id: es_model_id
population_exploration_digest_seed_count: 6.027456183070403
inference_artifact_id: inference_artifact_id
es_inspection_index: es_inspection_index
insights_index_counter: 1.4658129805029452
vis_resources:
insights_revision: insights_revision
sample_visualizers_revision: sample_visualizers_revision
csv_blob_path: csv_blob_path
vis_artifact_id: vis_artifact_id
es_metrics_index: es_metrics_index
epochTags:
key: 0.8008281904610115
isActive: true
branch: branch
codeSnapshotId: codeSnapshotId
createdAt: 2000-01-23T04:56:07.000+00:00
createdBy: createdBy
uploadedModel:
transformInputs: true
blobPath: blobPath
teamId: teamId
graphValidationData:
metadata:
- connection_name: connection_name
Expand Down Expand Up @@ -34919,12 +34915,37 @@ components:
node_id: node_id
experimentId: experimentId
tag: tag
projectId: projectId
isFavourite: true
hash: hash
cid: cid
updatedAt: 2000-01-23T04:56:07.000+00:00
parentVersionId: parentVersionId
updateActions:
- update_metadata
- update_metadata
serialNumber: 5.962133916683182
resources:
overrided_version_id: overrided_version_id
inference_resources:
metric_compute_insights: metric_compute_insights
metric_directions: metric_directions
es_model_id: es_model_id
population_exploration_digest_seed_count: 6.027456183070403
inference_artifact_id: inference_artifact_id
es_inspection_index: es_inspection_index
insights_index_counter: 1.4658129805029452
vis_resources:
insights_revision: insights_revision
sample_visualizers_revision: sample_visualizers_revision
csv_blob_path: csv_blob_path
vis_artifact_id: vis_artifact_id
es_metrics_index: es_metrics_index
epochTags:
key: 0.8008281904610115
codeSnapshotId: codeSnapshotId
createdBy: createdBy
teamId: teamId
projectId: projectId
hash: hash
cid: cid
status: draft
properties:
project:
Expand Down Expand Up @@ -35063,6 +35084,7 @@ components:
additionalProperties: true
example:
notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -35326,6 +35348,8 @@ components:
serialNumber:
format: double
type: number
color:
type: string
properties:
description: Construct a type with a set of properties K of type T
properties: {}
Expand Down Expand Up @@ -35363,6 +35387,7 @@ components:
example:
versions:
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -35572,6 +35597,7 @@ components:
hasExternalEpoch: true
isEvaluate: true
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -35803,6 +35829,7 @@ components:
example:
versions:
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -36012,6 +36039,7 @@ components:
hasExternalEpoch: true
isEvaluate: true
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -36243,6 +36271,7 @@ components:
example:
versions:
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -36452,6 +36481,7 @@ components:
hasExternalEpoch: true
isEvaluate: true
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -36818,6 +36848,7 @@ components:
example:
versions:
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -37027,6 +37058,7 @@ components:
hasExternalEpoch: true
isEvaluate: true
- notes: notes
color: color
canContinueEvaluate: true
modelId: modelId
isActive: true
Expand Down Expand Up @@ -37257,6 +37289,24 @@ components:
- projectId
- versionId
type: object
SetVersionColorParams:
additionalProperties: true
example:
color: color
experimentId: experimentId
projectId: projectId
properties:
projectId:
type: string
color:
type: string
experimentId:
type: string
required:
- color
- experimentId
- projectId
type: object
TagModelRequest:
additionalProperties: true
example:
Expand Down
Loading
Loading