loopd: a failed heartbeat still advances last_heartbeat
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -252,7 +252,7 @@ impl Scheduler {
|
||||
let text = format!("It is {}.\n\n{file}", now.to_rfc3339());
|
||||
let mut emit = |_event: &TurnEvent| {};
|
||||
let outcome = run_turn(&mut session, &runtime, &text, None, &mut emit);
|
||||
let outcome = compact::finish_turn(
|
||||
let _ = compact::finish_turn(
|
||||
&mut session,
|
||||
&runtime,
|
||||
&*ctx.memory,
|
||||
@@ -261,11 +261,9 @@ impl Scheduler {
|
||||
&mut emit,
|
||||
outcome,
|
||||
);
|
||||
if outcome.is_ok() {
|
||||
self.last_heartbeat = Some(now);
|
||||
work.push(TickWork::Heartbeat);
|
||||
}
|
||||
drop(held);
|
||||
self.last_heartbeat = Some(now);
|
||||
work.push(TickWork::Heartbeat);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user