def shutdown(request): stop_server.delay() return redirect('processing_stop')
def shutdown(request, instance_id): stop_server.delay(int(instance_id)) return redirect(reverse('processing_stop', args=(instance_id, )))
def shutdown(request, instance_id): stop_server.delay(int(instance_id)) return redirect(reverse('processing_stop', args=(instance_id,)))