We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59de884 + 2848ed1 commit 3f8194bCopy full SHA for 3f8194b
truss/remote/baseten/remote.py
@@ -183,6 +183,13 @@ def patch(
183
dev_version = get_dev_version_info(self._api, model_name) # type: ignore
184
truss_hash = dev_version.get("truss_hash", None)
185
truss_signature = dev_version.get("truss_signature", None)
186
+ if not (truss_hash and truss_signature):
187
+ logger.error(
188
+ """Failed to inspect a running remote deployment to watch for changes.
189
+Ensure that there exists a running remote deployment before attempting to watch for changes
190
+ """
191
+ )
192
+ return
193
LocalConfigHandler.add_signature(truss_hash, truss_signature)
194
try:
195
patch_request = truss_handle.calc_patch(truss_hash)
0 commit comments