From 3fad4ed40a7a710d67fd10f4794d02f09bd6f1fc Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 10 Jan 2023 15:13:01 +0100 Subject: [PATCH] backend-tasks: update API report + changeset for forPlugin addition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Co-authored-by: blam Co-authored-by: Johan Haals Signed-off-by: Patrik Oldsberg --- .changeset/hungry-weeks-flash.md | 5 +++++ packages/backend-tasks/api-report.md | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 .changeset/hungry-weeks-flash.md diff --git a/.changeset/hungry-weeks-flash.md b/.changeset/hungry-weeks-flash.md new file mode 100644 index 0000000000..19cb6cede8 --- /dev/null +++ b/.changeset/hungry-weeks-flash.md @@ -0,0 +1,5 @@ +--- +'@backstage/backend-tasks': patch +--- + +Added a new static `TaskScheduler.forPlugin` method. diff --git a/packages/backend-tasks/api-report.md b/packages/backend-tasks/api-report.md index f7b4782263..44ec4addbe 100644 --- a/packages/backend-tasks/api-report.md +++ b/packages/backend-tasks/api-report.md @@ -8,6 +8,7 @@ import { DatabaseManager } from '@backstage/backend-common'; import { Duration } from 'luxon'; import { HumanDuration as HumanDuration_2 } from '@backstage/types'; import { Logger } from 'winston'; +import { PluginDatabaseManager } from '@backstage/backend-common'; // @public @deprecated export type HumanDuration = HumanDuration_2; @@ -74,6 +75,12 @@ export class TaskScheduler { constructor(databaseManager: DatabaseManager, logger: Logger); forPlugin(pluginId: string): PluginTaskScheduler; // (undocumented) + static forPlugin(opts: { + pluginId: string; + databaseManager: PluginDatabaseManager; + logger: Logger; + }): PluginTaskScheduler; + // (undocumented) static fromConfig( config: Config, options?: {