Init log tracking

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-10-01 23:06:48 -04:00
parent 41a19ab041
commit 986e958a9c
8 changed files with 210 additions and 55 deletions

View File

@@ -11,44 +11,7 @@ export interface Workflow {
error?: string
}
export interface WorkflowLog {
workflow: Workflow,
status: WorkflowStatus
}
export enum WorkflowStatus {
Queued = 'queued',
InProgress = 'inProgress',
success = 'success',
failed = 'failed',
Cancelled = 'cancelled'
}
export enum JobStatus {
Queued = 'queued',
InProgress = 'inProgress',
Skipped = 'skipped',
success = 'success',
failed = 'failed',
Cancelled = 'cancelled'
}
export enum StepStatus {
Queued = 'queued',
InProgress = 'inProgress',
Skipped = 'skipped',
success = 'success',
failed = 'failed',
Cancelled = 'cancelled'
}
export class WorkflowsManager {
private workflowLogs: WorkflowLog[] = [];
constructor() {
}
async getWorkflows(): Promise<Workflow[]> {
const workflows: Workflow[] = [];