Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi Everyone, I Have A Question When Running A Task Under A Clearml-Agent. When The Script Is Executed By An Agent, That Should Be Bound To Some Task. How Can I Get That Task From The Script?

Hi everyone,
I have a question when running a task under a clearml-agent.

When the script is executed by an agent, that should be bound to some task.
How can I get that task from the script?

  
  
Posted 3 years ago
Votes Newest

Answers 30


now I am going AFK.
Thanks for your support!

  
  
Posted 3 years ago

I mean, the output model comes with the labels which is posted.

  
  
Posted 3 years ago

By the way, we found that when I added labels param and post a tasks.create request, it worked.

  
  
Posted 3 years ago

The labels are attached for that clone task output model.

  
  
Posted 3 years ago

Okay, it scceeded.

  
  
Posted 3 years ago

👍

  
  
Posted 3 years ago

I will set repository url as https and retry.

  
  
Posted 3 years ago

Maybe I should have clone the repo with https instead of ssh.

  
  
Posted 3 years ago

The log says the repository is:
ssh://github.com/allegroai/clearml

  
  
Posted 3 years ago

Um..

and if you clone the local task run and enqueue it to the agent?

It failed.
Saying: Could not read from remote repository.

  
  
Posted 3 years ago

We have a web server which accepts various requests and manages database resources.
This web server arranges the request and creates a task on the clearml api server, which is running an internal network.

  
  
Posted 3 years ago

BTW why using the api calls and not clearml sdk?

Because the training part is only the sub system of our whole system.
And the python stuff is not facing to the web, where training request is coming.

  
  
Posted 3 years ago

just a sec...

  
  
Posted 3 years ago

BTW why using the api calls and not clearml sdk?

  
  
Posted 3 years ago

and if you clone the local task run and enqueue it to the agent?

  
  
Posted 3 years ago

For the agent run, I posted only the following params:
name project script typeto tasks.create endpoint and let an agent to pick it.

  
  
Posted 3 years ago

Can you run this one -

 ?

Do you get the labels for both local and clearml-agent run?

Okay, I did the example.
For the local run, I got the labels.
For the agent run, I did not get the labels.

  
  
Posted 3 years ago

As for the versions
root@120eb0cddb60:~# pip list | grep clearml clearml 0.17.5 clearml-agent 0.17.1

  
  
Posted 3 years ago

I will run it right away.

  
  
Posted 3 years ago

Which clearml and clearml-agent versions are you using?

Can you run this one - https://github.com/allegroai/clearml/blob/master/examples/reporting/model_config.py ?

Do you get the labels for both local and clearml-agent run?

  
  
Posted 3 years ago

yes

  
  
Posted 3 years ago

and the LABELS section is empty for running with the agent? Running locally works?

  
  
Posted 3 years ago

I confirmed that worked if it is not started by an agent.

  
  
Posted 3 years ago

No, I have checked it on the web frontend, following the model link and the LABELS tab.

  
  
Posted 3 years ago

Can you see it in the model? Click on the model link to get into the model

  
  
Posted 3 years ago

Does this task (started by an agent) have some limitation?
Like being disabled to connect labels?

  
  
Posted 3 years ago

Even though I called task.connect_label_enumeration , there is no data to show on the output model.

  
  
Posted 3 years ago

Relating to it but another question.

With that task, which is running under an agent, task.connect_label_enumeration does not look working.

  
  
Posted 3 years ago

Ah, great!
It worked!

  
  
Posted 3 years ago

will try it.

  
  
Posted 3 years ago
1K Views
30 Answers
3 years ago
one year ago
Tags
Similar posts