/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { BylineCore } from '../core.js'; import type { BylineLogger } from '../logger/index.js'; import type { ISchedulerStore, RecurringTaskDefinition } from './types.js'; export interface RunDueTasksOptions { signal?: AbortSignal; concurrency?: number; owner?: string; } export interface RunDueTasksSummary { claimed: number; succeeded: number; failed: number; aborted: number; } interface RunDueTasksDeps { store: ISchedulerStore; tasks: readonly RecurringTaskDefinition[]; owner: string; logger: BylineLogger; signal?: AbortSignal; concurrency?: number; } /** A bounded, non-secret diagnostic label. Correctness never depends on it. */ export declare function defaultOwner(): string; /** * Dependency-injected implementation used by the ticker and unit tests. It is * intentionally absent from the `@byline/core/scheduler` barrel. */ export declare function runDueTasksWithDeps(params: RunDueTasksDeps): Promise; /** Run one claim-and-run pass over the task definitions vetted at core boot. */ export declare function runDueTasks(core: BylineCore, options?: RunDueTasksOptions): Promise; export {};