From a6b2c529544ee17b41a6d1b4c654c8306864002b Mon Sep 17 00:00:00 2001 From: Joshua Garde Date: Thu, 17 Aug 2023 18:15:57 -0700 Subject: [PATCH] Initial commit - v1.0.0 --- .gitignore | 1 + job.json | 43 +++++++++++++++++++++++++++++++++++++++++++ jobset.json | 20 ++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 job.json create mode 100644 jobset.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/job.json b/job.json new file mode 100644 index 0000000..0cc6b9d --- /dev/null +++ b/job.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "swodlr-job", + "type": "object", + "properties": { + "product_id": { + "type": "string" + }, + "job_id": { + "type": "string" + }, + "job_status": { + "type": "string" + }, + "stage": { + "type": "string" + }, + "granules": { + "type": "array", + "items": { + "type": "string" + } + }, + "errors": { + "type": "array", + "items": { + "type": "string" + } + }, + "traceback": { + "type": "string" + }, + "metadata": { + "type": "object" + } + }, + "additionalProperties": false, + "required": [ + "product_id", + "job_status", + "stage" + ] +} diff --git a/jobset.json b/jobset.json new file mode 100644 index 0000000..56a0bf3 --- /dev/null +++ b/jobset.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "swodlr-jobset", + "type": "object", + "properties": { + "jobs": { + "type": "array", + "items": { + "$ref": "swodlr-job#" + } + }, + "waiting": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "jobs" + ] +}