Generate tasks list from ClearML, limited for spesific username
and task last_changed
timestamp
--username
: ClearML full username, e.gLion S
--delete_threshold_days
: limit query to tasks older thendelete_threshold_days
days
python pull_clearml_tasks.py --username Lion S --delete_threshold_days 180
{
"task_id": "18342f1019c04630za1a14029bec791",
"task_name": "docfm_v7_safe_32gpu80g_11Jan24_6w",
"task_url": "https://<clearml_url>:8080/projects/1c02916ceba84b15a1ecb6686d93a4d1/experiments/18342f1019c04630848ec14029bec791",
"user": "a33e22b207a1d113ca5cbfddd5d94b9d8f2",
"status": "stopped",
"created": "2024-01-11T13:48:56.559000+00:00",
"last_changed": "2024-01-11T19:07:58.823000+00:00",
"project_id": "1c02916cebaq1vg5a1ecb6686d93a4d1",
"project_name": "FoundationModelsDocuments"
},
- Run from existing ClearML enviornemt (
~/clearml.conf
is already configured) - Set
delete_threshold_days
- pull all tasks older thendelete_threshold_days
Run the delete_clearml_tasks
and point to tasks json file
--tasks_json
: full path to tasks json list
python delete_clearml_tasks.py --tasks_json <full_path_to_tasks_json>