We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e072e41 commit 527d113Copy full SHA for 527d113
1 file changed
crates/worker/src/docker/taskbridge/bridge.rs
@@ -145,10 +145,13 @@ impl TaskBridge {
145
}
146
};
147
148
- let mut work_units = 1.0;
149
- if output_flops > 0.0 {
150
- work_units = output_flops;
+ if output_flops <= 0.0 {
+ error!("Invalid work units calculation: output_flops ({}) must be greater than 0.0. Blocking file validation submission.", output_flops);
+ return Err(anyhow::anyhow!(
151
+ "Invalid work units: output_flops must be greater than 0.0"
152
+ ));
153
154
+ let work_units = output_flops;
155
156
tokio::spawn(async move {
157
if let Err(e) = file_handler::handle_file_validation(
0 commit comments