Closed yovelcohen closed 4 months ago
Hi @yovelcohen
I followed the repro steps listed using the provided requirements.txt and dockerfile content, but didn't have the same issue. I tried with HTTP triggers and using a Durable Functions app.
I did need to add the AzureWebJobsStorage
environment variable to my Dockerfile. Can you try adding that and see if that fixes the issue?
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
AzureFunctionsJobHost__Logging__Console__IsEnabled=true \
AzureWebJobsFeatureFlags=EnableWorkerIndexing \
AzureWebJobsStorage=...
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Investigative information
Please provide the following:
Repro steps
Provide the steps required to reproduce the problem:
docker run -it --rm -e -p 8080:80 <imgtag>
Expected behavior
Provide a description of the expected behavior.
all functions should be discovered
Actual behavior
No Job-Functions found, but when I ran the function using
func start
all of the functions were recognized and working when I called them locally.Contents of the requirements.txt file:
Provide the requirements.txt file to help us find out module-related issues.
Related information
Provide any related information
My docker file:
I also tried following the suggestions such as adding different combinations of environment variables in other similar issues such as: https://github.com/Azure/azure-functions-python-worker/issues/1384 https://stackoverflow.com/questions/75519932/azure-function-python-model-2-in-docker-container
The only difference for me from those is that I'm using Python 3.11 I guess?