Version Packages

This commit is contained in:
github-actions[bot]
2022-05-17 09:26:29 +00:00
parent 6a1f67ba49
commit 64a03bd946
449 changed files with 5696 additions and 2960 deletions
+29
View File
@@ -1,5 +1,34 @@
# @backstage/backend-tasks
## 0.3.1
### Patch Changes
- 73480846dd: `TaskScheduleDefinition` has been updated to also accept an options object containing duration information in the form of days, hours, seconds and so on. This allows for scheduling without importing `luxon`.
```diff
-import { Duration } from 'luxon';
// omitted other code
const schedule = env.scheduler.createScheduledTaskRunner({
- frequency: Duration.fromObject({ minutes: 10 }),
- timeout: Duration.fromObject({ minutes: 15 }),
+ frequency: { minutes: 10 },
+ timeout: { minutes: 15 },
// omitted other code
});
```
- cfd779a9bc: 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.
- ebbec677e1: Correctly set next run time for tasks
- Updated dependencies
- @backstage/backend-common@0.13.3
- @backstage/config@1.0.1
## 0.3.1-next.1
### Patch Changes
+5 -5
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-tasks",
"description": "Common distributed task management library for Backstage backends",
"version": "0.3.1-next.1",
"version": "0.3.1",
"main": "src/index.ts",
"types": "src/index.ts",
"private": false,
@@ -33,8 +33,8 @@
"start": "backstage-cli package start"
},
"dependencies": {
"@backstage/backend-common": "^0.13.3-next.2",
"@backstage/config": "^1.0.1-next.0",
"@backstage/backend-common": "^0.13.3",
"@backstage/config": "^1.0.1",
"@backstage/errors": "^1.0.0",
"@backstage/types": "^1.0.0",
"@types/luxon": "^2.0.4",
@@ -48,8 +48,8 @@
"zod": "^3.9.5"
},
"devDependencies": {
"@backstage/backend-test-utils": "^0.1.24-next.1",
"@backstage/cli": "^0.17.1-next.2",
"@backstage/backend-test-utils": "^0.1.24",
"@backstage/cli": "^0.17.1",
"@types/cron": "^1.7.3",
"wait-for-expect": "^3.0.2"
},