Philip MacMenamin
08/14/2020, 9:15 PMvtk_flow
using the web GUI, and am attempting to register a flow:
$ python3 -m vtk_flow.flow
Traceback (most recent call last):
File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/nih-3d-resource-workflows/vtk_flow/flow.py", line 82, in <module>
f.register(project_name='vtk_flow')
File "/prefect-env/lib64/python3.7/site-packages/prefect/core/flow.py", line 1583, in register
no_url=no_url,
File "/prefect-env/lib64/python3.7/site-packages/prefect/client/client.py", line 729, in register
project_name, project_name
ValueError: Project vtk_flow not found. Run `client.create_project("vtk_flow")` to create it.
I thought Client was to talk to Prefect Cloud ?prefect backend server
)nicholas
08/14/2020, 9:28 PMPhilip MacMenamin
08/14/2020, 9:28 PMnicholas
08/14/2020, 9:30 PMPhilip MacMenamin
08/14/2020, 9:39 PMnicholas
08/14/2020, 9:40 PMPhilip MacMenamin
08/14/2020, 9:41 PMlts
(prefect-env) [root@ip-172-20-10-29 ~]# cat .prefect/config.toml
[server]
[server.ui]
graphql_url = "<http://3.218.151.216:4200/graphql>"
nicholas
08/14/2020, 9:44 PM[server]
endpoint = "<http://3.218.151.216:4200/graphql>"
Philip MacMenamin
08/14/2020, 10:16 PMnicholas
08/14/2020, 10:18 PMflow.register()
from, and is evaluated at runtime. Server defaults to localhost but that's relative to where you're registering the flow from. If you're registering from your local machine, your local Prefect config will need to be configured to point to your remote Server.