def flush(ctx, user, function): """ Flush workers """ host, port = get_invoke_host_port() host = host if host else "127.0.0.1" port = port if port else 8080 flush_call_impl(host, port, user, function)
def function(ctx): """ Flush functions, state and shared files from all workers """ host, port = get_invoke_host_port() flush_call_impl(host, port)