change to nested object for cron

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-03-08 16:43:44 +01:00
parent ae2ed04076
commit 60df8a58b4
10 changed files with 44 additions and 41 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/backend-tasks': patch
---
Add support for cron syntax to configure task frequency - `TaskScheduleDefinition.frequency` can now be both a `Duration` and a string, where the latter is expected to be on standard cron format (e.g. `'0 */2 * * *'`).
Add support for cron syntax to configure task frequency - `TaskScheduleDefinition.frequency` can now be both a `Duration` and an object on the form `{ cron: string }`, where the latter is expected to be on standard crontab format (e.g. `'0 */2 * * *'`).