Azure / Azure/azure-functions-host

In what order are functions loaded?

Open
#6,062 4 comments 0 reactions 2 assignees Claimed by @v-bbalaiagar View on GitHub
needs-investigation
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

# Problem
I have two HTTP trigger functions with function name "Hello" and "Greet" each.
Hello and Greet functions are linked to route "{name}" and "greet" respectively.

After I start the server and send a HTTP request to `/api/greet` , I always see Hello function is called instead of Greet.
But then when I switch the function names, sending requests to `/api/greet` calls Greet function, which is what I expect.

I suspect that this is caused by in what order the functions are loaded, but I have no clue as to how they are loaded.

# Environment
* OS: Ubuntu 18.04 on WSL2
* azure-functions-core-tools: 3.0.2245

# Reproduction code
https://github.com/usco-otsuki/azure-functions-sandbox

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.