https://prefect.io logo
Title
j

jcozar

06/16/2021, 7:46 AM
Hi all! I am using tags for tasks and task concurrency. Is there a place where I can see the tags assigned to each running task? Thank you very much!
k

Kevin Kho

06/16/2021, 2:08 PM
Hey @jcozar, You’d have to use the GraphQL API to query this. Maybe something like this will get you what you need?
query {
  task (where: {task_runs: {state: {_eq: "Running"}}, tags: {_eq: "test"}}){
    	flow {
    	  name
    	}
      name
      tags
      task_runs {
        state
      }
    }
  }
j

jcozar

06/16/2021, 2:49 PM
Thank you, perfect! That works for me 🙂