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 config.operation_cost.mode == DemandControlMode::Enforce{
62
66
if config.operation_cost.max == 0{
63
67
warn!(
68
+
target: targets::DEMAND_CONTROL,
64
69
"demand control is in enforce mode with a max cost of 0; all operations with non-zero cost will be rejected"
65
70
);
66
71
}
@@ -69,6 +74,7 @@ impl DemandControlRuntime {
69
74
&& config.default_list_size.subgraphs.is_none()
70
75
{
71
76
warn!(
77
+
target: targets::DEMAND_CONTROL,
72
78
"demand control is in enforce mode without a default list_size; list fields without an @listSize directive are estimated as 0 and may be under-counted"
73
79
);
74
80
}
@@ -141,6 +147,7 @@ impl DemandControlRuntime {
141
147
matchself.config.operation_cost.mode{
142
148
DemandControlMode::Enforce => {
143
149
warn!(
150
+
target: targets::DEMAND_CONTROL,
144
151
operation_name = ?operation_name,
145
152
estimated_cost = evaluation.estimated_cost,
146
153
max_cost,
@@ -166,6 +173,7 @@ impl DemandControlRuntime {
166
173
}
167
174
DemandControlMode::Measure => {
168
175
info!(
176
+
target: targets::DEMAND_CONTROL,
169
177
operation_name = ?operation_name,
170
178
estimated_cost = evaluation.estimated_cost,
171
179
max_cost,
@@ -231,7 +239,13 @@ impl DemandControlRuntime {
231
239
232
240
ifletSome(subgraph_max) = maybe_subgraph_max {
233
241
if*estimated_cost > subgraph_max {
234
-
debug!(subgraph_name = subgraph.as_str(), estimated_cost, subgraph_max,"subgraph call will be blocked dueing execution due to estimated cost exceeding limit");
242
+
debug!(
243
+
target: targets::DEMAND_CONTROL,
244
+
subgraph_name = subgraph.as_str(),
245
+
estimated_cost,
246
+
subgraph_max,
247
+
"subgraph call will be blocked during execution due to estimated cost exceeding limit"
0 commit comments