@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
37 lines (36 loc) • 1.26 kB
TypeScript
import { ObjectLevelCan } from '../models/ObjectLevelCan';
export declare const workPoolQueueStatus: readonly ["ready", "paused", "not_ready"], isWorkPoolQueueStatus: (value: unknown) => value is "paused" | "ready" | "not_ready";
export type WorkPoolQueueStatus = typeof workPoolQueueStatus[number];
export declare function getWorkPoolQueueStatusLabel(status: WorkPoolQueueStatus): string;
export interface IWorkPoolQueue {
readonly id: string;
created: Date;
updated: Date;
workPoolId: string;
workPoolName?: string;
name: string;
description: string | null;
isPaused: boolean;
concurrencyLimit: number | null;
priority: number;
lastPolled: Date | null;
status: WorkPoolQueueStatus;
can: ObjectLevelCan<'work_queue'>;
}
export declare class WorkPoolQueue implements IWorkPoolQueue {
readonly id: string;
readonly kind = "queue";
created: Date;
updated: Date;
workPoolId: string;
workPoolName?: string;
name: string;
description: string | null;
isPaused: boolean;
concurrencyLimit: number | null;
priority: number;
lastPolled: Date | null;
status: WorkPoolQueueStatus;
can: ObjectLevelCan<'work_queue'>;
constructor(workPoolQueue: IWorkPoolQueue);
}