Skip to content

Use WorkspaceStatus.status_version to ignore old status updates #9107

@easyCZ

Description

@easyCZ

Is your feature request related to a problem? Please describe

When the bridge handles WorkspaceStatus updates, it doesn't ignore events which have an older status_version. The status_version can allow us to apply a partial order on the WorkspaceStatus events.

To do this, we need to do the following:

  • Store the status_version we've processed in the WorkspaceInstance (and Prebuild) records
  • When a new update arrives, check if this is an older update by comparing with the stored version.

Doing this allows us to ensure we do not rely on event ordering inside the message bus and we prevent inconsistent state compared to reality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    team: webappIssue belongs to the WebApp team

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions