mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-25 04:52:15 +00:00
34 lines
886 B
C#
34 lines
886 B
C#
|
|
namespace AIStudio.Tools.AIJobs;
|
||
|
|
|
||
|
|
public sealed record AIJobSnapshot
|
||
|
|
{
|
||
|
|
public Guid JobId { get; init; }
|
||
|
|
|
||
|
|
public AIJobKind Kind { get; init; }
|
||
|
|
|
||
|
|
public Guid SubjectId { get; init; }
|
||
|
|
|
||
|
|
public Guid? ParentJobId { get; init; }
|
||
|
|
|
||
|
|
public Guid RootJobId { get; init; }
|
||
|
|
|
||
|
|
public int Priority { get; init; }
|
||
|
|
|
||
|
|
public bool IsForeground { get; init; }
|
||
|
|
|
||
|
|
public AIJobSchedulingClass SchedulingClass { get; init; }
|
||
|
|
|
||
|
|
public AIJobStatus Status { get; init; }
|
||
|
|
|
||
|
|
public string Title { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
public string ProviderId { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
public string ModelId { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
public DateTimeOffset UpdatedAt { get; init; }
|
||
|
|
|
||
|
|
public string ErrorMessage { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
public bool IsActive => this.Status is AIJobStatus.QUEUED or AIJobStatus.WAITING_FOR_REMOTE or AIJobStatus.RUNNING;
|
||
|
|
}
|