Added the playlist generator
This commit is contained in:
@@ -40,10 +40,15 @@ pub fn spawn(state: web::Data<AppState>) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Clear next-run while running
|
||||
// Check if this run was skipped
|
||||
{
|
||||
let mut sched = state.scheduler.lock().await;
|
||||
sched.next_pipeline = None;
|
||||
if sched.skip_pipeline {
|
||||
sched.skip_pipeline = false;
|
||||
tracing::info!("scheduled pipeline skipped (user cancelled)");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
tracing::info!("scheduled pipeline starting");
|
||||
|
||||
Reference in New Issue
Block a user