-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[server] Delete prebuild records when purging workspaces #13152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
da08869
to
a20e0b7
Compare
|
||
@injectable() | ||
export class MonitoringEndpointsAppEE extends WorkspaceHealthMonitoring { | ||
@inject(WorkspaceHealthMonitoring) protected readonly workspaceHealthMonitoring: WorkspaceHealthMonitoring; | ||
|
||
public create(): express.Application { | ||
const registry = prometheusClient.register; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧡
|
||
// This column triggers the db-sync deletion mechanism. It's not intended for public consumption. | ||
@Column() | ||
deleted?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The migration for this field is still missing, right?
Are you still working on this PR/should if be in "draft" mode? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one actually has the field, just wasn't in the db model. Yes, for the other ones we need the migrations. I'm moving the PR to draft.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wasn't in the db model
Oh really... 🙈
3765d1c
to
ee39803
Compare
/werft run 👍 started the job as gitpod-build-mp-gc-delete-prebuilds.5 |
12ddbc7
to
92b2399
Compare
ccab82d
to
a84edd1
Compare
a84edd1
to
45d866c
Compare
const registry = prometheusClient.register; | ||
|
||
prometheusClient.collectDefaultMetrics({ register: registry }); | ||
registerDBMetrics(registry); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was needed to keep the metrics defined in the gitpod-db
package, but bind it to server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
When we delete Workspaces, we also need to delete corresponding prebuilds when the Workspace is based on a prebuild.
Related Issue(s)
How to test
Release Notes
Documentation
Werft options:
Valid options are
all
,workspace
,webapp
,ide