Commit e13bcc52 authored by Georgios Dagkakis's avatar Georgios Dagkakis

interrupt only victims that wait for interruption signal

parent b12d4076
......@@ -175,9 +175,8 @@ class Failure(ObjectInterruption):
self.expectedSignals['victimEndsProcess']=0
# interrupt the victim only if it was not previously interrupted
if not self.victim.interruptionStart.triggered:
self.interruptVictim() # interrupt the victim
# interrupt the victim
self.interruptVictim() # interrupt the victim
self.victim.Up=False
self.victim.timeLastFailure=self.env.now
......
......@@ -73,8 +73,7 @@ class ShiftScheduler(ObjectInterruption):
# TODO more generic implementation
if issubclass(self.victim.__class__, CoreObject):
# interrupt the victim only if it was not previously interrupted
if not self.victim.interruptionStart.triggered:
self.interruptVictim() # interrupt the victim
self.interruptVictim() # interrupt the victim
else:
CoreObject.requestAllocation()
......@@ -147,8 +146,7 @@ class ShiftScheduler(ObjectInterruption):
# TODO more generic implementation
if issubclass(self.victim.__class__, CoreObject):
# interrupt the victim only if it was not previously interrupted
if not self.victim.interruptionStart.triggered:
self.interruptVictim() # interrupt the victim
self.interruptVictim() # interrupt the victim
else:
CoreObject.requestAllocation()
......
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