You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if new_total_instance_count > compute_allocation_totalasusize{
647
+
if new_total_instance_count > i64::from(compute_allocation_total){
645
648
// # enforce_if_present: Instance type not required in creation request. If sent and allocations are found for instance type ID, enforce it; otherwise, it's like no limits.
646
649
// # always: Instance type not required in creation request. If sent, enforce allocations. If none are found, its a constraint value of 0 (i.e., you get nothing / default-deny).
647
650
// # warn_only (default): Instance type not required in creation request. If sent in and allocations are found, don't enforce, but log what would have happened if they were enforced.
/// The WHERE clause matching endpoints still in preingestion that are neither
194
+
/// waiting for a site-explorer refresh nor in an error state. If
195
+
/// LastExplorationError is completely nonexistent it is NULL; if it is there
196
+
/// and indicates a null value it is 'null'.
197
+
///
198
+
/// [`find_preingest_not_waiting_not_error`] and
199
+
/// [`count_preingest_not_waiting_not_error`] both build their queries from
200
+
/// this, so the row-returning and counting variants cannot drift apart.
201
+
constPREINGEST_NOT_WAITING_NOT_ERROR_WHERE:&str = "(preingestion_state IS NULL OR preingestion_state->'state' != '\"complete\"')
202
+
AND waiting_for_explorer_refresh = false
203
+
AND (exploration_report->'LastExplorationError' IS NULL OR exploration_report->'LastExplorationError' = 'null')";
204
+
192
205
/// find_preingest_not_waiting gets everything that is still in preingestion that isn't waiting for site explorer to refresh it again and isn't in an error state.
193
206
pubasyncfnfind_preingest_not_waiting_not_error(
194
207
txn:implDbReader<'_>,
195
208
) -> Result<Vec<ExploredEndpoint>,DatabaseError>{
196
-
let query = "SELECT * FROM explored_endpoints
197
-
WHERE (preingestion_state IS NULL OR preingestion_state->'state' != '\"complete\"')
198
-
AND waiting_for_explorer_refresh = false
199
-
AND (exploration_report->'LastExplorationError' IS NULL OR exploration_report->'LastExplorationError' = 'null')";// If LastExplorationError is completely notexistant it is NULL, if it is there and indicates a null value it is 'null'.
/// find_all_no_upgrades returns all explored endpoints that site explorer has been able to probe, but ignores anything currently undergoing an upgrade
0 commit comments