§
    ÚÇÔi‰  ã                  óN   — d dl mZ d dlZd dlZd dlZddlmZmZ dddddœdd„ZdS )é    )ÚannotationsNé   )ÚWorkerConnectionÚWorkerConnectionImpl)Úinstance_idÚrewrite_gateway_endpointÚshutdown_signalsÚmax_worker_concurrencyÚappsú@list[tuple[inngest.Inngest, list[inngest.Function[typing.Any]]]]r   ú
str | Noner   ú"typing.Callable[[str], str] | Noner	   úlist[signal.Signals] | Noner
   ú
int | NoneÚreturnr   c               ó*   — t          | ||||¬¦  «        S )a§  
    Create a persistent connection to an Inngest server.

    Args:
    ----
        apps: A list of tuples, where each tuple contains an Inngest client and a list of functions.
        instance_id: A stable identifier for identifying connected apps. This can be a hostname or other identifier that remains stable across restarts. It defaults to the hostname of the machine.
        rewrite_gateway_endpoint: A function that rewrites the Inngest server gateway endpoint.
        shutdown_signals: A list of graceful shutdown signals to handle. Defaults to [SIGTERM, SIGINT].
        max_worker_concurrency: The maximum number of worker concurrency to use. Defaults to None.
    ©r   r   r   r	   r
   )r   r   s        ú^/root/projects/qq-shell/venv/lib/python3.11/site-packages/inngest/connect/_internal/connect.pyÚconnectr      s*   € õ&  ØØØ!9Ø)Ø5ðñ ô ð ó    )r   r   r   r   r   r   r	   r   r
   r   r   r   )	Ú
__future__r   ÚsignalÚtypingÚinngestÚ
connectionr   r   r   © r   r   ú<module>r      s€   ðØ "Ð "Ð "Ð "Ð "Ð "à €€€Ø €€€à €€€à >Ð >Ð >Ð >Ð >Ð >Ð >Ð >ð #ØCGØ48Ø)-ðð ð ð ð ð ð ð r   