File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ use clowarden_core::{
2020use futures:: future:: { self , JoinAll } ;
2121use octorust:: types:: { ChecksCreateRequestConclusion , JobStatus , PullRequestData } ;
2222use serde:: { Deserialize , Serialize } ;
23- use std:: { collections:: HashMap , sync:: Arc } ;
23+ use std:: { collections:: HashMap , sync:: Arc , time :: Duration } ;
2424use tokio:: {
2525 sync:: { broadcast, mpsc} ,
2626 task:: JoinHandle ,
27- time:: { self , MissedTickBehavior } ,
27+ time:: { self , sleep , MissedTickBehavior } ,
2828} ;
2929use tracing:: { debug, error, instrument} ;
3030
@@ -377,6 +377,9 @@ pub(crate) fn scheduler(
377377 org: org. clone( ) ,
378378 ..Default :: default ( )
379379 } ) ) ;
380+
381+ // Introduce a delay between scheduled jobs
382+ sleep( Duration :: from_secs( 30 ) ) . await ;
380383 }
381384 } ,
382385 }
You can’t perform that action at this time.
0 commit comments