Kiran
09/24/2025, 6:41 AMKiran
09/24/2025, 10:18 AMKiran
09/24/2025, 2:02 PMKiran
09/24/2025, 2:07 PMBrandon Robertson
09/24/2025, 2:13 PMprefect.exceptions.SignatureMismatchError: Function expects parameters [] but was provided with parameters ['cpu', 'env', 'image', 'memory', 'vpc_id', 'cluster', 'execution_role_arn', 'network_configuration', 'cloudwatch_logs_options', 'configure_cloudwatch_logs']
Any suggestions?Kurt Sys (Vintecc)
09/24/2025, 6:16 PM@pytest.mark.asyncio
async def test_my_favorite_flow():
result = await trigger_flow()
async with get_client() as client:
flow_runs: list[FlowRun] = await client.read_flow_runs()
if not flow_runs:
raise RuntimeError("No flow runs found")
flow_run: FlowRun = flow_runs[0]
task_runs: list[TaskRun] = await client.read_task_runs(
flow_run_filter=FlowRunFilter.model_validate({"id": {"any_": [str(flow_run.id)]}}),
limit=200,
)
So this gets the task runs of a flow run, but now, how can I get the arguments and return values of the task runs?Danylo Boleiko
09/25/2025, 12:59 PMManoj Ravi
09/25/2025, 3:03 PMTri
09/26/2025, 2:06 PMdeployment
that runs Flow A
and then Flow B
. However, I would also like to trigger Flow B
separately without runing Flow A
. Do I need to create a separate deployment for Flow B
?Ash Thaker
09/26/2025, 3:54 PMAliaksandr Sheliutsin
09/29/2025, 2:23 PMAriel Farbman
09/30/2025, 7:18 AMNicholas Pini
09/30/2025, 11:04 AMKiran
09/30/2025, 11:12 AMMateusz
10/01/2025, 2:24 AMTrung Dang
10/01/2025, 11:06 AMKevin Hu
10/01/2025, 5:07 PMTom Han
10/01/2025, 9:03 PMLev Zemlyanov
10/01/2025, 10:12 PMFugo Takefusa
10/01/2025, 10:45 PMcurl https://<prefect-server-url>/api/admin/version
)Nick Ackerman
10/03/2025, 5:17 PMfrom prefect import flow, task
@task
async def async_task():
raise ValueError("aah!")
@task
def not_async_task():
async_task.submit().result()
@flow
def my_flow():
not_async_task()
my_flow()
I get the following error:
File "/Users/nickackerman/code/python/practice/.venv/lib/python3.10/site-packages/prefect/transactions.py", line 624, in __aexit__
await self.reset()
File "/Users/nickackerman/code/python/practice/.venv/lib/python3.10/site-packages/prefect/transactions.py", line 492, in reset
await parent.rollback()
TypeError: object bool can't be used in 'await' expression
Is this way of using Prefect futures together with async tasks not allowed for some reason? More details in 🧵Kurt Sys (Vintecc)
10/04/2025, 11:56 AMfrom prefect import flow
from prefect.testing.utilities import prefect_test_harness
@flow
def my_favorite_flow():
return 42
def test_my_favorite_flow():
with prefect_test_harness(server_startup_timeout=120):
assert my_favorite_flow() == 42
I seem to be unable to make it work, I always get a 'timeout':
pytest tests/test_dummy.py
=============================================================================================================================== test session starts ===============================================================================================================================
platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.6.0
rootdir: /workspace
configfile: pytest.ini
plugins: devtools-0.12.2, docker-3.2.3, anyio-4.11.0, asyncio-0.23.8, xdist-3.8.0, postgresql-7.0.2, dash-3.2.0, hydra-core-1.3.2, Faker-37.8.0, cov-6.2.1
asyncio: mode=strict
collected 1 item
tests/test_dummy.py
F [100%]
== FAILURES ==
__ test_my_favorite_flow __
def test_my_favorite_flow():
> with prefect_test_harness(server_startup_timeout=120):
tests/test_dummy.py:11:
_ _
/usr/lib/python3.10/contextlib.py:135: in __enter__
return next(self.gen)
...py310/lib/python3.10/site-packages/prefect/testing/utilities.py:168: in prefect_test_harness
test_server.start(
_ _
self = <prefect.server.api.server.SubprocessASGIServer object at 0x77ee36386200>, timeout = 120
def start(self, timeout: Optional[int] = None) -> None:
...
> raise RuntimeError(error_message)
E RuntimeError: Timed out while attempting to connect to ephemeral Prefect API server.
...py310/lib/python3.10/site-packages/prefect/server/api/server.py:921: RuntimeError
-- Captured stderr call --
13:49:16.879 | INFO | prefect - Starting temporary server on <http://127.0.0.1:8787>
See <https://docs.prefect.io/v3/concepts/server#how-to-guides> for more information on running a dedicated Prefect server.
-- Captured log call --
INFO prefect:server.py:881 Starting temporary server on <http://127.0.0.1:8787>
See <https://docs.prefect.io/v3/concepts/server#how-to-guides> for more information on running a dedicated Prefect server.
Kyle Mulka
10/05/2025, 9:32 PM[Errno 2] No such file or directory: 'uvx'
Arthur Ren
10/05/2025, 10:03 PMKartik
10/06/2025, 8:25 AMShubham
10/07/2025, 3:05 PMKartik
10/08/2025, 5:39 AMJo Tryti
10/08/2025, 6:12 AMdef __invoke_dbt(command: List[str]) -> dbtRunnerResult:
runner = dbtRunner()
results = runner.invoke(command)
return results
def __invoke_preect_dbt(command: List[str]) -> dbtRunnerResult:
runner = PrefectDbtRunner()
results = runner.invoke(command)
return results
Anyone have any idea on what the cause could be?Tom Han
10/08/2025, 10:19 PMMetricTrigger
a Prefect-Cloud only thing? aka Self hosted prefect server can't use metric trigger for automations?chase albright
10/08/2025, 10:40 PM