Skip to content

Commit

Permalink
Switch JobStatus from Enum to sum types
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Jan 21, 2024
1 parent c27ffd4 commit 2df9042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EasyJobsBase/src/jobs.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2df9042

Please sign in to comment.