File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use oar_scheduler_db::model::jobs::{JobDatabaseRequests, JobState};
1818use oar_scheduler_db:: model:: moldable:: MoldableDatabaseRequests ;
1919use oar_scheduler_db:: model:: { events, gantt, SqlEnum } ;
2020use std:: collections:: HashSet ;
21- use std:: process:: exit;
21+ use std:: process:: { exit, Command } ;
2222
2323pub fn meta_schedule ( platform : & mut Platform ) -> i64 {
2424 let mut exit_code = 0 ;
@@ -168,4 +168,11 @@ fn notify_to_run_job(_platform: &Platform, job_id: i64) {
168168 // TODO: Tell bipbip commander to run a job. It can also notifies oar2 almighty if METASCHEDULER_OAR3_WITH_OAR2 configuration variable is set to yes.:
169169 // https://github.com/oar-team/oar3/blob/e6b6e7e59eb751cc2e7388d6c2fb7f94a3ac8c6e/oar/kao/meta_sched.py#L81-L118
170170 debug ! ( "Notify to run job {}" , job_id) ;
171+
172+ // Testing with a temporary script
173+ Command :: new ( "oar-notify-to-run-job" )
174+ . arg ( job_id. to_string ( ) )
175+ . output ( )
176+ . expect ( "failed to run oar-notify-to-run-job" ) ;
177+
171178}
You can’t perform that action at this time.
0 commit comments