ci: validate macOS managed behavior on Ubuntu and stabilize shutdown
PR and Push Build/Test / build-and-test (pull_request) Blocked by required conditions
PR and Push Build/Test / portable-build-and-test (pull_request) Blocked by required conditions

This commit is contained in:
dh
2026-10-03 11:30:29 +02:00
parent bd35ebc4c8
commit 1164c26846
10 changed files with 201 additions and 72 deletions
@@ -32,14 +32,13 @@ public sealed class PyannoteDiarizationWarmupHostedService : IHostedService
public async Task StopAsync(CancellationToken cancellationToken)
{
var cancellation = startupCancellation;
var cancellation = Interlocked.Exchange(ref startupCancellation, null);
var task = startupTask;
if (cancellation is null || task is null)
{
return;
}
startupCancellation = null;
startupTask = null;
await cancellation.CancelAsync();
try