Darren Liu
05/24/2023, 8:20 PM@flow(name="test", flow_run_name="dev > test")
def test():
return variables.get("test")Zanie
variables.get outside the flow?Zanie
Darren Liu
05/24/2023, 8:36 PMDarren Liu
05/24/2023, 8:36 PMDarren Liu
05/24/2023, 8:38 PMfrom prefect import flow, variables
bar = variables.get("test")
@flow
def main():
return bar
main()Zanie
Zanie
Zanie
from prefect import flow, variables
@flow(name="test", flow_run_name="dev > test")
def test():
return variables.get("test")
test()
runs fine for me on 2.10.9Darren Liu
05/24/2023, 8:50 PMDarren Liu
05/24/2023, 8:53 PMZanie
prefect version output?Darren Liu
05/24/2023, 8:56 PMZanie
prefect versionZanie
poetry run prefect version)Darren Liu
05/24/2023, 8:57 PM❯ poetry run prefect version
Version: 2.10.9
API version: 0.8.4
Python version: 3.10.4
Git commit: 1655c1fa
Built: Thu, May 11, 2023 2:29 PM
OS/Arch: darwin/x86_64
Profile: default
Server type: cloudZanie
Zanie
❯ prefect version
Version: 2.10.9
API version: 0.8.4
Python version: 3.10.10
Git commit: 1655c1fa
Built: Thu, May 11, 2023 2:29 PM
OS/Arch: darwin/arm64
Profile: prod
Server type: cloudZanie
python example.pyJake Kaplan
05/24/2023, 8:59 PMmain and see if it's resolved from the linked pr above? (the fix would be included in the next release 2.10.11)Jake Kaplan
05/24/2023, 8:59 PMpip install git+<https://github.com/prefectHQ/prefect>Darren Liu
05/24/2023, 9:01 PMDarren Liu
05/24/2023, 9:01 PMprefect-gcp = {extras = ["bigquery", "cloud_storage", "secret_manager"], version = "^0.2.3"}Darren Liu
05/24/2023, 9:06 PM