Carlos Gutierrez
06/01/2021, 3:21 PMflow.serialized_hash() for flow change detection in automated flow register processes. I found out that whenever a flow is registered with a particular task, lets say task_A , and then I update the values of the parameters passed to the task (imagine for instance task_A(var='typo_string') --> task_A(var='correct_string')), the serialized_hash() will remain invariant and thus the flow will not work according to the last changes because it will not bump a new version to the server. Would like to know if there is a better way to do this or I might be using the wrong approachKevin Kho
Carlos Gutierrez
06/01/2021, 3:26 PMKevin Kho
Carlos Gutierrez
06/01/2021, 3:38 PM@task
def reusable_task(section: str, uncontrolled_var: str):
execute_section(section=section, arg=uncontrolled_var)
And then in the flow I would do something like:
with case(some_parameter, True):
reusable_task(section="one", uncontrolled_var=some_parameter)
reusable_task(section="two", uncontrolled_var=some_other_parameter)
reusable_task(section="three", uncontrolled_var=some_other_other_parameter)Carlos Gutierrez
06/01/2021, 3:39 PMuncontrolled_var for another parameter would detect the change, but if I change any section to, for example section="four" this would make no effect in the flow schemaCarlos Gutierrez
06/01/2021, 3:40 PMKevin Kho
Kevin Kho
Marvin
06/01/2021, 4:09 PMCarlos Gutierrez
06/01/2021, 4:11 PM