This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/models/jobsystem.model

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