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: worker paused state #677

Merged
merged 4 commits into from
Jul 1, 2024
Merged

feat: worker paused state #677

merged 4 commits into from
Jul 1, 2024

Conversation

grutt
Copy link
Contributor

@grutt grutt commented Jul 1, 2024

Description

Adds a Paused state to worker and UI affordance to update this state. When a worker is Paused work will not be assigned to the worker but all connections will not be interrupted.

Fixes #663

Type of change

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

What's Changed

  • adds isPaused state to worker model
  • adds update worker api endpoint
  • adds toggle button to pause/resume work for worker
  • adds paused state to isActive worker api model

Copy link

vercel bot commented Jul 1, 2024

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 Jul 1, 2024 6:27pm

Copy link
Member

@steebchen steebchen left a comment

Choose a reason for hiding this comment

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

lgtm with comments

api/v1/server/oas/transformers/worker.go Show resolved Hide resolved
frontend/app/src/pages/main/workers/$worker/index.tsx Outdated Show resolved Hide resolved
@abelanger5 abelanger5 enabled auto-merge (squash) July 1, 2024 18:32
@abelanger5 abelanger5 merged commit 461eda1 into main Jul 1, 2024
25 checks passed
@abelanger5 abelanger5 deleted the feat--worker-paused-state branch July 1, 2024 18:44
This pull request was closed.
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.

feat: manually mark workers as inactive
3 participants