def resize(cls, database, cloudstackpack, user):
        from notification.tasks import resize_database
        from notification.models import TaskHistory

        task_history = TaskHistory()
        task_history.task_name = "resize_database"
        task_history.task_status = task_history.STATUS_WAITING
        task_history.arguments = "Database name: {}".format(database.name)
        task_history.user = user
        task_history.save()

        resize_database.delay(database=database, cloudstackpack=cloudstackpack,
                              user=user, task_history=task_history
                              )
Beispiel #2
0
    def resize(cls, database, cloudstackpack, user):
        from notification.tasks import resize_database
        from notification.models import TaskHistory

        task_history = TaskHistory()
        task_history.task_name = "resize_database"
        task_history.task_status = task_history.STATUS_WAITING
        task_history.arguments = "Database name: {}".format(database.name)
        task_history.user = user
        task_history.save()

        resize_database.delay(database=database,
                              cloudstackpack=cloudstackpack,
                              user=user,
                              task_history=task_history)
    def resize(cls, database, cloudstackpack, user):
        from notification.tasks import resize_database

        result = resize_database.delay(database, cloudstackpack, user)
    def resize(cls, database, cloudstackpack, user):
        from notification.tasks import resize_database

        result = resize_database.delay(database, cloudstackpack, user)