projectkudu / kudu

Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update synctriggers for Function app deployment

ankitkumarr opened this issue · comments

Problem
We recently update Kudu to call synctirggers through Functions runtime during a deployment. This brought up some concerns. One of them being if kudu calls sync triggers before Runtime has picked up the new payload, Runtime will synctriggers on the old payload.

Proposed Solution
The change proposed by Kranthi is to make Kudu call SetTriggers with an empty payload after PackageName.txt is updated. Kudu should then call SyncTriggers on the Functions Runtime 1 minute after this, in order to allow the main site’s worker process to detect that a new zip is available and go through a shutdown.

@ankitkumarr thanks for tracking this!

Closed by 86918e0