s

    Shivam Shrey

    1 year ago
    Hi, Can we access the flow-run-id inside the flow when it's running? I mean, something like
    this.id
    in the currently running flow.
    davzucky

    davzucky

    1 year ago
    Yes perfect context contain this information. Look here in the dochttps://docs.prefect.io/api/latest/utilities/context.html
    You can access it from any task
    s

    Shivam Shrey

    1 year ago
    Thanks @davzucky 👍
    Prabin Mehta

    Prabin Mehta

    1 year ago
    prefect.context.get("flow_run_id")
    this will get you the flow run id.