Fix set_base_docker should be skipped when running remotely

This commit is contained in:
allegroai 2020-10-12 10:49:20 +03:00
parent 0eb1bb4492
commit 5d20a0fa98

View File

@ -1006,7 +1006,11 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
Set the base docker image for this experiment Set the base docker image for this experiment
If provided, this value will be used by trains-agent to execute this experiment If provided, this value will be used by trains-agent to execute this experiment
inside the provided docker image. inside the provided docker image.
When running remotely the call is ignored
""" """
if not self.running_locally():
return
with self._edit_lock: with self._edit_lock:
self.reload() self.reload()
execution = self.data.execution execution = self.data.execution