19 lines
671 B
Plaintext
19 lines
671 B
Plaintext
-- 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)
|
|
ressources JobRessources
|
|
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
|