Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions crates/core/src/db/relational_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::util::asyncify;
use crate::worker_metrics::WORKER_METRICS;
use anyhow::{anyhow, Context};
use enum_map::EnumMap;
use log::info;
use spacetimedb_commitlog::repo::OnNewSegmentFn;
use spacetimedb_commitlog::{self as commitlog, Commitlog, SizeOnDisk};
use spacetimedb_data_structures::map::HashSet;
Expand Down Expand Up @@ -1110,15 +1109,13 @@ pub fn spawn_view_cleanup_loop(db: Arc<RelationalDB>) -> tokio::task::AbortHandl
// in milliseconds, which may be too long for async tasks.
let db = db.clone();
let db_identity = db.database_identity();
info!("running view cleanup for database {db_identity}");
tokio::task::spawn_blocking(move || run_view_cleanup(&db))
.await
.inspect_err(|e| {
log::error!("[{}] DATABASE: failed to run view cleanup task: {}", db_identity, e);
})
.ok();

info!("pausing view cleanup for database {db_identity}");
tokio::time::sleep(VIEWS_EXPIRATION).await;
}
})
Expand Down
Loading