Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.91k stars 437 forks source link

Race on file watcher #1505

Open MikeStall opened 7 years ago

MikeStall commented 7 years ago

We appear to have a race where:

  1. We FTP up the files. After Function.json , but before the corresponding csx,
  2. our File Watcher triggers
  3. We scan the dir, and csx is missing. So we throw this error.

We throw here: https://github.com/Azure/azure-webjobs-sdk-script/blob/d51608db9254bf1953ebf03ccfb2bfd2d6573a9c/src/WebJobs.Script/Host/ScriptHost.cs#L963

The customer works around this by uploading twice.

MikeStall commented 7 years ago

Customer hit this: https://icm.ad.msft.net/imp/v3/incidents/details/37331477/home