Miguel Moncada
03/29/2023, 3:26 PMnoisy-capuchin
Is this possible? if so, how would you recommend proceeding?
Thanks a lot in advance! 🙇flow_run_name
but it does not change the names displayed on the graph FYI (not sure what these correspond to TBH)Dominic Tarro
03/29/2023, 3:39 PMmy_flow.with_options(flow_run_name="meaningful name")(*params)
Miguel Moncada
03/29/2023, 3:39 PMget_file_subflow
flow run name was changed but I suppose what's being reflected on the timeline diagram is something else 🤔Dominic Tarro
03/29/2023, 3:41 PMFlow.with_options
isn't working then create an Issue on the GitHub repositoryMiguel Moncada
03/29/2023, 3:44 PMDominic Tarro
03/29/2023, 3:54 PMflow.with_options
Miguel Moncada
03/29/2023, 4:04 PM2.8.7
will keep you postedDominic Tarro
03/29/2023, 4:18 PMMiguel Moncada
03/29/2023, 4:19 PMimport_file_uri = get_import_file.with_options(
flow_run_name=f"get_file_{exc_date}")()
Finished in state Failed("Flow run encountered an exception. TypeError: with_options() got an unexpected keyword argument 'flow_run_name'\n")
Dominic Tarro
03/29/2023, 5:22 PMMiguel Moncada
03/29/2023, 5:23 PM@flow(
name="get_file_subflow",
)
def get_import_file(
) -> list:
import_file_uri = get_import_file.with_options(
name=f"get_file_{exc_date}")()
does not make it break but I need flow_run_name
I'm now using Orion v 2.8.7 and the Agent and runner are also using this versionDominic Tarro
03/29/2023, 6:16 PMflow_run_name
isn't working.
https://github.com/PrefectHQ/prefect/blob/main/tests/test_flows.py
Here are the unit tests for flows. Try mimicking some inside of your flow. For example
get_import_file_with_options = get_import_file.with_options(
flow_run_name=f"get_file_{exc_date}")
print(get_import_file.flow_run_name, get_import_file_with_options.flow_run_name)
In the toughest situations I might go into the prefect
library installed in my virtual environment and add print statements down the expected chain of events, looking for where things deviate from expected.Miguel Moncada
03/31/2023, 2:26 PM