@squidcloud/client
    Preparing search index...

    Interface AsyncJob<T>

    Represents an asynchronous job

    interface AsyncJob<T = any> {
        createdAt: Date;
        error?: string;
        id: string;
        result?: T;
        status: "in_progress" | "completed" | "failed";
        updatedAt: Date;
    }

    Type Parameters

    • T = any
    Index

    Properties

    createdAt: Date

    The timestamp when the job was created.

    error?: string

    The error message, if the job has failed. This is optional.

    id: string

    The unique identifier of the job.

    result?: T

    The result of the job, if available. This is of type T and is optional.

    status: "in_progress" | "completed" | "failed"

    The current status of the job. Can be one of the following:

    • 'in_progress': The job is currently being processed.
    • 'completed': The job has finished successfully.
    • 'failed': The job has failed.
    updatedAt: Date

    The timestamp when the job was last updated.