change to using a scope parameter instead
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -2,4 +2,8 @@
|
||||
'@backstage/backend-tasks': patch
|
||||
---
|
||||
|
||||
The task scheduler now has two new methods: `scheduleLocalTask` and `createScheduledLocalTaskRunner`, which can be used to perform local-only recurring tasks. This can be used to replace usages of `runPeriodically` helpers.
|
||||
Scheduled tasks now have an optional `scope` field. If unset, or having the
|
||||
value `'global'`, the old behavior with cross-worker locking is retained. If
|
||||
having the value `'local'`, there is no coordination across workers and the
|
||||
behavior is more like `setInterval`. This can be used to replace usages of
|
||||
`runPeriodically` helpers.
|
||||
|
||||
Reference in New Issue
Block a user