Chu
11/14/2025, 7:42 PMresult_storage from the parent flow, even if the subflow had its own result_storage set?Nate
11/14/2025, 7:42 PMNate
11/14/2025, 7:43 PMNate
11/14/2025, 7:43 PMlog_prints or result_storage
if children don't specify then they'll inherit but they can opt outChu
11/14/2025, 7:44 PMget_run_context() first polls the TaskRunContext before the FlowRunContext (code). Does this mean that if I'm running a Flow under a Task with result_storage set, it will use that result_storage instead of its own?Nate
11/14/2025, 7:45 PMChu
11/14/2025, 7:46 PMresult_storage instead of its own. I'll set up a minimal reproducible example if it's helpful.Nate
11/14/2025, 7:46 PMChu
11/14/2025, 7:50 PMfrom prefect import flow, task
@flow(log_prints=False)
def flow1():
print('This should not be logged!') # <- This is logged!
@flow(log_prints=True)
def flow2():
print('This should be logged!')
task(flow1)()
if __name__ == "__main__":
flow2()
This reproduces the problemChu
11/14/2025, 7:57 PMNate
11/14/2025, 8:03 PMNate
11/14/2025, 8:09 PMNate
11/14/2025, 8:09 PMtask(flow1)()Nate
11/14/2025, 8:09 PMSebastian S
11/14/2025, 9:12 PMSebastian S
11/14/2025, 9:13 PMSebastian S
11/14/2025, 9:13 PMNate
11/14/2025, 9:17 PMgit+<https://github.com/prefecthq/prefect.git@main> with uv etc or even point at this branch until its merged into main (would not recommend bc we could merge/delete branch at any time)
Out of interest, what's the usual cadence from PR merge => new release?we release on thursdays
Sebastian S
11/14/2025, 9:18 PM