From ecd5f5d13936dd097b12766cb95a568ad5b073a9 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Tue, 27 Oct 2026 23:04:59 +1000 Subject: feat: lots of stuff --- src/marlin.core/models/ISourceSecretStore.cs | 1 + src/marlin.core/models/JobStatus.cs | 10 ++++++++++ src/marlin.core/models/plan/ExecutionCommand.cs | 7 ++++++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/marlin.core/models/JobStatus.cs (limited to 'src/marlin.core/models') diff --git a/src/marlin.core/models/ISourceSecretStore.cs b/src/marlin.core/models/ISourceSecretStore.cs index 0d5053e..2534d62 100644 --- a/src/marlin.core/models/ISourceSecretStore.cs +++ b/src/marlin.core/models/ISourceSecretStore.cs @@ -6,4 +6,5 @@ using core.models; public interface ISourceSecretStore { Task GetAsync(Guid id, CancellationToken ct); + //Task> ListAsync(CancellationToken ct); } \ No newline at end of file diff --git a/src/marlin.core/models/JobStatus.cs b/src/marlin.core/models/JobStatus.cs new file mode 100644 index 0000000..d606eb0 --- /dev/null +++ b/src/marlin.core/models/JobStatus.cs @@ -0,0 +1,10 @@ +namespace marlin.core.models; + +public enum JobStatus +{ + Pending, + Active, + Cancelled, + Success, + Failed +} \ No newline at end of file diff --git a/src/marlin.core/models/plan/ExecutionCommand.cs b/src/marlin.core/models/plan/ExecutionCommand.cs index 124da63..4bf19c3 100644 --- a/src/marlin.core/models/plan/ExecutionCommand.cs +++ b/src/marlin.core/models/plan/ExecutionCommand.cs @@ -10,6 +10,11 @@ public class ExecutionCommand public required CommandRole Role; public required bool Deferred; public CommandResultSelector? ResultSelector; - + public required FailBehavior FailBehavior; + + public override string ToString() + { + return $"Id={Id}, Name={Name}, Command={Command}, Role={Role}, Deferred={Deferred}, ResultSelector={ResultSelector}, FailBehavior={FailBehavior}"; + } } \ No newline at end of file -- cgit v1.3.1