Can you try calling Task.init() before calling parse_args()?
- The version of my
clearml-agent
was installed a month ago. - My code is something like this
from clearml import Task
import os
import argparse
def eval_sdk_clearml(branch_name, commit_id, benchmark_script_name):
# Stuff here
pass
if __name__ == "__main__":
parser = argparse.ArgumentParser("ClearML SDK Benchmarking!")
parser.add_argument(
"--branch_name",
default="staging",
help="Branch",
)
parser.add_argument(
"--commit_id",
default=None,
help="Git commit ID",
)
parser.add_argument(
"--benchmark_script_name",
default="benchmark_v1.sh",
help="Name of benchmark scripts",
)
args = parser.parse_args()
task = Task.init(project_name="SDK_Benchmarking",
task_name=f"SDK_Benchmarking")
eval_sdk_clearml(args)
Hi @<1570220852421595136:profile|TeenyHedgehog42> , are you using the latest version of clearml-agent
? Can you provide a stand alone code snippet that reproduces this behavior for you?