Added the watch and scheduler systems
CI / check (push) Successful in 1m10s
CI / docker (push) Successful in 2m40s

This commit is contained in:
Connor Johnstone
2026-03-20 16:28:15 -04:00
parent 4ec47252d9
commit 4008b4d838
8 changed files with 54 additions and 5 deletions
+8
View File
@@ -74,11 +74,19 @@ async fn main() -> anyhow::Result<()> {
config_path,
tasks: TaskManager::new(),
firefox_login: tokio::sync::Mutex::new(None),
scheduler: tokio::sync::Mutex::new(shanty_web::state::SchedulerInfo {
next_pipeline: None,
next_monitor: None,
}),
});
// Start background cookie refresh task
shanty_web::cookie_refresh::spawn(state.config.clone());
// Start pipeline and monitor schedulers
shanty_web::pipeline_scheduler::spawn(state.clone());
shanty_web::monitor::spawn(state.clone());
// Resolve static files directory
let static_dir = std::env::current_exe()
.ok()