forked from 1b-agent/fieldcraft-upstream
solver: a job cancelled before it starts stops before any setup work
The cancel check came only at the factorization, so on a busy CI runner a pre-cancelled frequency solve still spent 17 s on setup (cancel_tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
3e997dab43
commit
f220c7108b
4 files changed
+11
No files matched your search
@@ -479,6 +479,8 @@ pub(crate) fn temperatures_at(model: &Model, resolved: &Resolved, step: &Step, l
|
||||
|
||||
/// Solve a heat transfer step: the step named `step`, or the model's only one.
|
||||
pub fn solve_heat(model: &Model, step: Option<&str>, limits: &Limits) -> Result<HeatResult> {
|
||||
// A job cancelled before it starts stops here, before any setup work.
|
||||
fieldcraft_model::progress::check()?;
|
||||
let resolved = model.resolve()?;
|
||||
let step = model.select_step(step, |p| matches!(p, Procedure::HeatTransfer { .. }), "heat transfer")?;
|
||||
let mut warnings: Vec<String> = resolved.warnings.iter().map(ToString::to_string).collect();
|
||||
|
||||
Reference in new issue
Block a user