Commit 4a85f1f4 authored by MOMMESSIN Clement's avatar MOMMESSIN Clement

Changed the notify message into \'no_more_static_job_to_submit\'

parent b19cdd8f
......@@ -246,7 +246,7 @@ This message allows a peer to notify something to its counterpart.
There is no expected acknowledgement when sending such message.
For now, Batsim can **notify** the scheduler of the following:
- **no_more_static_submitters**: Batsim tells the scheduler that it has no more jobs to submit. This means that all jobs in the workloads have already been submitted to the scheduler and the scheduler cannot expect more jobs to arrive.
- **no_more_static_job_to_submit**: Batsim tells the scheduler that it has no more jobs to submit from the static submitters. This means that all jobs in the workloads have already been submitted to the scheduler and the scheduler cannot expect more jobs to arrive (except the potential ones through dynamic submission).
For now, the scheduler can **notify** Batsim of the following:
- **submission_finished**: The scheduler tells Batsim that dynamic job submissions are over, which allows Batsim to stop the simulation. This message **MUST** be sent if ``"scheduler_submission": {"enabled": true}`` is configures, in order to finish the simulation. See [Configuration documentation](./configuration.md) for more details.
......@@ -259,7 +259,7 @@ For now, the scheduler can **notify** Batsim of the following:
{
"timestamp": 23.50,
"type": "NOTIFY",
"data": { "type": "no_more_static_submitters" }
"data": { "type": "no_more_static_job_to_submit" }
}
```
or
......
......@@ -430,7 +430,7 @@ Other options:
vector<string> parsed;
boost::split(parsed, hosts_roles_maps[i], boost::is_any_of(":"));
xbt_assert(parsed.size() == 2, "The roles host mapping sould only contain one ':' charactere");
xbt_assert(parsed.size() == 2, "The roles host mapping should only contain one ':' character");
string hosts = parsed[0];
string roles = parsed[1];
vector<string> host_list;
......
......@@ -556,7 +556,7 @@ void JsonProtocolWriter::append_notify(const std::string & notify_type,
/* {
"timestamp": 23.57,
"type": "NOTIFY",
"data": { "type": "no_more_static_submitters" }
"data": { "type": "no_more_static_job_to_submit" }
} */
xbt_assert(date >= _last_date, "Date inconsistency");
......
......@@ -190,7 +190,7 @@ void server_on_submitter_bye(ServerData * data,
if(data->nb_submitters_finished == data->expected_nb_submitters)
{
data->context->proto_writer->append_notify("no_more_static_submitters", MSG_get_clock());
data->context->proto_writer->append_notify("no_more_static_job_to_submit", MSG_get_clock());
}
check_simulation_finished(data);
......
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