https://prefect.io logo
b

Bruno Murino

03/08/2022, 12:48 PM
Hi everyone — I’m trying to start a new flow run by using the StartFlowRun prefect task, like in the screen grab, but I’m getting an error:
TypeError: StartFlowRun.run() missing 1 required positional argument: 'self'
. I don’t know if I’m doing something wrong, but it’s a bit unclear what to do
FYI I’m calling this outside any prefect flow or etc, just a standalone python code
k

Kevin Kho

03/08/2022, 2:19 PM
I think you just need another
()
for the init
Copy code
StartFlowRun().run()
upvote 1