Darren Liu
05/24/2023, 8:20 PM@flow(name="test", flow_run_name="dev > test")
def test():
return variables.get("test")
Zanie
05/24/2023, 8:29 PMvariables.get
outside the flow?Darren Liu
05/24/2023, 8:36 PMfrom prefect import flow, variables
bar = variables.get("test")
@flow
def main():
return bar
main()
Zanie
05/24/2023, 8:44 PMfrom 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 PMZanie
05/24/2023, 8:55 PMprefect version
output?Darren Liu
05/24/2023, 8:56 PMZanie
05/24/2023, 8:56 PMprefect version
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: cloud
Zanie
05/24/2023, 8:58 PM❯ 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: cloud
python example.py
Jake 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
)pip install git+<https://github.com/prefectHQ/prefect>
Darren Liu
05/24/2023, 9:01 PMprefect-gcp = {extras = ["bigquery", "cloud_storage", "secret_manager"], version = "^0.2.3"}