- Notifications
You must be signed in to change notification settings - Fork4
Commita3651ba
committed
fix: compare builds instead of statuses
when updating the workspace and agent. Checking the status issubtly different from checking if there is a new build in the following scenario:1. Latest build is failed.2. The poll runs, so we currently have failed stored as the status.3. User starts workspace, we set to queued.4. Build fails again (a brand-new build, but it is also failing).5. Poll runs again, checks failed against the last status, which is also failed,so it leaves the status as queued, even though the workspace is actually failedcurrently, so really we do want to update the state to failed.So we could miss updates from one build to another build when both builds end up with the same status.1 parentfa8f6ac commita3651ba
1 file changed
+1
-5
lines changedLines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 263 | + | |
268 | 264 | | |
269 | 265 | | |
270 | 266 | | |
| |||
0 commit comments
Comments
(0)