Commit 9f93161b by Őry Máté

vm: notify owners of expiring VMs

parent 6bb818a6
...@@ -49,5 +49,8 @@ def garbage_collector(timeout=15): ...@@ -49,5 +49,8 @@ def garbage_collector(timeout=15):
except Exception as e: except Exception as e:
logger.debug('Could not notify owner of instance %d .%s', logger.debug('Could not notify owner of instance %d .%s',
i.pk, unicode(e)) i.pk, unicode(e))
elif i.is_expiring():
logger.debug("Instance %d expires soon." % i.pk)
i.notify_owners_about_expiration()
else: else:
logger.debug("Instance %d didn't expire." % i.pk) logger.debug("Instance %d didn't expire." % i.pk)
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 sign in to comment