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,9 +1806,10 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
:param offline_mode: If True, offline-mode is turned on, and no communication to the backend is enabled.
:return:
"""
ENV_OFFLINE_MODE.set(offline_mode)
InterfaceBase._offline_mode = bool(offline_mode)
Session._offline_mode = bool(offline_mode)
if not running_remotely():
ENV_OFFLINE_MODE.set(offline_mode)
InterfaceBase._offline_mode = bool(offline_mode)
Session._offline_mode = bool(offline_mode)
@classmethod
def is_offline(cls):