Skip to content

Commit

Permalink
Revert '[ws-manager-bridge] Skip stale prebuild events'
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ authored and roboquat committed Apr 6, 2022
1 parent 1fca342 commit 67ad495
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/ws-manager-bridge/ee/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ export class WorkspaceManagerBridgeEE extends WorkspaceManagerBridge {
if (prebuild.statusVersion <= status.statusVersion) {
// prebuild.statusVersion = 0 is the default value in the DB, these shouldn't be counted as stale in our metrics
if (prebuild.statusVersion > 0) {
// We've gotten an event which is younger than one we've already processed. We shouldn't process the stale one.
span.setTag("updatePrebuiltWorkspace.staleEvent", true);
this.prometheusExporter.recordStalePrebuildEvent();
log.info(logCtx, "Stale prebuild event received, skipping.");
return;
}
}
prebuild.statusVersion = status.statusVersion;
Expand Down

0 comments on commit 67ad495

Please sign in to comment.