Skip to content

[Feature Request] Expose activityType counts in WorkerInfo #1888

@tsurdilo

Description

@tsurdilo

Currently WorkerInfo exposes numInFlightActivities, numInFlightLocalActivities, numHeartbeatingActivities etc
which is super useful.

Feature request to also expose a count per ActivityType. Could be a Map where key is activityType and value current "in flight" number of this activity type.

This feature would be really useful for different types of debugging for example, when user detects that
all worker activity task slots are full, basically worker stops at that point polling for more activity tasks, they can check what activity types are occupying worker and not releasing task slot.

Its ok I think if this was maybe behind a flag like env var to turn it on. Should probably not be a worker config which would require a worker restart :)

Believe ActivityType should be exposed in activityOperator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions