Trouble running Function app locally from Visual studio 2019 and 2022 Preview.
Replication steps:
- Create new Azure Functions application
- Select .NET5 (Isolated)
- Create TimerTrigger using default values for storage account and schedule
- Run application and wait for first execution
- Stop application/debugging, and wait for at least 10 minutes before running application again
- Function will trigger immediately (UnscheduledInvocationReason: IsPastDue), but Visual Studio hangs
Output log:
Azure Functions Core Tools
Core Tools Version: 3.0.3442 Commit hash: 6bfab24b2743f8421475d996402c398d2fe4a9e0 (64-bit)
Function Runtime Version: 3.0.15417.0
Functions:
Function1: TimerTrigger
For detailed output, run func with --verbose flag.
[2021-08-27T08:01:16.732Z] Executing 'Functions.Function1' (Reason='Timer fired at 2021-08-27T10:01:16.7183609+02:00', Id=3ba68c0d-de4b-470d-a700-704a6e256eca)
[2021-08-27T08:01:16.734Z] Trigger Details: UnscheduledInvocationReason: IsPastDue, OriginalSchedule: 2021-08-27T09:00:00.0000000+02:00
[2021-08-27T08:02:16.565Z] Starting worker process failed
[2021-08-27T08:02:16.569Z] The operation has timed out.
[2021-08-27T08:03:16.606Z] Starting worker process failed
[2021-08-27T08:03:16.611Z] The operation has timed out.
[2021-08-27T08:04:16.635Z] Starting worker process failed
[2021-08-27T08:04:16.638Z] The operation has timed out.
[2021-08-27T08:04:16.655Z] Exceeded language worker restart retry count for runtime:dotnet-isolated. Shutting down and proactively recycling the Functions Host to recover
Same issue when running as docker container, but no issue when running function using "func start".
Regards,
Rudi