From 2df9042efb8d3c1aff1de9e4a1c9c3354ea865b7 Mon Sep 17 00:00:00 2001 From: singularitti Date: Sat, 20 Jan 2024 23:43:32 -0500 Subject: [PATCH] Switch `JobStatus` from `Enum` to sum types --- EasyJobsBase/src/jobs.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EasyJobsBase/src/jobs.jl b/EasyJobsBase/src/jobs.jl index 775411c..bcf4b00 100644 --- a/EasyJobsBase/src/jobs.jl +++ b/EasyJobsBase/src/jobs.jl @@ -1,11 +1,12 @@ using Dates: DateTime, now using UUIDs: UUID, uuid1 +using SumTypes: @sum_type using Thinkers: Think export Job, IndependentJob, ConditionalJob, ArgDependentJob -@enum JobStatus begin +@sum_type JobStatus begin PENDING RUNNING SUCCEEDED