ConsumerPosition: Message<"virtufin.ConsumerPosition"> & {
    consumer: string;
    idle: boolean;
    lastId: string;
    position?: Timestamp;
    removed: boolean;
    topic: string;
}

A consumer's progress on one topic.

Type declaration

  • consumer: string

    Opaque, unique per consumer; the WorkManager Runtime sends worker/.

    from field: string consumer = 2;

  • idle: boolean

    Nothing of the topic waits for the consumer: it is not behind, however old its position (a quiet topic).

    from field: bool idle = 4;

  • lastId: string

    The CloudEvent id of the last event the consumer finished on the topic. A new id counts as movement even when the position's time stays: a consumer working through a backlog may keep the same conservative position for minutes and must not be taken for one that stalled.

    from field: string last_id = 6;

  • Optionalposition?: Timestamp

    A time at or before the stream entry of the last event the consumer finished on the topic (the stream's clock). Its lag is now minus this.

    from field: google.protobuf.Timestamp position = 3;

  • removed: boolean

    The consumer is gone from the topic (stopped, deleted): forget it now instead of when its lease runs out.

    from field: bool removed = 5;

  • topic: string

    from field: string topic = 1;

from message virtufin.ConsumerPosition