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

Andreas Nord

03/11/2022, 4:34 PM
Hi! I am trying to register a flow onto prefect cloud with docker config:
Copy code
flow.run_configs = DockerRun(image="myrepo/image")
flow.register(project_name)
But it shows up incorrectly as UniversalRun in cloud UI. If I add the runconfig when I define the flow it works perfectly:
Copy code
with Flow("myflow", DockerRun(image="myrepo/image") as flow:
Any suggestion to what I am doing wrong in the first approach would be appreciated
k

Kevin Kho

03/11/2022, 4:34 PM
I think it should be
flow.run_config
?
flow.run_config = DockerRun(image="myrepo/image")
a

Andreas Nord

03/11/2022, 4:36 PM
🤦‍♂️ python is too flexible sometimes
cheers
k

Kevin Kho

03/11/2022, 4:36 PM
No worries! 😆
5 Views