Skip to content

Worker Service StopAsync func never called #22272

Open

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.affected-mediumThis issue impacts approximately half of our customersarea-hostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsbugThis issue describes a behavior which is not expected - a bug.severity-minorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions