# Discovery API not returning the latest runid

**URL:** <https://discourse.getdbt.com/t/discovery-api-not-returning-the-latest-runid/17409>\
**Category:** Help\
**Tags:** dbt-cloud, api\
**Created:** [December 18, 2024, 3:19pm UTC](https://discourse.getdbt.com/t/discovery-api-not-returning-the-latest-runid/17409 "2024-12-18T15:19:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![S1RHarrison](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/s1rharrison/32/5048_2.png) [@S1RHarrison](https://discourse.getdbt.com/u/S1RHarrison)\
**Post date:** [December 18, 2024, 3:19pm UTC](https://discourse.getdbt.com/t/discovery-api-not-returning-the-latest-runid/17409/1 "2024-12-18T15:19:16Z")

</div>

## The problem I’m having

The discovery API is not giving the model status as of the lastest Run. Its still showing me the status of 2 runs ago.

## The context of why I’m trying to do this

I’m using the discovery API to determine weather the parents of my exposures have all ran successfully.

## What I’ve already tried

I tried to re-run the job. Problem persists. When run a query on the API for the latest job, all the models have a status of null. It’s as if the metadata is not updating for my new job runs

---

<div class="post-metadata">

**Author:** ![joellabes](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/joellabes/32/3980_2.png) [@joellabes](https://discourse.getdbt.com/u/joellabes)\
**Post date:** [December 19, 2024, 2:31am UTC](https://discourse.getdbt.com/t/discovery-api-not-returning-the-latest-runid/17409/2 "2024-12-19T02:31:23Z")

</div>

I think you’ll be better off opening a ticket with the dbt Cloud support team ([support@getdbt.com](mailto:support@getdbt.com) or using the messaging system inside dbt Cloud) as they’ll be able to look at the specific runs and see what’s going on. Please also include the GraphQL query you’re submitting.
