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
Hello, I'M Using The Clearml Python Api, How Can I Get The Total Runtime Of A Task In Python? Thanks For Your Incredible Work !

Hello,
I'm using the clearml python api, how can I get the total runtime of a task in python?
Thanks for your incredible work !

  
  
Posted 16 days ago
Votes Newest

Answers 3


You're right. You have the started and and status in task.data so you can go through there and calculate the current runtime.

  
  
Posted 13 days ago

when I print task.data.runtime I have this
the runtime is {'ide': 'VSCode', 'CLEARML VERSION': 'clearml-2.0.0', 'CLI': 'train.py', 'progress': '100', 'platform': 'linux', 'python_version': '3.8.20', 'python_exec': '/opt/conda/envs/myenv/bin/python', 'OS': 'Linux-5.15.0-100-generic-x86_64-with-glibc2.17', 'processor': 'x86_64', 'cpu_cores': 16, 'memory_gb': 62.5, 'hostname': 'hostname', 'gpu_count': 2, 'gpu_type': 'NVIDIA TITAN V, ', 'gpu_memory': '12GB, 24GB', 'gpu_driver_version': '545.29.06', 'gpu_driver_cuda_version': '12.3'}
I don't see the time spent on the task

  
  
Posted 13 days ago

Hi @<1638349756755349504:profile|MistakenTurtle88> , you can find it in task.data.runtime

  
  
Posted 14 days ago
87 Views
3 Answers
16 days ago
12 days ago
Tags