fix: Check for job status on another incoming (#1117)

If a job silently failed, it wasn't possible for another one
to execute. This fixes it by using the API status to return
active state.
This commit is contained in:
Kyle Carberry
2022-04-25 02:22:36 +00:00
committed by GitHub
parent db7ed4d019
commit 23295f7f07
3 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -46,13 +46,13 @@ export interface CreateParameterRequest {
readonly source_value: string
}
// From codersdk/provisionerdaemons.go:37:6.
// From codersdk/provisionerdaemons.go:46:6.
export interface ProvisionerJob {
readonly error: string
readonly status: ProvisionerJobStatus
}
// From codersdk/provisionerdaemons.go:47:6.
// From codersdk/provisionerdaemons.go:56:6.
export interface ProvisionerJobLog {
readonly stage: string
readonly output: string