stacklok / stacklok/toolhive

ListWorkloads shouldn't return workloads that can't be restarted

Open
#952 1 comment 0 reactions 1 assignee View on GitHub

@dmjb is already working on this.

Since Jul 8, 2025.

Dominant language
Go
Stars
2.2k
Forks
300
Avg merge
1d 15h
Merged PRs (30d)
184

Description

Currently RestartWorkloads needs to know about the runconfig of a server in order to restart it, but ListWorkloads doesn't look at the runconfig.

If the toolhive directory is removed, the user gets into a bad state where ListWorkloads returns several stopped workloads, but they cannot be restarted by calling RestartWorkloads.
Instead, we should only return workloads that we have the runconfig for.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.