https://prefect.io logo
Title
d

Deepanshu Aggarwal

11/15/2022, 6:12 AM
the concurrency limit shows 181 active tasks for the tag but when i try to find the tasks by id ( after inspecting this tag ) these tasks are not found.. how do i fix this ?
k

Kalise Richmond

11/15/2022, 9:45 PM
Hi @Deepanshu Aggarwal, are you using the tag name or the tag id to run
prefect concurrency-limit inspect
command? Also which version of Prefect are you using?
I was able to see the running tasks when I used the cli command by passing the tag name
d

Deepanshu Aggarwal

11/16/2022, 4:39 AM
tag name to inspect
i can see the list of task ids by using the inspect command but when i try to use delete api to delete all those tasks it gives me 404 basically all these task were generated by a flow run which got killed after a while but the task still remain in the list here
how do i clean that
k

Kalise Richmond

11/17/2022, 10:03 PM
Hey @Deepanshu Aggarwal , I'm not sure if there is a CLI command for deleting task runs but I do see our API command https://docs.prefect.io/api-ref/rest-api/#/Task%20Runs
d

Deepanshu Aggarwal

11/18/2022, 6:47 AM
how do i use any task api when it says task not found