[backend] Don't reorder properties with [ProtoContract] or [ProtoMember] attributes

This commit is contained in:
Laura Hausmann 2024-02-06 21:51:36 +01:00
parent f099d6ad41
commit b0cae8a6f2
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 252 additions and 8 deletions

View file

@ -165,14 +165,13 @@ public abstract class Job {
Failed
}
[ProtoMember(4)] public DateTime? DelayedUntil;
[ProtoMember(10)] public string? ExceptionMessage;
[ProtoMember(11)] public string? ExceptionSource;
[ProtoMember(3)] public DateTime? FinishedAt;
[ProtoMember(1)] public DateTime QueuedAt = DateTime.Now;
[ProtoMember(2)] public DateTime? StartedAt;
[ProtoMember(3)] public DateTime? FinishedAt;
[ProtoMember(4)] public DateTime? DelayedUntil;
[ProtoMember(10)] public string? ExceptionMessage;
[ProtoMember(11)] public string? ExceptionSource;
public JobStatus Status = JobStatus.Queued;
public long Duration => (long)((FinishedAt ?? DateTime.Now) - (StartedAt ?? QueuedAt)).TotalMilliseconds;

File diff suppressed because one or more lines are too long