Commit c3d90c34 by Dudás Ádám

vm: renew suspension lease on deploy

parent ab138702
...@@ -679,6 +679,8 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel): ...@@ -679,6 +679,8 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
vm_tasks.resume.apply_async(args=[self.vm_name], vm_tasks.resume.apply_async(args=[self.vm_name],
queue=queue_name).get() queue=queue_name).get()
self.renew('suspend')
def deploy_async(self, user=None): def deploy_async(self, user=None):
"""Execute deploy asynchronously. """Execute deploy asynchronously.
""" """
......
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