Commit c00860c3 authored by MOMMESSIN Clement's avatar MOMMESSIN Clement

[code] Remove handling of NOP event

parent eb40adba
......@@ -437,11 +437,6 @@ class Batsim(object):
if "air_temperatures" in msg:
self.air_temperatures = msg["air_temperatures"]
#print(self.air_temperatures)
if msg["events"] is []:
# No events in the message
self.scheduler.onNOP()
self._events_to_send = []
......@@ -725,9 +720,6 @@ class BatsimScheduler(object):
raise ValueError(
"[PYBATSIM]: Batsim is not responding (maybe deadlocked)")
def onNOP(self):
pass
def onJobSubmission(self, job):
raise NotImplementedError()
......
......@@ -65,14 +65,6 @@ class BaseBatsimScheduler(BatsimScheduler):
type="deadlock")
self._scheduler.on_deadlock()
def onNOP(self):
self._scheduler._update_time()
self._scheduler.debug(
"decision process received NOP",
type="nop_received")
self._scheduler.on_nop()
self._scheduler._do_schedule()
def onJobsKilled(self, jobs):
self._scheduler._update_time()
self._scheduler.debug(
......
......@@ -38,9 +38,6 @@ class ValidatingMachine(BatsimScheduler):
def onSimulationEnds(self):
self.scheduler.onSimulationEnds()
def onNOP(self):
self.scheduler.onNOP()
def onDeadlock(self):
self.scheduler.onDeadlock()
......
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