mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 11:39:12 +00:00
limit dbt runs to successful state (#10209)
Co-authored-by: Onkar Ravgan <onkar.10r@gmail.com>
This commit is contained in:
parent
2ba6211b58
commit
7ae091318e
@ -175,7 +175,7 @@ def _(config: DbtCloudConfig): # pylint: disable=too-many-locals
|
||||
logger.debug(
|
||||
"Requesting [dbt_catalog], [dbt_manifest] and [dbt_run_results] data"
|
||||
)
|
||||
params_data = {"order_by": "-finished_at", "limit": "1"}
|
||||
params_data = {"order_by": "-finished_at", "limit": "1", "status": "10"}
|
||||
if project_id:
|
||||
params_data["project_id"] = project_id
|
||||
response = client.get(f"/accounts/{account_id}/runs", data=params_data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user