Luis Gallegos
01/20/2021, 11:28 PMwith Flow("example-flow") as flow:
example_param = Parameter('example')
print(example_param)
Thanks for your help!!Zanie
print(example_param.run())
Luis Gallegos
01/20/2021, 11:35 PMwith Flow("example-flow") as flow:
example_param = Parameter('example')
current_time = datetime.now().strftime("%Y-%m-%d-%H:%M:%S")
run_name = f"{example_param} - {current_time}"
rename_flow = RenameFlowRun(flow_run_name=run_name)
I try it inside a task, but doesn't work. (Any suggest?)
I will try with the run
method. ThanksZanie
Luis Gallegos
01/20/2021, 11:38 PMZanie
@task
def generate_new_name(param):
current_time = datetime.now().strftime("%Y-%m-%d-%H:%M:%S")
return f"{param} - {current_time}"
with Flow(...):
...
rename_flow = RenameFlowRun()(flow_run_name=generate_new_name(example_param))