Skip to content

Commit 9ed6d9e

Browse files
committed
Fix: show the workspaces for which the agent can't be retrieved
- can't happen while starting/stoping/updating agents - once the workspace is live the poller will retrieve the agents at the next call
1 parent e3bd944 commit 9ed6d9e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

+11-2
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,17 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
290290
.toList()
291291
}
292292
} catch (e: Exception) {
293-
logger.error("Skipping workspace ${this.name} because we could not retrieve the agent(s). Reason: $e")
294-
emptyList()
293+
logger.warn("Agent(s) for ${this.name} could not be retrieved. Reason: $e")
294+
listOf(
295+
WorkspaceAgentModel(
296+
this.name,
297+
this.templateName,
298+
WorkspaceAgentStatus.from(this),
299+
null,
300+
null,
301+
null
302+
)
303+
)
295304
}
296305
}
297306

0 commit comments

Comments
 (0)