From 9acdc96b6130396ee9fffd03f0fa00d0599353ab Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Wed, 11 Jan 2023 11:31:57 +0100 Subject: [PATCH] fix(specs): move lastRun and nextRun to task.trigger (#1228) --- specs/ingestion/common/schemas/task.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/specs/ingestion/common/schemas/task.yml b/specs/ingestion/common/schemas/task.yml index 740fdd6374..774ac89f99 100644 --- a/specs/ingestion/common/schemas/task.yml +++ b/specs/ingestion/common/schemas/task.yml @@ -18,10 +18,6 @@ Task: # lastCursorValue: # type: integer # format: int64 - lastRun: - type: string - nextRun: - type: string createdAt: $ref: './common.yml#/createdAt' updatedAt: @@ -102,7 +98,13 @@ Trigger: properties: type: $ref: '#/TriggerType' - frequency: + cron: + type: string + lastRun: + description: The last time the task ran (`scheduled` or `on-demand`). + type: string + nextRun: + description: The next scheduled run for the task (`scheduled`). type: string required: - type