Skip to content

Commit cb16335

Browse files
committed
force publish
1 parent 8325ba7 commit cb16335

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/sasctl/_services/model_management.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ class ModelManagement(Service):
2121

2222
# TODO: set ds2MultiType
2323
def publish_model(self, model, destination, name=None, force=False):
24+
"""
25+
26+
Parameters
27+
----------
28+
model
29+
destination
30+
name
31+
force
32+
33+
Returns
34+
-------
35+
36+
"""
2437
from .model_repository import ModelRepository
2538
from .model_publish import ModelPublish
2639

src/sasctl/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ def publish_model(model, destination, code=None, max_retries=60,
264264
def submit_request():
265265
# Submit a publishing request
266266
if code is None:
267-
publish_req = mm.publish_model(model, destination, **kwargs)
267+
publish_req = mm.publish_model(model, destination,
268+
force=replace, **kwargs)
268269
else:
269270
publish_req = mp.publish_model(model, destination,
270271
code=code, **kwargs)

0 commit comments

Comments
 (0)