jpuris
12/18/2023, 3:39 PMcurrently => desired
---
smoky-moose => product
giga-locus => discount
and so on..
This would be a massively positive change when it comes to monitoring the flows 🤔jpuris
12/18/2023, 3:43 PMfor entity in entities:
<http://logger.info|logger.info>(f"Processing entity '{entity}'")
process_entity(
entity=entity,
)
and the subflow is defined as
@flow(
cache_result_in_memory=False,
task_runner=SequentialTaskRunner(),
)
def process_entity(
entity,
) -> None:
logger = get_run_logger()
...
Jake Kaplan
12/18/2023, 3:44 PM@flow(flow_run_name=...)
when defining your subflowsJake Kaplan
12/18/2023, 3:45 PMJake Kaplan
12/18/2023, 3:46 PMfrom prefect import flow
@flow(flow_run_name="subflow1-{param1}")
def subflow1(param1):
print("Hello from a subflow!")
@flow(log_prints=True)
def my_flow():
print("Hello from a flow!")
subflow1("my-very-first-param")
if __name__ == '__main__':
my_flow()
Jake Kaplan
12/18/2023, 3:47 PMjpuris
12/18/2023, 3:49 PMTim Galvin
12/19/2023, 5:28 AM