Upgrading Microsoft.Azure.Functions.Worker.Sdk from 1.15.0 to 1.16.2 breaks my runtime: No job functions found #2106
Replies: 3 comments 3 replies
-
I experience the same problem. My function declaration looks as follows:
|
Beta Was this translation helpful? Give feedback.
-
Updating Worker sdk from 1.16.4 - > 1.17.0 [2024-02-12T14:55:10.387Z] Loading functions metadata var host = new HostBuilder() My one function is in the nugetpackage middleware |
Beta Was this translation helpful? Give feedback.
-
Do you have a |
Beta Was this translation helpful? Give feedback.
-
Running in debug on my dev machine with
Azure Functions Core Tools
Core Tools Version: 4.0.5455 Commit hash: N/A (64-bit)
Function Runtime Version: 4.27.5.21554
Results with 1.15.0 I get:
[2023-11-29T11:00:01.005Z] Loading functions metadata
[2023-11-29T11:00:01.012Z] Reading functions metadata (Host)
[2023-11-29T11:00:01.020Z] 0 functions found (Host)
[2023-11-29T11:00:01.059Z] Reading functions metadata (Custom)
[2023-11-29T11:00:01.174Z] 2 functions found (Custom)
[2023-11-29T11:00:01.192Z] 5 functions loaded
...but with 1.16.2 I get:
[2023-11-29T10:55:59.472Z] Loading functions metadata
[2023-11-29T10:55:59.475Z] Reading functions metadata (Host)
[2023-11-29T10:55:59.479Z] 0 functions found (Host)
[2023-11-29T10:55:59.481Z] Reading functions metadata (Custom)
[2023-11-29T10:55:59.482Z] 1 functions found (Custom)
[2023-11-29T10:55:59.485Z] 0 functions loaded
[2023-11-29T10:55:59.512Z] Generating 0 job function(s)
[2023-11-29T10:55:59.547Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
I tried up/downgrading several times. Results are very persistent. Is there anything else I need to do ?
this is my main:
And this is my function handler signature:
... etc ...
Beta Was this translation helpful? Give feedback.
All reactions