Unanswered
How Can I Test Scripts That Use Clearml In A Ci Environment? The Integration Tests Run In A Docker Container Without Access To A Clearml Server, So I Get The Following Error:
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) `
154 Views
0
Answers
2 years ago
one year ago