Hi, Even we are using docker based solution to run DBT in Production ,It runs fine untill we rebuild the docker image and do the deployment,after deployment first run of DBT always get stuck and there is no Output messge. Are you facing issue after deployment? However if I kill first run after deployment consecutive runs are all good.
@sudhirnune We are using solution given in below link with some change.
We build the docker from Devops CD pipeline and deploy to function app every day. This function app is executed from ADF pipeline using HTTp trigger. I am not Function app person but trying to fix the first run after deployment. There is no error return from From function app or DBT but first run never get finished. the log say something like below . Now m not sure where its going wrong…When I cancel the run and start again it works fine… but every first run after deployment is stuck. The DBT Command I am running is dbt run -m +XXXX +YYY+
When I check DBT Log I can see it has successfully finished few model and suddenly DBt worker stops with Below message…:
Singleton lock renewal failed for blob ‘bi-dbt-prod-fa/host’ with error code 409: LeaseIdMismatchWithLeaseOperation. The last successful renewal completed at 0001-01-01T00:00:00Z (-2147483648 milliseconds ago) with a duration of 0 milliseconds. The lease period was 15000 milliseconds.
Failed to renew host lock lease: Another host has acquired the lease. The last successful renewal completed at 2021-07-06T08:08:49.603Z (12016 milliseconds ago) with a duration of 12 milliseconds.
Any reason why are you using both Docker and Azure Function ? If you are using ADF you can Run a docker image on a ACI, using WEB Activity of ADF. Can you give it a try ?