feat(processing): persist safe atomic operation history

This commit is contained in:
cesnimda
2026-10-28 15:54:37 +01:00
parent 5f261083f3
commit 1f87301ee9
17 changed files with 501 additions and 32 deletions
@@ -0,0 +1,20 @@
namespace JobTrackerApi.Models;
public enum OperationEventKind
{
Created, Claimed, StageChanged, Completed, RetryScheduled, Failed,
CancellationRequested, Cancelled, Retried, LeaseRecovered, Expired
}
public sealed class UserOperationEvent
{
public long Id { get; set; }
public Guid OperationId { get; set; }
public string OwnerUserId { get; set; } = string.Empty;
public DateTime AtUtc { get; set; }
public string Kind { get; set; } = string.Empty;
public string Status { get; set; } = string.Empty;
public string? Stage { get; set; }
public int Attempt { get; set; }
public string? FailureCode { get; set; }
}