Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add management command to track workflow executions #27167

Merged

Conversation

tomasfarias
Copy link
Contributor

Problem

In order to support auto-scaling infrastructure, we need to know how many Temporal Workflows are pending. For this, we need to query Temporal and get the count of workflows in 'Running' status.

Changes

Adds a management command to streamline the call to Temporal to get the count.
Management command also supports pushing result to a Prometheus gauge, if configured.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Manually ran command

@tomasfarias tomasfarias requested a review from rossgray December 27, 2024 11:37
Copy link
Contributor

@rossgray rossgray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@tomasfarias tomasfarias merged commit b9d6b76 into master Jan 2, 2025
93 checks passed
@tomasfarias tomasfarias deleted the feat/add-management-command-to-track-workflow-executions branch January 2, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants