Workspace RUNNING status event is not published after SNAPSHOTTING status #3314
Labels
kind/bug
Outline of a bug - must adhere to the bug report template.
status/open-for-dev
An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it.
Milestone
Workspace statuses are clearly defined by the the WorkspaceStatus javadoc.
For the
SNAPSHOTTING
status the flow is the following:On snapshot creation the following events are published:
But after workspace status changed back to
RUNNING
WorkspaceStatusEvent
is not published.Mostly a workspace lifecycle consists of the following events
In this case clients should consider
SNAPSHOT_CREATION_ERROR
orSNAPSHOT_CREATION_ERROR
as the ones which switch workspace status back to running on views, but it's not really convenient and clear for the client.Along with event publishing i propose to add a new field to WorkspaceStatusEvent which is
previousStatus
that allows client to see the difference between the states when workspace is started and when workspace is running again after it was snapshotting and react appropriately.The text was updated successfully, but these errors were encountered: