room: close turns a restart left open
ci / checks (push) Successful in 51s
ci / test (push) Successful in 57s
ci / chart (push) Successful in 5s
ci / web (push) Successful in 19s
ci / docker (push) Successful in 1m42s
ci / publish-edge-image (push) Successful in 10s
ci / publish-edge-chart (push) Successful in 3s
ci / checks (push) Successful in 51s
ci / test (push) Successful in 57s
ci / chart (push) Successful in 5s
ci / web (push) Successful in 19s
ci / docker (push) Successful in 1m42s
ci / publish-edge-image (push) Successful in 10s
ci / publish-edge-chart (push) Successful in 3s
A turn writes turn_start before it runs and turn_end only after the work settles. A restart in between leaves the log with one open turn, and the client replays it as running, so the room shows "Rhema is working..." over no task. At startup, close every start without an end with an interrupted turn_end, which the log already renders as "rhema stopped".
This commit is contained in:
1 parent
c67d8af42d
commit
a40a7a6b36
3 files changed
+153
No files matched your search
@@ -54,6 +54,9 @@ async fn main() -> anyhow::Result<()> {
|
||||
presence: Default::default(),
|
||||
logins: Default::default(),
|
||||
});
|
||||
// A previous process may have stopped between a turn's start and its
|
||||
// end. Close those turns before the feed can replay them as running.
|
||||
room::runner::close_open_turns(&state);
|
||||
let app = api::router(state).layer(TraceLayer::new_for_http());
|
||||
let listener = tokio::net::TcpListener::bind(&config.listen).await?;
|
||||
tracing::info!(listen = %config.listen, "rhema-together");
|
||||
|
||||
Reference in new issue
Block a user