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
Quick Question: Does Overriding A Task With Task.Init() Do A Proper Delete Of Debug Samples At An Fileserver Or S3 Host?

Quick question: Does overriding a task with Task.init() do a proper delete of debug samples at an fileserver or S3 host?

  
  
Posted one year ago
Votes Newest

Answers 12


@<1523701087100473344:profile|SuccessfulKoala55> I just did the following (everything locally, not with clearml-agent)

  • Set my credentials and S3 endpoint to A
  • Run a task with Task.init() and save a debug sample to S3
  • Abort the task
  • Change my credentials and S3 endpoint to B
  • Restart the taskThe result are lingering files in A that seem not to be associated with the task. I would expect ClearML to instead error the task or to track the lingering files somewhere, so they can marked for later deletion.

For reference: I tested this by looking at the object browser of MinIO.

  
  
Posted one year ago

Or does MinIO delay deletion somehow? Deleting a task via the web interface also does not result in deletion of debug samples on MinIO

  
  
Posted one year ago

Hi @<1523701868901961728:profile|ReassuredTiger98> , I'm not sure I understand - overriding meaning adding Task.init() at the start of the code?

  
  
Posted one year ago

However, this seems like a pretty edge-case to me - why would you do that on a regular basis?

For me this is how I use ClearML as tensorboard replacement. To start some debug runs before adding it to a clearml-agent queue. For me this seems like the most common usage case or am I missunderstanding ClearML?

  
  
Posted one year ago

What are A and B? servers? where do you update the URI for the SDK to store to?

  
  
Posted one year ago

Alright, that s unfortunate. But thank you very much!

  
  
Posted one year ago

As far as ClearML system objects are concerned, they are overwritten and older objects are usually replaced. In come cases, they can still exist in the system, but are still associated with the task (so the same thing will apply to them as is done for all objects related to this task when you delete it, for example)

  
  
Posted one year ago

In that case, you will need to delete these in your code

  
  
Posted one year ago

Yes, from the documentation:

Creates a new Task (experiment) if:

    The Task never ran before. No Task with the same task_name and project_name is stored in ClearML Server.

    The Task has run before (the same task_name and project_name), and (a) it stored models and / or artifacts, or (b) its status is Published , or (c) it is Archived.

    A new Task is forced by calling Task.init with reuse_last_task_id=False.

Otherwise, the already initialized Task object for the same task_name and project_name is returned, or, when being executed remotely on a clearml-agent, the task returned is the existing task from the backend.

So if I start my script twice, the scalars/debug samples etc. are overriden. But what happens to the previous ones?

  
  
Posted one year ago

If you simply aborted the task and than re-run, overriding previous uploads, than the system will not delete these objects currently. However, this seems like a pretty edge-case to me - why would you do that on a regular basis?

  
  
Posted one year ago

I use this snippet:

Logger.current_logger().set_default_upload_destination(
    "
" # or 

)
  
  
Posted one year ago

Thank you very much!

  
  
Posted one year ago
972 Views
12 Answers
one year ago
one year ago
Tags