-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathBatchJob.cs
More file actions
47 lines (40 loc) · 1.41 KB
/
BatchJob.cs
File metadata and controls
47 lines (40 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace MCPForUnity.Editor.Tools
{
public enum JobStatus { Queued, Running, Done, Failed, Cancelled }
/// <summary>
/// Represents a queued batch of MCP commands with ticket tracking.
/// </summary>
public class BatchJob
{
public string Ticket { get; set; }
public string Agent { get; set; }
public string Label { get; set; }
public bool Atomic { get; set; }
public ExecutionTier Tier { get; set; }
public bool CausesDomainReload { get; set; }
public JobStatus Status { get; set; } = JobStatus.Queued;
public List<BatchCommand> Commands { get; set; } = new();
public List<object> Results { get; set; } = new();
public int CurrentIndex { get; set; }
public string Error { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime? CompletedAt { get; set; }
public int UndoGroup { get; set; } = -1;
}
public class BatchCommand
{
public string Tool { get; set; }
public JObject Params { get; set; }
public ExecutionTier Tier { get; set; }
public bool CausesDomainReload { get; set; }
}
public class AgentStats
{
public int Active { get; set; }
public int Queued { get; set; }
public int Completed { get; set; }
}
}