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
For Some Reason I Can'T Delete A Pipeline Projet, The Deletion Is Running Indefinitely. Is There A Way To Force The Deletion Of A Project Via The Apiclient?

For some reason I can't delete a pipeline projet, the deletion is running indefinitely. Is there a way to force the deletion of a project via the APIClient?

  
  
Posted 2 years ago
Votes Newest

Answers 23


Yes

  
  
Posted 2 years ago

After this passes - and you refresh the page even with the popup stuck in infinite loop - does the project get deleted? I think it might be a UI issue

  
  
Posted 2 years ago

This is from the console by the way

  
  
Posted 2 years ago

SmugSnake6 , can you open developer tools (F12) and see what happens when you try to delete this project?

  
  
Posted 2 years ago

What is the version of the backend?

  
  
Posted 2 years ago

My bad, should have asked you to go to Network as well to see if anything returns errors

  
  
Posted 2 years ago

WebApp: 1.7.0-232 • Server: 1.7.0-232 • API: 2.21

  
  
Posted 2 years ago

Yes sure, I will do that

  
  
Posted 2 years ago

Yep I'm dumb, it worked. However I've launch a couple of tasks with name ='custom pipeline logic', project ='examples' and I have to delete them manually. When I try through the UI it just waits forever

  
  
Posted 2 years ago

Hi SmugSnake6 , thank you for reporting this issue.
based on the console error you posted I believe we managed to find and fix the issue.

  
  
Posted 2 years ago

If I refresh, the project is still there 😕

  
  
Posted 2 years ago

I'm going to try deleting it using the APIClient

  
  
Posted 2 years ago

I'm not sure how I broke it 😅

  
  
Posted 2 years ago

Can reproduce on Pro SaaS deployment on Firefox 105.0.3

  
  
Posted 2 years ago

This is what I've found, and there's no error that seem to come up

  
  
Posted 2 years ago

Actually, I think you want blop now that you renamed the project (instead of custom pipeline logic )

  
  
Posted 2 years ago

can you please also report in github so we have an item to follow once the fix gets released?
https://github.com/allegroai/clearml-web/issues

  
  
Posted 2 years ago

It's a bit strange, my pipeline is called "custom pipeline logic" (which I renamed to "blop" later). This api_client.projects.get_all(name=exact_match_regex("pipeline_project/.pipelines/blop"), search_hidden=True) returns nothing and this api_client.projects.get_all(name=exact_match_regex("pipeline_project/.pipelines/custom pipeline logic"), search_hidden=True) returns nothing either

  
  
Posted 2 years ago

CostlyOstrich36 Here's what I get:
ERROR TypeError: Unexpected type 'undefined' in select operator, expected 'string' or 'function' rn ngrx-store.mjs:550 select ngrx-store.mjs:507 deleteEntitiesEffect base-delete-dialog.effects.ts:134 RxJS 13 stateSubscription ngrx-store.mjs:472 RxJS 24 next ngrx-store.mjs:206 dispatch ngrx-store.mjs:515 delete common-delete-dialog.component.ts:112 O common-delete-dialog.component.html:36 Angular 11 core.mjs:7640:22 handleError Angular ht ngrx-effects.mjs:171 RxJS 14 stateSubscription ngrx-store.mjs:472 RxJS 24 next ngrx-store.mjs:206 dispatch ngrx-store.mjs:515 delete common-delete-dialog.component.ts:112 O common-delete-dialog.component.html:36 Angular 11

  
  
Posted 2 years ago

Hi SmugSnake6 ! If you want to delete a project using the APIClient :
from clearml.backend_api.session.client import APIClient from clearml.backend_interface.util import exact_match_regex api_client = APIClient() id = api_client.projects.get_all(name=exact_match_regex("pipeline_project/.pipelines/pipeline_name"), search_hidden=True)[0].id api_client.projects.delete(project=id)Notice that tasks need to be archived

  
  
Posted 2 years ago

Try examples/.pipelines/custom pipeline logic instead of pipeline_project/.pipelines/custom pipeline logic

  
  
Posted 2 years ago

But I've got /opt/clearml/data/fileserver/examples/.pipelines/custom pipeline logic which has a bunch of folders of old tasks

  
  
Posted 2 years ago

Are you running a self hosted server?

  
  
Posted 2 years ago
1K Views
23 Answers
2 years ago
one year ago
Tags