Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Workers
Base Worker
Commits
0f263e48
Commit
0f263e48
authored
2 years ago
by
NolanB
Browse files
Options
Downloads
Patches
Plain Diff
Add logs
parent
82178dc7
No related branches found
No related tags found
No related merge requests found
Pipeline
#79487
passed
2 years ago
Stage: test
Stage: build
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex_worker/worker/training.py
+7
-4
7 additions, 4 deletions
arkindex_worker/worker/training.py
with
7 additions
and
4 deletions
arkindex_worker/worker/training.py
+
7
−
4
View file @
0f263e48
...
...
@@ -145,6 +145,8 @@ class TrainingMixin(object):
"
description
"
:
description
,
},
)
model_version_id
=
model_version_details
.
get
(
"
id
"
)
logger
.
info
(
f
"
Model version (
{
model_version_id
}
) was created successfully
"
)
except
ErrorResponse
as
e
:
if
e
.
status_code
>=
500
:
logger
.
error
(
f
"
Failed to create model version:
{
e
.
content
}
"
)
...
...
@@ -158,8 +160,9 @@ class TrainingMixin(object):
logger
.
error
(
model_version_details
[
0
])
return
model_version_id
=
model_version_details
.
get
(
"
id
"
)
logger
.
info
(
f
"
Model version
{
model_version_id
}
was created successfully
"
)
model_version_id
=
model_version_details
[
"
id
"
]
logger
.
info
(
f
"
Model version (
{
model_version_id
}
) already exist
"
)
return
model_version_details
def
upload_to_s3
(
self
,
archive_path
:
str
,
model_version_details
:
dict
)
->
None
:
...
...
@@ -188,7 +191,7 @@ class TrainingMixin(object):
"""
model_version_id
=
model_version_details
.
get
(
"
id
"
)
logger
.
info
(
f
"
Updating
the
model version
{
model_version_id
}
"
)
logger
.
info
(
f
"
Updating model version
(
{
model_version_id
}
)
"
)
try
:
self
.
request
(
"
UpdateModelVersion
"
,
...
...
@@ -200,6 +203,6 @@ class TrainingMixin(object):
"
tag
"
:
model_version_details
.
get
(
"
tag
"
),
},
)
logger
.
info
(
f
"
Model version
{
model_version_id
}
successfully updated
"
)
logger
.
info
(
f
"
Model version
(
{
model_version_id
}
) was
successfully updated
"
)
except
ErrorResponse
as
e
:
logger
.
error
(
f
"
Failed to update model version:
{
e
.
content
}
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment