In the last versions CLEARML_NO_DEFAULT_SERVER
is always true - you don't need to set it
GreasyPenguin14 did you use Task.set_offline()
before calling anything else?
GreasyPenguin14 , Hi 🙂
I'm guessing that it tries to communicate during task.init()
Try running the function when you initialize the Task
object
This code snippet does reproduce:
` import os
from clearml import Task
parameters = {
'experiment': {
'project_name': 'test',
'experiment_name': 'test_exp',
'tags': []
}
}
Task.set_offline(True)
if not Task.is_offline():
os.environ['CLEARML_NO_DEFAULT_SERVER'] = '1'
task = Task.init(
project_name=parameters['experiment']['project_name'],
task_name=parameters['experiment']['experiment_name'],
task_type='testing',
tags=parameters['experiment']['tags'],
auto_connect_arg_parser=True,
auto_connect_streams=True,
auto_connect_frameworks=True,
auto_resource_monitoring=True,
)
task.connect_configuration(parameters) `
# Never save to clearml demo server Task.set_offline(parameters['experiment'].get('offline', False)) if not Task.is_offline(): os.environ['CLEARML_NO_DEFAULT_SERVER'] = '1' task = Task.init( project_name=parameters['experiment']['project_name'], task_name=parameters['experiment']['experiment_name'], task_type=task_type, tags=parameters['experiment']['tags'], auto_connect_arg_parser=True, auto_connect_streams=True, auto_connect_frameworks=True, auto_resource_monitoring=True, ) task.connect_configuration(parameters)
So Task.set_offline is called before the initialization of the task
Thank you GreasyPenguin14 , I think you are correct, in offline mode it should not check the "demo server" configuration (as it will not try to connect to a server anyhow).
Could you open a github issue? so this issue is addressed quickly
Is that the entire code? where are the imports etc?