Commit 5aba11a3 authored by MOMMESSIN Clement's avatar MOMMESSIN Clement

[code] Added guard preventing dynamic submissions of jobs when...

[code] Added guard preventing dynamic submissions of jobs when "submission_finished" have already been sent
parent 46380e14
...@@ -1337,6 +1337,8 @@ void JsonProtocolReader::handle_submit_job(int event_number, ...@@ -1337,6 +1337,8 @@ void JsonProtocolReader::handle_submit_job(int event_number,
xbt_assert(context->submission_sched_enabled, "Invalid JSON message: dynamic job submission received but the option seems disabled..."); xbt_assert(context->submission_sched_enabled, "Invalid JSON message: dynamic job submission received but the option seems disabled...");
xbt_assert(!context->submission_sched_finished, "Invalid JSON message: dynamic job submission received but the option have been disabled (a submission_finished message have already been received)");
xbt_assert(data_object.IsObject(), "Invalid JSON message: the 'data' value of event %d (SUBMIT_JOB) should be an object", event_number); xbt_assert(data_object.IsObject(), "Invalid JSON message: the 'data' value of event %d (SUBMIT_JOB) should be an object", event_number);
xbt_assert(data_object.HasMember("job_id"), "Invalid JSON message: the 'data' value of event %d (SUBMIT_JOB) should have a 'job_id' key", event_number); xbt_assert(data_object.HasMember("job_id"), "Invalid JSON message: the 'data' value of event %d (SUBMIT_JOB) should have a 'job_id' key", event_number);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment