Type Alias CreateWorkerRequest

CreateWorkerRequest: Message<"virtufin.CreateWorkerRequest"> & {
    codeSource?: CodeSource;
    config: { [key: string]: string };
    mimeType: string;
    tags: { [key: string]: string };
    topics: string[];
}

Type declaration

  • OptionalcodeSource?: CodeSource

    from field: virtufin.CodeSource code_source = 1;

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

    Worker-instance defaults, immutable after creation. Delivered to the worker on every incoming trigger CloudEvent as extension attributes (the same generic mechanism used for correlationid) -- NOT process environment variables, so values never leak between workers co-loaded in the same WorkManager process. A worker's own payload field (if present on the triggering event) takes precedence; config is only the fallback.

    from field: map<string, string> config = 4;

  • mimeType: string

    from field: string mime_type = 2;

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

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

  • topics: string[]

    One or more topics the worker subscribes to. A triggering CloudEvent arriving on any of them is dispatched to this worker.

    from field: repeated string topics = 3;

from message virtufin.CreateWorkerRequest