Commit d9c6bb86 by Őry Máté

one: add scheduled jobs

parent ec17c00c
from django_extensions.management.jobs import HourlyJob
class Job(HourlyJob):
help = "Suspend/delete expired Instances."
def execute(self):
# executing empty sample job TODO
pass
from one.models import *
from django_extensions.management.jobs import HourlyJob
class Job(HourlyJob):
help = "Update Disks and Networks from OpenNebula."
def execute(self):
Disk.update()
Network.update()
pass
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