Hey guys, Is `FlowRunTask` expected to update the ...
# prefect-community
k
Hey guys, Is 
FlowRunTask
 expected to update the runs of the child flow in prefect cloud? I'm not seeing it. I'm trying to implement backfill functionality using 
FlowRunTask
 inside a generic wrapper flow. Any help on the idiomatic way to achieve backfill functionality would be appreciated.
n
Hi @karteekaddanki, can you clarify what you mean? The FlowRunTask is only responsible for creating a new Flow Run, which then becomes its own independent entity.
k
Sorry. Turns out I need to actually run the
FlowRunTask
that I created for it to actually run. I am trying to get it work. I'll post any further issues that I encounter in this thread. Thanks for your quick response.
n
No worries @karteekaddanki - I've also been notified that the
FlowRunTask
can await the return of the Flow Run it creates, and then take on the status of that Flow Run, so that may be helpful to what you're doing.
k
Okay I made it work. It wasn't working earlier because of the context in which i was initializing the task. This works without any issues
Copy code
task = FlowRunTask()
with Flow("foo") as flow:
    task.run()
but this doesn't
Copy code
with Flow("foo") as flow:
    task = FlowRunTask()    
    task.run()
This distinction is in the docs but might be worth highlighting.
n
Glad you got it solved @karteekaddanki! Feel free to PR the docs if you find that could use some clarifying.
k
Sure thing. Thanks so much for your help. You did an amazing job with Prefect. It solves a lot of our use cases.
🚀 2