https://prefect.io logo
a

Arnaldo Russo

02/21/2022, 2:02 PM
Hi there! Anyone could explain where I set the 'config', while running SatartFlowRun ? I'm using with
new_flow_context=prefect.context.get('config')
k

Kevin Kho

02/21/2022, 2:03 PM
Hi @Arnaldo Russo! Do you mean RunConfig or config.toml?
a

Arnaldo Russo

02/21/2022, 2:03 PM
exactly. I don't know which config is this
k

Kevin Kho

02/21/2022, 2:04 PM
You don’t need to pass anything. That is to propagate the current context to the new Flow Run if you need it (think passing down things like flow start time)
a

Arnaldo Russo

02/21/2022, 2:05 PM
trying to fix an old prefect script and I did not understand what and where is this 'config'
goood!
k

Kevin Kho

02/21/2022, 2:05 PM
Yeah you don’t really need to do anything unless you are trying to get something from the parent flow to the child flow
a

Arnaldo Russo

02/21/2022, 2:08 PM
it's right! Is a flow with many flows. In this case how I could access this config?
k

Kevin Kho

02/21/2022, 2:10 PM
That code you posted looks like it would be the pay to pass the
config
. If you are asking how to know what is inside, I suggest you print/log it, but you have to do it inside a task
a

Arnaldo Russo

02/21/2022, 2:11 PM
cool!
tks a lot
5 Views