move hive-sh4re's paused_marker() composition into hive-agent
This commit is contained in:
parent
aa14339be7
commit
2024848251
5 changed files with 32 additions and 25 deletions
|
|
@ -686,7 +686,7 @@ async fn serve_loop<S: Surface>(
|
|||
// need to be: hive-c0re skips the stop-checkpoint handshake for
|
||||
// a paused agent, because this check sits at the top of the loop
|
||||
// and so a paused agent provably has no turn in flight.
|
||||
if hive_sh4re::paths::paused_marker().exists() {
|
||||
if paths::paused_marker().exists() {
|
||||
if !was_paused {
|
||||
tracing::info!("pause marker present — parking the turn loop");
|
||||
bus.emit(LiveEvent::Note {
|
||||
|
|
@ -827,7 +827,7 @@ fn apply_todo_wake_checked(checked: Option<bool>, todo_miss_streak: &mut u32, bu
|
|||
consecutive todo wakes — an operator needs to resume this agent"
|
||||
),
|
||||
});
|
||||
if let Err(e) = std::fs::write(hive_sh4re::paths::paused_marker(), "") {
|
||||
if let Err(e) = std::fs::write(paths::paused_marker(), "") {
|
||||
tracing::warn!(error = ?e, "failed to write pause marker");
|
||||
}
|
||||
// Fresh slate for whenever this agent gets resumed — see
|
||||
|
|
|
|||
Loading…
Reference in a new issue