Skip to content

database: views for prebuilds #299

Closed
@dannykopping

Description

@dannykopping

prebuilds view

Encapsulate the logic of how prebuilds are identified

  • a prebuild is identified as a workspaces row being owned by the prebuilds user (database: migration for prebuild user #298)
  • every prebuild will only have one workspace_builds entry with a start transition, and its initiator_id will be set to the prebuilds user

prebuilds_reconciliation view

Encapsulates the logic of how prebuilds must be scheduled

  • desired count: instances specified in the coder_workspace_preset resource per active template version
  • actual count: number of running prebuilds per active template version
  • extraneous count: number of running prebuilds per inactive template version

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions