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)
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)
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 )