Hi. Is there a GraphQL query I can do to get the d...
# prefect-server
s
Hi. Is there a GraphQL query I can do to get the default results location?
k
Try this, but I’m not sure it will work
Copy code
query{
   flow_run_state{
    id
    state
    result
  }
}
s
That doesn't really work. Here's what I have currently, which I want to run within a flow:
Copy code
ctx = prefect.context
cfg = ctx.get("config")
home_dir = cfg["home_dir"]
results_dir = f"{home_dir}\results"
Which only works for the default location (and should work for me)
k
I suspect it’ll be here:
Copy code
query{
   flow {
    serialized_flow
  }
}
but there’s a lot of stuff in there
Have not seen you here for a while btw lol
s
Yeah things have been way to busy at work the last while End of the year + people leaving = I couldn't really focus on Prefect Next year things will go better, I hope
a
@Stéphan Taljaard I don’t think we expose this via GraphQL. Can you perhaps define it as a global variable and use this way? Linking this thread since it’s related
🙌 1