Dimitris Stafylarakis
07/15/2022, 8:37 PMdagster-dbt
and SDAs and I bumped into an issue. When I attempt to materialize multiple assets and their corresponding dbt run ends at approx the same time, the returned output is correct for only one of the assets and incorrect for the rest. The reason is that the returned output is read from the same file run_results.json
. In my partiicular case all these assets are materialized as views in dbt so this issue is very likely to occur. I guess one way to contain this is using tag_concurrency_limits
, other/better suggestions are welcome 😄owen
07/15/2022, 8:47 PMowen
07/15/2022, 8:58 PMtarget_path
configuration option in your dbt project, but I can't see a great way of getting that to work, so tag_concurrency_limits might be the way to goDimitris Stafylarakis
07/18/2022, 7:31 AMthat makes sense -- are these completely separate asset jobs, or just different runs of the same asset jobs that are getting kicked off at the same time?the latter, I’m just selecting a bunch of assets and materializing them simultaneously. I’d say that using the dbt cli for concurrent runs feels rather shaky; any two or more dbt jobs that might finish at the same time will face the same problem. Since I’m running dagster on k8s I’ll try using the k8s_job_executor, this should offer better isolation.
owen
07/18/2022, 5:08 PMDimitris Stafylarakis
07/18/2022, 5:09 PMowen
07/18/2022, 5:10 PMowen
07/18/2022, 5:10 PMDimitris Stafylarakis
07/18/2022, 5:15 PMowen
07/18/2022, 5:16 PMDimitris Stafylarakis
07/18/2022, 6:11 PMowen
07/18/2022, 6:11 PMDimitris Stafylarakis
07/19/2022, 12:35 PM