https://prefect.io logo
Title
v

Viktor Moyseyenko

04/27/2023, 10:39 AM
Hello All! I have an issue - Custom Deployment Run ignores changed boolean parameters during Deployments Custom Run and just uses the ones set during deployment creation. 1. Sample flow:
@flow
def params_test(
    show_prefect_version: bool = False,
    show_python_version: bool = False,
):
    logger = get_run_logger()
    if show_prefect_version:
        version = prefect.__version__
        <http://logger.info|logger.info>(f":rocket: Prefect = {version}, API = {API}.")
    if show_python_version:
        <http://logger.info|logger.info>(f":snake: Python = {python_version()}.")
    ...
2. I've deployed this flow with both parameters set to True (see attached image #1). 3. During the Custom I set both parameters to False using toggle sliders (attached image #2). During the flow run I can see that both parameters are set incorrectly - I see all changes done are ignored and only values set during deployment creation are being kept (both are True again): • _show_prefect_version_ set to True • _show_python_version_ set to True (see attached image #3) Please suggest - am I using/understand parameters incorrectly or is this some kind of an issue/bug with ignoring setting of parameters in Custom run? @nicholas - can this be related to the issues you are working on?
1
n

nicholas

04/27/2023, 2:04 PM
Hi @Viktor Moyseyenko - this is unrelated but I’ll take a look nonetheless, something is definitely fishy there
I’m able to replicate @Viktor Moyseyenko - investigating a solution
Found the issue, fix will go out today - thanks for the report @Viktor Moyseyenko
🙌 2
v

Viktor Moyseyenko

04/27/2023, 6:12 PM
Thank you, @nicholas for quick action!