https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Marcin Grzybowski

06/01/2022, 2:00 PM
Is there a way to see Flow name on radar? I only see those generated names "eminent-wolf" or something. Can I see parameters passed to flow/task ?
a

Anna Geller

06/01/2022, 2:02 PM
we plan to include an option to provide more customized flow run names in the future re parameter values: this would be harder to do and if you need visibility into which parameters were used for a flow run, you can log this info in your flow or task
1
just to be sure: you mean that for subflows, correct?
m

Marcin Grzybowski

06/01/2022, 2:08 PM
yes
a

Anna Geller

06/01/2022, 2:21 PM
looking more closely, I can't replicate the issue - the Radar view shows the actual subflow names radar than the flow run names - can you explain more? maybe I didn't understand testing both issues you raised today in this example flow - passing data and run names:
Copy code
from prefect import flow


@flow
def subflow_first(x: int = 42) -> int:
    print("I am a first subflow!")
    return x


@flow
def second_subflow(x) -> int:
    print("I am a second subflow!")
    return x


@flow
def parent_flow():
    data = subflow_first().result()
    second_subflow(data)


if __name__ == "__main__":
    parent_flow()
m

Marcin Grzybowski

06/01/2022, 3:07 PM
maybe you havet to have task in them? i dont know
I only see tasks names
oh, that strange. I've just tested your example and see no names... Something wrong with my environment/prefect version perhaps ?
a

Anna Geller

06/01/2022, 7:55 PM
Can you upgrade to the latest version? or can you share
prefect version
?
m

Marcin Grzybowski

06/01/2022, 7:56 PM
Copy code
(prefect2.0) marcin@WSW-5M78J5J:/mnt/h/projects/prefect2.0$ prefect version
Version:             2.0b5
API version:         0.3.1
Python version:      3.9.5
Git commit:          7b27c7cf
Built:               Tue, May 17, 2022 4:54 PM
OS/Arch:             linux/x86_64
Profile:             default
Server type:         ephemeral
Server:
  Database:          sqlite
  SQLite version:    3.31.1
a

Anna Geller

06/01/2022, 8:09 PM
wow, this is weird, thanks for reporting that - I can confirm that using ephemeral API, I get the same result with animal names, but using Cloud 2.0 it's fixed
@Marvin open "Radar view of a parent flow with subflow is displayed differently using ephemeral vs. Cloud 2.0 APIs"
2 Views