Skip to content

StopWorkspace is called prior to regular workspace transitioning to running state #12282

Description

@sagor999

Bug description

StopWorkspace is called on workspace that has not finished initializing yet, causing ws-daemon to fail content init 10 min later.
Not sure why it fails 10 min after StopWorkspace was called, most probably some sort of timeout triggers somewhere.
Workspace logs:
https://cloudlogging.app.goo.gl/1qNcUN3hcr8GmPE16

Webapp logs:
https://cloudlogging.app.goo.gl/T344gi8ZHzDLLJNZ9

@geropl why does webapp is calling StopWorkspace prior to workspace starting up? I thought it was only implemented for prebuilds, but this happens on regular workspaces as well.

For workspace team:
we need to be able to handle this gracefully. This would be related to #11453 but that one specifically is looking to address prebuild cancellation, not regular workspaces. It is possible that work done in #11453 might address this issue as well, but most probably it will need additional work.

Steps to reproduce

not sure. need input from webapp team

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    meta: staleThis issue/PR is stale and will be closed soontype: bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions