<@ULVA73B9P> `run_deployment(name="my-flow/my-depl...
# marvin-in-the-wild
j
@Marvin
run_deployment(name="my-flow/my-deployment", timeout=0, as_subflow=False)
returns the following error:
run_deployment() got an unexpected keyword argument 'as_subflow'
m
It seems there might be some confusion about
run_deployment
, as the error message you encountered indicates that it does not recognize the
as_subflow
keyword argument. However, as you can see from the documentation excerpt here, the
as_subflow
argument is indeed mentioned and intended to control the behavior of linking the scheduled flow run as a subflow. This information points to the possibility of an inconsistency between the documentation and the behavior of the
run_deployment
function, or it might be specific to the version of Prefect being used. To resolve this, I would recommend checking the exact version of Prefect you are using and ensuring that it matches the version of the documentation you are referencing, as functionality can differ between versions. If there is an inconsistency in the Prefect version that's causing the error, updating Prefect to the latest version might solve the issue. If the problem persists after checking the version and the documentation, I suggest looking up any relevant GitHub issues or considering opening a new issue in the Prefect GitHub repository to report this discrepancy.
1
j
Updating Prefect worked!
catjam 1