Viktor Moyseyenko
04/27/2023, 10:39 AM@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?nicholas
04/27/2023, 2:04 PMViktor Moyseyenko
04/27/2023, 6:12 PM