- Notifications
You must be signed in to change notification settings - Fork926
Open
Feature
5 of 7 issues completed
Description
Motivation
Relates to#15047
There is currently no way to get a top-level view of all pending or running provisioner jobs.
This is useful for administrators troubleshooting issues with hung or pending jobs in combination with tagged provisioner daemons. Having this available would have been helpful in surfacing the root cause of the linked issue.
Proposed Solution
- Add an API endpoint that lists all provisioner jobs. We should allow filtering at minimum by organization, status (pending, running, completed, failed) and time (created_at). In the case of running, completed, or failed jobs, also include information on the provisioners that handled the job.
Required permissions: read all templates in org, read all workspaces in org.
Add a CLI command that queries the above endpoint. We may also potentially expose a command to list all registered provisioners.
Add a UI endpoint to list all provisioner jobs. We should have enough contextual information available to link to associated workspace builds and template versions.