Skip to content

Commit d92ba5a

Browse files
committed
Running oar-notify-to-run-job to test to notify run job.
1 parent 1d45e36 commit d92ba5a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

oar-scheduler-meta/src/meta_schedule.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use oar_scheduler_db::model::jobs::{JobDatabaseRequests, JobState};
1818
use oar_scheduler_db::model::moldable::MoldableDatabaseRequests;
1919
use oar_scheduler_db::model::{events, gantt, SqlEnum};
2020
use std::collections::HashSet;
21-
use std::process::exit;
21+
use std::process::{exit, Command};
2222

2323
pub 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
}

0 commit comments

Comments
 (0)