76
77
78
79
@@ -8962,7 +8961,16 @@
301
302
303
-304 | @app.command()
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
| @app.command()
async def deploy(
entrypoint: str = typer.Argument(
None,
@@ -9101,6 +9109,11 @@
" provided, this flag will be ignored."
),
),
+ prefect_file: Path = typer.Option(
+ Path("prefect.yaml"),
+ "--prefect-file",
+ help="Specify a custom path to a prefect.yaml file",
+ ),
ci: bool = typer.Option(
False,
"--ci",
@@ -9150,8 +9163,9 @@
"enforce_parameter_schema": enforce_parameter_schema,
}
try:
- deploy_configs, actions = _load_deploy_configs_and_actions(ci=ci)
-
+ deploy_configs, actions = _load_deploy_configs_and_actions(
+ prefect_file=prefect_file, ci=ci
+ )
parsed_names = []
for name in names:
if "*" in name:
@@ -9177,6 +9191,7 @@
actions=actions,
deploy_all=deploy_all,
ci=ci,
+ prefect_file=prefect_file,
)
else:
# Accommodate passing in -n flow-name/deployment-name as well as -n deployment-name
@@ -9189,6 +9204,7 @@
actions=actions,
options=options,
ci=ci,
+ prefect_file=prefect_file,
)
except ValueError as exc:
exit_with_error(str(exc))
diff --git a/versions/unreleased/guides/creating-human-in-the-loop-workflows/index.html b/versions/unreleased/guides/creating-human-in-the-loop-workflows/index.html
index ef0c6399d9..790eca2bd6 100644
--- a/versions/unreleased/guides/creating-human-in-the-loop-workflows/index.html
+++ b/versions/unreleased/guides/creating-human-in-the-loop-workflows/index.html
@@ -8731,7 +8731,8 @@ Creating Human-in-the-Loop Workflo
When a flow run is paused or suspended, you can receive input from the user. This is useful when you need to ask the user for additional information or feedback before resuming the flow run.
To receive input you must use the wait_for_input parameter in the pause_flow_run or suspend_flow_run functions. This parameter accepts a subclass of prefect.input.RunInput . RunInput is a subclass of pydantic.BaseModel and can be used to define the input that you want to receive:
-from prefect.input import RunInput
+from prefect import flow, pause_flow_run
+from prefect.input import RunInput
class UserNameInput(RunInput):
name: str
@@ -8788,7 +8789,7 @@ Handling custom validation
|