limit dbt runs to successful state (#10209)

Co-authored-by: Onkar Ravgan <onkar.10r@gmail.com>
This commit is contained in:
Stéphane Sol 2023-02-18 15:49:01 -06:00 committed by GitHub
parent 2ba6211b58
commit 7ae091318e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)