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(go-sdk): adds preset labels on workers for autoscaling #1195

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

abelanger5
Copy link
Contributor

Description

Adds an option to the Go SDK to parse the environment variable HATCHET_AUTOSCALING_TARGET and set it as a label on workers. This is required to get autoscaling to work properly, as it gives us a mechanism to identify a group of workers that belong to the same autoscaling group.

There's a decent amount of annoying config-drilling down to the dispatcher, but fixing that would require a rewrite of the client that we're not going to tackle right now.

Type of change

  • New feature (non-breaking change which adds functionality)

@abelanger5 abelanger5 requested review from reillyse and grutt January 16, 2025 22:50
Copy link

vercel bot commented Jan 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 28, 2025 2:37pm

Copy link
Contributor

@reillyse reillyse left a comment

Choose a reason for hiding this comment

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

Looks good, one little comment.

pkg/client/dispatcher.go Show resolved Hide resolved
@abelanger5 abelanger5 enabled auto-merge (squash) January 28, 2025 14:38
@abelanger5 abelanger5 merged commit 769fed7 into main Jan 28, 2025
29 of 30 checks passed
@abelanger5 abelanger5 deleted the belanger/autoscaling-labels branch January 28, 2025 14:58
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.

3 participants