Hi BoredBat47 , repository URL is always set on the task (auto-detected when you run your tasks and copied when you clone them) - why would you like to set this as a worker setting?
@<1523701087100473344:profile|SuccessfulKoala55> I run it from local machine, that's right. When I run the task it says it can't clone repository. In the web UI on my task there's a REPOSITORY string. It's a correct ssh URL to my repo but it's missing git@
after ssh://
If I add the git part to it by editing the task and queuing again it works. In my config file I have option force_git_ssh_user: git
enabled.
@<1523701087100473344:profile|SuccessfulKoala55>
from random import random
from clearml import Task, TaskTypes
import pandas as pd
task: Task = Task.init(
project_name="My Project",
task_name='Sample task',
task_type=TaskTypes.inference
)
task.connect(args)
task.execute_remotely(queue_name="default")
value = random()
task.get_logger().report_single_value(name="sample_value", value=value)
df = pd.DataFrame.from_dict({'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']})
task.register_artifact("sample_artifact", df)
SuccessfulKoala55 So my question is how to setup auto-detection properly so worker knows what git repo to pull from
Thank you, got it. I tried it because I couldn't figure out how to make auto-detection work. When I run a task from my local project folder (which is also a git repo) via Task.init
it says that no repository was found. Also there is Task.create
method which lets you pass git URL but I suspect the Task.init
is more preferrable method
Do you have an example where it didn't work properly? The auto-detection is done when you run your code locally, on your own machine, by the SDK
@<1523701087100473344:profile|SuccessfulKoala55> I reloaded agent couple of times, cleared cache and for some reason it works now! Anyways, thanks for your help!