pikachuev commented on PR #45634: URL: https://github.com/apache/airflow/pull/45634#issuecomment-2595680976
Hi @ginone , great proposal and change. We use in our Airflow environment an own helper and retrieve job_ids by names. We figure out that in our case the payload from dbt Cloud REST API is quite big to retrieve it for every dbt cloud job triggering. To reduce payload size we additionally filter rest api calls by filtering project name in API call, for example: ` project_url = ( f"{base_url_v3}accounts/{dbt_cloud_account_id}/projects/" f"?account_id={dbt_cloud_account_id}" **f"&name__icontains={project_name}**" )` or ` job_url = ( f"{base_url_v2}accounts/{dbt_cloud_account_id}/jobs/" f"?account_id={dbt_cloud_account_id}" f"&project_id={project_id}" **f"&name__icontains={job_name}"** ) ` What do you think about such improvement? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org