From c81bc149a924fdee9ed19d379c066609c5e9901f Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Thu, 30 Nov 2023 00:19:09 +0000 Subject: [PATCH] chore(model): add model table for jobs --- models/jobsystem.model | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/models/jobsystem.model b/models/jobsystem.model index bb7bd8e08..3b5690da1 100644 --- a/models/jobsystem.model +++ b/models/jobsystem.model @@ -1,5 +1,17 @@ --- Jobs to be fetched and distributed to the workers by the scheduler +-- Metadata of jobs to be fetched by the scheduler and to be +-- assigned to the workers -- part of the *new* job system JobMeta - occurrence JobOccurrence -- when should the job be executed? (Possibly recurring) + occurrence JobOccurrence -- When should the job be executed? + -- (Possibly recurring) + deriving Eq Ord Show Generic + +-- Actual job to be fetched and executed by the workers +-- part of the *new* job system +JobData + meta JobMetaId + content Value -- JSON representation of the job content + -- (parsing as generic Aeson Value + -- instead of Job for compatibility with + -- legacy jobs) deriving Eq Ord Show Generic