def exit_gracefully()

in workshops/ecs-spot-capacity-providers/webapp/app.py [0:0]


  def exit_gracefully(self, signum, frame):
    print("\nReceived {} signal".format(self.signals[signum]))
    if self.signals[signum] == 'SIGTERM':
      print("SIGTERM Signal Received. Let's wrap up..")
    if checkSpotTermination():
      print("The instance got a Spot Notification for termination, this may have")