mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-11 23:35:25 -05:00
This change introduced async execution for blocks and the execution engine. Paralellism will be achieved through a single process asynchronous execution instead of process concurrency. ### Changes 🏗️ * Support async execution for the graph executor * Removed process creation for node execution * Update all blocks to support async executions ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: <!-- Put your test plan here: --> - [x] Manual graph executions, tested many of the impacted blocks.
12 lines
310 B
Python
12 lines
310 B
Python
from typing import Type
|
|
|
|
import pytest
|
|
|
|
from backend.data.block import Block, get_blocks
|
|
from backend.util.test import execute_block_test
|
|
|
|
|
|
@pytest.mark.parametrize("block", get_blocks().values(), ids=lambda b: b.name)
|
|
async def test_available_blocks(block: Type[Block]):
|
|
await execute_block_test(block())
|