langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Change the timeout of Langflow process

Open d0uub opened this issue 2 months ago • 1 comments

Bug Description

when i run the process over 30 seconds it will have error: Network error. Please check the connection to the server.

where can i extend the timeout ?

Reproduction

import re
import asyncio
from playwright.async_api import async_playwright


from langflow.custom import Component
from langflow.io import DictInput, Output
from langflow.schema import Data
from langflow.schema.message import Message

class Playwright(Component):
    display_name = "Playwright"
    description = "Fetch and scrape content from one or more URLs using Playwright."
    icon = "layout-template"
    name = "Playwright"
    inputs = [
        DictInput(
            name="urls",
            is_list=True,
            display_name="URLs and selectors",
            info="Key for URL, value for selector",
        )
    ]

    outputs = [
        Output(display_name="Data", name="data", method="fetch_content_data"),
    ]



    async def fetch_content_data(self) -> list[Data]:
        import time
        time.sleep(31)
        return

Expected behavior

expect playwright able to execute more than 30 seconds

Who can help?

No response

Operating System

FROM langflowai/langflow:latest

Langflow Version

1.0.19

Python Version

3.12

Screenshot

No response

Flow File

No response

d0uub avatar Dec 17 '24 07:12 d0uub