GetPresetsAtFailureLimit groups workspace builds by preset ID. Each preset is associated with exactly one template version ID. For each preset, the query checks the last hard_limit builds. If all of them failed, the preset is considered to have hit the hard failure limit. The query returns a list of
(ctx context.Context, hardLimit int64)
| 607 | // For each preset, check the last hard_limit builds. |
| 608 | // If all of them failed, the preset is considered to have hit the hard failure limit. |
| 609 | GetPresetsAtFailureLimit(ctx context.Context, hardLimit int64) ([]GetPresetsAtFailureLimitRow, error) |
| 610 | // GetPresetsBackoff groups workspace builds by preset ID. |
| 611 | // Each preset is associated with exactly one template version ID. |
| 612 | // For each group, the query checks up to N of the most recent jobs that occurred within the |
no outgoing calls