Skip to content

Commit 871b3d7

Browse files
author
Heather MacDonald
committed
fix newlines
1 parent 9c338cb commit 871b3d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deployment/promotion/promote.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
"""
33
This is a Python script that will copy/promote a Verta Build from one environment
44
to another.
5+
56
- The script will use the model version passed in the VERTA_SOURCE_MODEL_VERSION_ID environment variable
67
as the model version to promote.
78
- The latest self-contained build of the model version will be promoted. The promotion process will terminate if no
89
self-contained builds of the model version are found.
910
- If you need to create a self-contained build of a model version, use the create_scb.py script.
11+
1012
Configuration is done via environment variables. All are mandatory except VERTA_DEST_REGISTERED_MODEL_ID:
13+
1114
- VERTA_SOURCE_MODEL_VERSION_ID: The ID of the model version to promote
1215
- VERTA_SOURCE_HOST: The source Verta instance to promote from
1316
- VERTA_SOURCE_EMAIL: The email address for authentication to the source Verta instance
@@ -18,8 +21,10 @@
1821
- VERTA_DEST_DEV_KEY: The dev key associated to the email address on the destination Verta instance
1922
- VERTA_DEST_WORKSPACE: The workspace associated with the build on the destination Verta instance
2023
- VERTA_DEST_REGISTERED_MODEL_ID: [optional] The ID of the registered model to promote to. If missing, we'll create a new registered model
24+
2125
Optional environment variables to configure curl usage:
2226
VERTA_CURL_OPTS: Options to pass to curl. Defaults to '-O'
27+
2328
With these values set, run the script. The script will not attempt to delete any data and will fail if the registered
2429
model (if an existing one has not been provided) or version already exists in the destination.
2530
"""
@@ -261,6 +266,7 @@ def upload_artifact(auth, model_version_id, artifact):
261266
key = artifact['key']
262267
print("Uploading artifact '%s'" % key)
263268
print(artifact)
269+
264270
artifact_request = {
265271
'method': 'PUT',
266272
'model_version_id': model_version_id,

0 commit comments

Comments
 (0)