dotnet / dotnet/aspnetcore

Worker Service StopAsync func never called

Open
#22,272 62 comments 5 reactions 0 assignees View on GitHub
affected-medium area-hosting area-networking bug External Needs: Attention :wave: severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Describe the bug
I published a worker service to azure app service. when I stop the web job the worker service StopAsync is not called.

Also When we publish an update to Worker Service the StopAync not called either.

So my question is when will StopAsync will be called?

### To Reproduce
1. Publish a worker service to Azure app service( Shared D1 Plan )
2. From Azure web app > webjobs section - > stop the webjob.
3. StopAysnc is not called

### Further technical details
- .Net Core: 3.1.300

- Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64

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.