hey there, i'm trying to use a task's result as a directory name. is this possible?
✅ 1
c
Christopher Boyd
10/28/2022, 3:08 PM
depends on what a tasks result is, I don’t see why not
the result itself is whatever the return is, so you could treat it functionally just like a variable and write to a directory with the result, it’s basically the concept of persistence
j
Jon
10/28/2022, 3:46 PM
thx, this was helpful
i needed to pass it this
prefect.context.get("flow_run_id")
🙌 1
c
Christopher Boyd
10/28/2022, 5:22 PM
Awesome - I think I misunderstood your initial question of if you could, so good that you got the how part!