예제 #1
0
def on_process_instance_creation(sender, instance, created, **kwargs):
    if created and instance:
        process_instance_creation.apply_async(args=[instance.id],
                                              queue=EXTERNAL_APPS_QUEUE)
예제 #2
0
파일: admin.py 프로젝트: ntwuxc/moocng
 def save_model(self, request, obj, form, change):
     if change and obj.execute_task_on_save:
         process_instance_creation.apply_async(args=[obj.id],
                                               queue=EXTERNAL_APPS_QUEUE)
     super(ExternalAppAdmin, self).save_model(request, obj, form, change)
예제 #3
0
파일: models.py 프로젝트: Macro-Bin/moocng
def on_process_instance_creation(sender, instance, created, **kwargs):
    if created and instance:
        process_instance_creation.apply_async(
            args=[instance.id],
            queue=EXTERNAL_APPS_QUEUE
        )
예제 #4
0
 def save_model(self, request, obj, form, change):
     if change and obj.execute_task_on_save:
         process_instance_creation.apply_async(args=[obj.id], queue=EXTERNAL_APPS_QUEUE)
     super(ExternalAppAdmin, self).save_model(request, obj, form, change)