from clearml import Task
if Task.running_locally():
print("Running locally")
...
OR
from clearml.config import running_remotely
if running_remotely():
print("Running remotely")
...
From the python code point of view, how do you detect if it is running locally or via clearml-agent ?
from clearml import Task
if Task.running_locally():
print("Running locally")
...
OR
from clearml.config import running_remotely
if running_remotely():
print("Running remotely")
...