- Notifications
You must be signed in to change notification settings - Fork914
docs: add new section on managing provisioners from the dashboard#16563
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
10 commits Select commitHold shift + click to select a range
ab9d276
add manage provisioner jobs
EdwardAngert07df851
add screenshot
EdwardAngert912e52d
move Manage Provisioners to new doc under Provisioners
EdwardAngertd3453b1
fix table formatting
EdwardAngert8055b0c
fix rel link
EdwardAngert53a28a4
add sections to manage-prov
EdwardAngertdb7c891
fix link
EdwardAngertb20026d
fix link
EdwardAngert5714e88
add manage provisioners to intro
EdwardAngertd1842a3
rename to manage-provisioner-jobs
EdwardAngertFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
5 changes: 4 additions & 1 deletion.vscode/settings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionscoderd/provisionerdserver/acquirer_test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/admin/infrastructure/architecture.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/admin/monitoring/health-check.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/admin/monitoring/logs.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
34 changes: 20 additions & 14 deletionsdocs/admin/provisioners.md → docs/admin/provisioners/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletionsdocs/admin/provisioners/manage-provisioner-jobs.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Manage provisioner jobs | ||
[Provisioners](./index.md) start and run provisioner jobs to create or delete workspaces. | ||
Each time a workspace is built, rebuilt, or destroyed, it generates a new job and assigns | ||
the job to an available provisioner daemon for execution. | ||
While most jobs complete smoothly, issues with templates, cloud resources, or misconfigured | ||
provisioners can cause jobs to fail or hang indefinitely (these are in a `Pending` state). | ||
 | ||
## How to find provisioner jobs | ||
Coder admins can view and manage provisioner jobs. | ||
Use the dashboard, CLI, or API: | ||
- **Dashboard**: | ||
Select **Admin settings** > **Organizations** > **Provisioner Jobs** | ||
Provisioners are organization-specific. If you have more than one organization, select it first. | ||
- **CLI**: `coder provisioner jobs list` | ||
- **API**: `/api/v2/provisioner/jobs` | ||
## Manage provisioner jobs from the dashboard | ||
View more information about and manage your provisioner jobs from the Coder dashboard. | ||
1. Under **Admin settings** select **Organizations**, then select **Provisioner jobs**. | ||
1. Select the **>** to expand each entry for more information. | ||
1. To delete a job, select the 🚫 at the end of the entry's row. | ||
If your user doesn't have the correct permissions, this option is greyed out. | ||
## Provisioner job status | ||
Each provisioner job has a lifecycle state: | ||
| Status | Description | | ||
|---------------|----------------------------------------------------------------| | ||
| **Pending** | Job is queued but has not yet been picked up by a provisioner. | | ||
| **Running** | A provisioner is actively working on the job. | | ||
| **Completed** | Job succeeded. | | ||
| **Failed** | Provisioner encountered an error while executing the job. | | ||
| **Canceled** | Job was manually terminated by an admin. | | ||
## When to cancel provisioner jobs | ||
A job might need to be cancelled when: | ||
- It has been stuck in **Pending** for too long. This can be due to misconfigured tags or unavailable provisioners. | ||
- It is **Running** indefinitely, often caused by external system failures or buggy templates. | ||
- An admin wants to abort a failed attempt, fix the root cause, and retry provisioning. | ||
- A workspace was deleted in the UI but the underlying cloud resource wasn’t cleaned up, causing a hanging delete job. | ||
Cancelling a job does not automatically retry the operation. | ||
It clears the stuck state and allows the admin or user to trigger the action again if needed. | ||
## Troubleshoot provisioner jobs | ||
Provisioner jobs can fail or slow workspace creation for a number of reasons. | ||
Follow these steps to identify problematic jobs or daemons: | ||
1. Filter jobs by `pending` status in the dashboard, or use the CLI: | ||
```bash | ||
coder provisioner jobs list -s pending | ||
``` | ||
1. Look for daemons with multiple failed jobs and for template [tag mismatches](./index.md#provisioner-tags). | ||
1. Cancel the job through the dashboard, or use the CLI: | ||
```shell | ||
coder provisioner jobs cancel <job-id> | ||
``` |
2 changes: 1 addition & 1 deletiondocs/admin/security/secrets.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/admin/setup/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/admin/templates/creating-templates.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/admin/templates/extending-templates/modules.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/admin/templates/extending-templates/provider-authentication.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionsdocs/admin/users/groups-roles.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletionsdocs/admin/users/organizations.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Binary file addeddocs/images/admin/provisioners/provisioner-jobs.png
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletionsdocs/manifest.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/tutorials/best-practices/scale-coder.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletiondocs/tutorials/best-practices/security-best-practices.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionsdocs/tutorials/best-practices/speed-up-templates.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.