Address resume endpoint review feedback

Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-09-04 22:37:05 +00:00 committed by GitHub
parent 016ffe5d8d
commit e7debff3f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,12 @@ public class PauseRequest
public string? Reason { get; set; }
}
/// <summary>Body for the resume endpoint.</summary>
[Obsolete("Use FastEndpoints.EmptyRequest instead.")]
public class ResumeRequest
{
}
/// <summary>Body for the operator-force drain endpoint.</summary>
public class ForceDrainRequest
{

View file

@ -20,7 +20,7 @@ internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaE
ConfigurePermissions(PermissionNames.ManageWorkflowRuntime);
}
public override async Task HandleAsync(EmptyRequest req, CancellationToken ct)
public override async Task HandleAsync(EmptyRequest _, CancellationToken ct)
{
var status = admin.GetStatus();
if ((status.State.Reason & QuiescenceReason.Drain) != 0)