mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-07-01 21:04:00 -04:00
26 lines
473 B
Python
26 lines
473 B
Python
import asyncio
|
|
import multiprocessing
|
|
import time
|
|
|
|
import pytest
|
|
|
|
from llama_deploy.control_plane import ControlPlaneConfig
|
|
from llama_deploy.message_queues.simple import SimpleMessageQueueConfig
|
|
|
|
from .utils import deploy_core
|
|
|
|
|
|
def run_async_core():
|
|
asyncio.run(deploy_core(ControlPlaneConfig(), SimpleMessageQueueConfig()))
|
|
|
|
|
|
@pytest.fixture
|
|
def core():
|
|
p = multiprocessing.Process(target=run_async_core)
|
|
p.start()
|
|
time.sleep(3)
|
|
|
|
yield
|
|
|
|
p.kill()
|