Skip to content

.NET 10 breaks CoordinatedShutdown #7963

@Arkatufus

Description

@Arkatufus

Version Information
Version of Akka.NET? dev, v1.5
Which Akka.NET Modules? Akka core

Describe the bug
This .NET 10 breaking change will break CoordinatedShutdown: https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/10.0/sigterm-signal-handler

Right now, we're using AppDomain.ProcessExit event handler to detect CLR shutdown:

AppDomain.CurrentDomain.ProcessExit += exitTask;
system.WhenTerminated.ContinueWith(_ =>
{
AppDomain.CurrentDomain.ProcessExit -= exitTask;
});

Note that this bug only applies to application that uses Akka directly, this does not affect Akka.Hosting implementation because Akka.Hosting relies on application lifecycle signals to shut down Akka instead of hooking onto the CLR signal directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions