No offline mode when running remotely

This commit is contained in:
allegroai 2020-08-23 01:05:18 +03:00
parent de068cc390
commit b054ba4088

View File

@ -1806,6 +1806,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
:param offline_mode: If True, offline-mode is turned on, and no communication to the backend is enabled. :param offline_mode: If True, offline-mode is turned on, and no communication to the backend is enabled.
:return: :return:
""" """
if not running_remotely():
ENV_OFFLINE_MODE.set(offline_mode) ENV_OFFLINE_MODE.set(offline_mode)
InterfaceBase._offline_mode = bool(offline_mode) InterfaceBase._offline_mode = bool(offline_mode)
Session._offline_mode = bool(offline_mode) Session._offline_mode = bool(offline_mode)