Azure / Azure/azure-functions-host

Race on file watcher

Open
#1,505 1 comment 0 reactions 1 assignee Claimed by @mathewc View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.