You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To me, this is unexpected behavior as I would expect the deployment to fail because the parameter value "foobar" doesn't match the type of my_int and should therefore fail validation.
Instead, Prefect falls back to the model default values. This is especially problematic as not only the one parameter that fails validation is reset to the model default but also all other parameters (see my_string being "foo" instead of "bar") are reset.
For more complex default value configurations, this means that one single value that doesn't conform to the schema will cause all values to be reset to defaults without the user being warned about it in any form. From a developers perspective, it should be safe to assume that a created deployment matches exactly the provided defaults if the deployment command didn't report any error.
Version info
Version: 2.20.14
API version: 0.8.4
Python version: 3.10.12
Git commit: fb919c67
Built: Mon, Nov 18, 2024 4:41 PM
OS/Arch: linux/x86_64
Server type: cloud
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug summary
Deploying this flow (running prefect deploy command) will result in a deployment with my_int = 5 and my_string = "bar" as default values.
However, deploying this flow will result in a deployment with my_int = 3 and my_string = "foo" as default values.
To me, this is unexpected behavior as I would expect the deployment to fail because the parameter value "foobar" doesn't match the type of my_int and should therefore fail validation.
Instead, Prefect falls back to the model default values. This is especially problematic as not only the one parameter that fails validation is reset to the model default but also all other parameters (see my_string being "foo" instead of "bar") are reset.
For more complex default value configurations, this means that one single value that doesn't conform to the schema will cause all values to be reset to defaults without the user being warned about it in any form. From a developers perspective, it should be safe to assume that a created deployment matches exactly the provided defaults if the deployment command didn't report any error.
Version info
Additional context
No response
The text was updated successfully, but these errors were encountered: