MCPcopy
hub / github.com/treeverse/dvc / clear

Method clear

dvc/repo/experiments/queue/base.py:167–173  ·  view source on GitHub ↗

Remove all entries from the queue.

(self, **kwargs)

Source from the content-addressed store, hash-verified

165 return name_to_remove
166
167 def clear(self, **kwargs) -> list[str]:
168 """Remove all entries from the queue."""
169 stash_revs = self.stash.stash_revs
170 name_to_remove = list(stash_revs)
171 self.stash.remove_revs(list(stash_revs.values()))
172
173 return name_to_remove
174
175 def status(self) -> list[dict[str, Any]]:
176 """Show the status of exp tasks in queue"""

Callers 15

removeMethod · 0.95
runMethod · 0.45
clean_reposFunction · 0.45
gcFunction · 0.45
preserve_workspaceMethod · 0.45
removeFunction · 0.45
update_importFunction · 0.45
test_import_fileMethod · 0.45
test_import_dirMethod · 0.45
testMethod · 0.45
test_pull_00_prefixMethod · 0.45

Calls 1

remove_revsMethod · 0.80

Tested by 7

test_import_fileMethod · 0.36
test_import_dirMethod · 0.36
testMethod · 0.36
test_pull_00_prefixMethod · 0.36
test_dirMethod · 0.36