

@shared_task
def schedule_provision(previous_task_data=None, url=None, template_uuid=None, token_key=None, additional_options=None, template_group_result_uuid=None):
    template = models.Template.objects.get(uuid=template_uuid)
    response_data = template.schedule_provision(url, token_key, additional_options, previous_task_data).json()
    if (resource_type is not None):
        template_group_result = models.TemplateGroupResult.objects.get(uuid=template_group_result_uuid)
        resource_type = SupportedServices.get_name_for_model(template.object_content_type.model_class())
        template_group_result.state_message = ('%s provision has been scheduled successfully.' % resource_type)
        template_group_result.save()
    return response_data

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/template/tasks.py schedule_provision/VarMisuse@71/107 `template_group_result_uuid`->`resource_type`