From 64ea6b95a63daa0898bf49080a13beda2268d754 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 3 Apr 2024 23:21:29 -0300 Subject: [PATCH] Remove async-tasks.mdx and update sidebars.js --- docs/docs/guides/async-tasks.mdx | 44 -------------------------------- docs/sidebars.js | 7 +---- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 docs/docs/guides/async-tasks.mdx diff --git a/docs/docs/guides/async-tasks.mdx b/docs/docs/guides/async-tasks.mdx deleted file mode 100644 index e865fe4b6..000000000 --- a/docs/docs/guides/async-tasks.mdx +++ /dev/null @@ -1,44 +0,0 @@ -import Admonition from "@theme/Admonition"; - -# Async API - -## Introduction - - - This implementation is still in development. Contributions are welcome! - - -The Async API is an implementation of the Langflow API that uses [Celery](https://docs.celeryproject.org/en/stable/) -to run the tasks asynchronously, using a message broker to send and receive messages, a result backend to store the results and a cache to store the task states and session data. - -### Configuration - -The folder _`./deploy`_ in the [Github repository](https://github.com/logspace-ai/langflow) contains a _`.env.example`_ file that can be used to configure a Langflow deployment. -The file contains the variables required to configure a Celery worker queue, Redis cache and result backend and a RabbitMQ message broker. - -To set it up locally you can copy the file to _`.env`_ and run the following command: - -```bash -docker compose up -d -``` - -This will set up the following containers: - -- Langflow API -- Celery worker -- RabbitMQ message broker -- Redis cache -- PostgreSQL database -- PGAdmin -- Flower -- Traefik -- Grafana -- Prometheus - -### Testing - -To run the tests for the Async API, you can run the following command: - -```bash -docker compose -f docker-compose.with_tests.yml up --exit-code-from tests tests result_backend broker celeryworker db --build -``` diff --git a/docs/sidebars.js b/docs/sidebars.js index 84e1dca16..0b370fab2 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -27,12 +27,7 @@ module.exports = { type: "category", label: " Step-by-Step Guides", collapsed: false, - items: [ - "guides/async-tasks", - "guides/loading_document", - "guides/chatprompttemplate_guide", - "guides/langfuse_integration", - ], + items: ["guides/langfuse_integration"], }, { type: "category",