Daniel Komisar

    Daniel Komisar

    7 months ago
    I am having trouble seeing task runs by task in Prefect Cloud. Here’s an example https://cloud.prefect.io/anaconda/task/b3cfcc12-9ba8-4960-8dee-7c677c23b477?runs, all of these pages that I’ve looked at are empty. I’ve tested this through the API and I can’t get it to return anything when using a
    where
    filter with a task id, but it works when I query by flow run id.
    Kevin Kho

    Kevin Kho

    7 months ago
    So you can see flow runs but not task runs?
    Daniel Komisar

    Daniel Komisar

    7 months ago
    I can see task runs if I search for them by flow run id. But if I search for them by task id I get an empty response, not an error. I’m also getting the same results when using the web UI.
    Kevin Kho

    Kevin Kho

    7 months ago
    Can you show me the query you are using?
    Daniel Komisar

    Daniel Komisar

    7 months ago
    Sure, one moment. I also just noticed that if you open devtools, load the task overview page and then click on runs you’ll see an uncaught javascript exception
    Kevin Kho

    Kevin Kho

    7 months ago
    What is the exception?
    Daniel Komisar

    Daniel Komisar

    7 months ago
    vue-router.esm.js:2065 Uncaught (in promise) Error: Redirected when going from “/task/cbdb530d-a822-41f5-846b-88d320d27b5c” to “/task/cbdb530d-a822-41f5-846b-88d320d27b5c” via a navigation guard. at $t (vue-router.esm.js:2065:15) at _t (vue-router.esm.js:2024:10) at vue-router.esm.js:2371:17 at router.js:518:14 at v (vue-router.esm.js:2357:7) at r (vue-router.esm.js:2004:9) at gt (vue-router.esm.js:2012:3) at e.Pt.confirmTransition (vue-router.esm.js:2387:3) at e.Pt.transitionTo (vue-router.esm.js:2260:8) at e.replace (vue-router.esm.js:2613:10)
    Here is a query that works:
    query {
    	task_run(where: {flow_run: {id: {_eq: "9783352a-a6d0-48a3-b0a0-19fd539df89d"}}}) {
    		task {
          name
        }
      }
    }
    Here is one that doesn’t:
    query {
    	task_run(where: {task: {id: {_eq: "dcb8dae1-8b8b-431e-a739-5b29e53399af"}}}) {
        	id
      }
    }
    Kevin Kho

    Kevin Kho

    7 months ago
    Testing some stuff with the queries. I see similar behavior so I don’t think it’s related to the UI pages not being able to load. Will ping someone from the UI team about that
    I am guessing this has to do with versions. Is this task id the most recent version of the task?
    I do see the same error though on the browser console too even if I am not expecting anything on the page so I don’t think it’s related. You can see the version in this tile and if you click the version it will take you to the flow page. Are you in an archived version when you do that?
    Task ids are also versioned and you get a new one with each registration. If I use an old version for my query, I don’t see any runs because I lost them due to retention but if I use a right version I see some stuff
    Daniel Komisar

    Daniel Komisar

    7 months ago
    Ah okay I didn’t realize the task ids were versioned. Is there any way to search for old version ids?
    are flow ids also versioned?
    Kevin Kho

    Kevin Kho

    7 months ago
    You also might be limiting the time frame for that page. Default is 24 hours I think
    Daniel Komisar

    Daniel Komisar

    7 months ago
    I tried all the range limits. I think it’s because we redeployed our flows and the ids changed.
    Kevin Kho

    Kevin Kho

    7 months ago
    Maybe a query like this will help you find them:
    query {
    	flow(where: {name: {_eq: "ecs_test"}}) {
        tasks(where: {name: {_eq: "abc"}}) {
          id
          name
        }
    	}
    }
    ?
    Daniel Komisar

    Daniel Komisar

    7 months ago
    Yes that’s along the lines of what I was thinking. Are ids in general versioned like this for everything?
    Kevin Kho

    Kevin Kho

    7 months ago
    I can’t think of anything at the moment beyond flows and tasks because flow runs and task runs are 1:1 with ids of course
    Daniel Komisar

    Daniel Komisar

    7 months ago
    thanks