Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Triggered while workers are restarting. #311

Open
ukandhallu opened this issue Oct 20, 2023 · 1 comment
Open

Function Triggered while workers are restarting. #311

ukandhallu opened this issue Oct 20, 2023 · 1 comment

Comments

@ukandhallu
Copy link

hi,
We are running AZ functions with KEDA in aks.
we have 2 function which triggered by EventHub and Http Trigger respectively.

when a function is restarted for any underlying cause, it takes few secs before it is initialized. within that few secs window, we have observed for following:

  1. eventhub triggers tried to execute the function for 100s of events. but failed with following exception:
    ---> System.InvalidOperationException: Did not find any initialized language workers
    this errors results in error processing 100 of events in those few seconds.

  2. http trigger also has smilar issues while function is restarting, hence resulting in 500 errors.
    Executing 'Functions.function1I' (Reason='This function was programmatically called via the host APIs.', Id=9934f214-71c1-4747-b446-142c)
    Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.function1
    ---> System.InvalidOperationException: Did not find any initialized language workers
    Executed 'Functions.function1' (Failed, Id=9934f214-71c1-4747-b446-142c, Duration=1ms)

we understand why there are no initialized language worker, its due to functions are initiating. how to precent function trigger while the function is initializing?

@sajidhawk
Copy link

sajidhawk commented Oct 30, 2023

@soninaren and @fabiocav can u please look into these behaviors of function, and advise. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants