Unanswered
How Can I Use The Python Sdk To Access 2 Tasks That Live In Different Clearml Hosts? I Want To Do This In 1 Python Script. Currently I Can Set A Session To The Host Of The First Task, But The Environment Variables Are Caching Somewhere So I Cannot Access
from clearml import Task
Task.set_credentials(
api_host=api_host_1,
web_host=web_host_1,
files_host=file_host_1,
key=key_1,
secret=secret_1
)
# CAN get tasks from session 1
task_from_host_1 = Task.get_tasks(tags=["tag_1"], task_filter = {"status":["completed"]})
# below does not work, still tries to access session 1
Task.set_credentials(
api_host=api_host_2,
web_host=web_host_2,
files_host=file_host_2,
key=key_2,
secret=secret_2
)
task_from_host_2 = Task.get_tasks(tags=["tag_2"], task_filter = {"status":["completed"]}) # still returns from session 1
22 Views
0
Answers
21 days ago
21 days ago