Type Alias InvokeWorkerCommandRequest

InvokeWorkerCommandRequest: Message<"virtufin.InvokeWorkerCommandRequest"> & {
    attributes: { [key: string]: string };
    command: string;
    contentType: string;
    id: string;
    payload: Uint8Array;
    timeoutMs: number;
}

Type declaration

  • attributes: { [key: string]: string }

    Further extension attributes of the command event (string-valued).

    from field: map<string, string> attributes = 5;

  • command: string

    The command name; the worker reads it from the event's command extension.

    from field: string command = 2;

  • contentType: string

    from field: string content_type = 4;

  • id: string

    from field: string id = 1;

  • payload: Uint8Array

    The event's data (default none) and its content type (default application/json).

    from field: bytes payload = 3;

  • timeoutMs: number

    How long the worker may take; 0 = the WorkManager's default (30 s).

    from field: uint32 timeout_ms = 6;

from message virtufin.InvokeWorkerCommandRequest