def sync(): if request.method == 'GET': return redirect(url_for('blob')) elif request.method == 'POST': rabbitmq.request_sync(node_id, node_ip, node_port) return redirect(url_for('blob'))
def start_sync(): rabbitmq.request_sync(node_id, node_ip, node_port)