https://prefect.io logo
Title
s

Sander

05/02/2022, 6:41 PM
Hi, is there some page where I can upvote features?
e

Evan Sutherland

05/02/2022, 6:42 PM
Hey Sander, that’s a great question. Let me check with our product team
k

Kevin Kho

05/02/2022, 6:43 PM
Is there a specific feature request you are looking for? Normally we ask people to chime in the open Github issues
s

Sander

05/02/2022, 6:45 PM
I'm currently trying to get better insight into my processes and would very much like to start working with 2.0. One of the main bottlenecks at the moment is getting the GUI up and running on a separate server. There is a ticket for this (but seems to be closed at the moment).
I'm a bit constrained in my environment so running it in some container is very hard.
k

Kevin Kho

05/02/2022, 6:47 PM
Ah this one is very much on our radar and you don’t need to upvote it or anything.
:upvote: 1
s

Sander

05/02/2022, 6:49 PM
Is there any eta at the moment. Just so that I have any idea about that?
k

Kevin Kho

05/02/2022, 6:49 PM
I asked some people if it will be next release and I’ll get back to you when I hear from them 🙂
Yes confirmed next release
🚀 2
s

Sander

05/02/2022, 6:58 PM
I am pretty excited about the whole project and looking forward to getting started!
k

Kevin Kho

05/02/2022, 7:02 PM
Thank you for the patience! Looking forward to seeing what you do with it
s

Sander

05/16/2022, 8:18 AM
Hi @Kevin Kho can you confirm this fix about the GUI is in 2.0b4?
k

Kevin Kho

05/16/2022, 1:33 PM
I am following up because the issue is closed but someone reported it didnt work for them
s

Sander

05/16/2022, 1:50 PM
Ik good to know. I think the main landing page may have some issues still, but the other pages work better. I also noticed some foreign key constraint issues when trying to reset the database but that's something else:)
k

Kevin Kho

05/16/2022, 2:44 PM
You have to set a different variable
PREFECT_ORION_UI_API_URL
The last places to change were removed here
s

Sander

05/17/2022, 8:15 AM
Hi, do you know what the variable should be set to?
Seems that still quite some parts of the gui send requests to 127.0.0.1.
k

Kevin Kho

05/17/2022, 1:31 PM
Yeah there were still some hardcoded parts, which is why there was a PR to fix the last mentions. Maybe you can try pulling from master.
But I think that’s just some pages. Most should already be fine if you set them? Should be
<http://YOUR-IP:4200/api>
s

Sander

05/17/2022, 1:40 PM
Are there nightly builds:)?
For some reason I wasn't able to go to the link (page not found)
Let me check in a bit.
k

Kevin Kho

05/17/2022, 1:43 PM
Oh my bad, it must be private. I’ll find out if there are nightly builds
Ok so you could install the orion branch of the prefect repo but this PR is not there yet, let me ask if we can get it in
s

Sander

05/17/2022, 2:07 PM
I'm behind a firewall so curious how that will go :)
Let me know when I can clone and build. Nightly would be best though.
k

Kevin Kho

05/17/2022, 3:54 PM
There will be a release today
🚀 1
s

Sander

05/18/2022, 10:41 AM
I see the release. Will check it out:)
Works like a charm at first glance
There seems to be an issue with the run_history api (not new though)
Line 158
k

Kevin Kho

05/18/2022, 2:14 PM
What is the issue?
s

Sander

05/19/2022, 7:01 AM
Sorry for the delayed response. When running this query via the gui.
?filter=flow:"Some+Run"&filter=flow_run_last:1w&filter=flow_run_next:1w&filter=flow_run_state:COMPLETED
I get the following error
Encountered exception in request:
Traceback (most recent call last):
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in _call_
    await <http://self.app|self.app>(scope, receive, _send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in _call_
    raise exc
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in _call_
    await <http://self.app|self.app>(scope, receive, sender)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in _call_
    raise e
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in _call_
    await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 670, in _call_
    await route.handle(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle
    await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/utilities/server.py", line 101, in handle_response_scoped_depends
    response = await default_handler(request)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
    return await dependant.call(**values)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/api/flow_runs.py", line 118, in flow_run_history
    return await run_history(
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/database/dependencies.py", line 112, in async_wrapper
    return await fn(*args, **kwargs)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/api/run_history.py", line 158, in run_history
    return pydantic.parse_obj_as(List[schemas.responses.HistoryResponse], records)
  File "pydantic/tools.py", line 38, in pydantic.tools.parse_obj_as
  File "pydantic/main.py", line 331, in pydantic.main.BaseModel._init_
pydantic.error_wrappers.ValidationError: 1 validation error for ParsingModel[List[prefect.orion.schemas.responses.HistoryResponse]]
__root__ -> 5 -> states -> 0 -> sum_estimated_lateness
  invalid duration format (type=value_error.duration)
INFO:     10.231.40.172:55817 - "POST /flow_runs/history HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 366, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in _call_
    return await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/applications.py", line 269, in _call_
    await super().__call__(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/applications.py", line 124, in _call_
    await self.middleware_stack(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in _call_
    raise exc
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in _call_
    await <http://self.app|self.app>(scope, receive, _send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in _call_
    await self.simple_response(scope, receive, send, request_headers=headers)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
    await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in _call_
    raise exc
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in _call_
    await <http://self.app|self.app>(scope, receive, sender)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in _call_
    raise e
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in _call_
    await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 670, in _call_
    await route.handle(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 418, in handle
    await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/applications.py", line 269, in _call_
    await super().__call__(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/applications.py", line 124, in _call_
    await self.middleware_stack(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in _call_
    raise exc
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in _call_
    await <http://self.app|self.app>(scope, receive, _send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in _call_
    raise exc
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in _call_
    await <http://self.app|self.app>(scope, receive, sender)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in _call_
    raise e
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in _call_
    await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 670, in _call_
    await route.handle(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle
    await <http://self.app|self.app>(scope, receive, send)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/utilities/server.py", line 101, in handle_response_scoped_depends
    response = await default_handler(request)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
    return await dependant.call(**values)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/api/flow_runs.py", line 118, in flow_run_history
    return await run_history(
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/database/dependencies.py", line 112, in async_wrapper
    return await fn(*args, **kwargs)
  File "/data/workspace/prefect/.venv/lib/python3.9/site-packages/prefect/orion/api/run_history.py", line 158, in run_history
    return pydantic.parse_obj_as(List[schemas.responses.HistoryResponse], records)
  File "pydantic/tools.py", line 38, in pydantic.tools.parse_obj_as
  File "pydantic/main.py", line 331, in pydantic.main.BaseModel._init_
pydantic.error_wrappers.ValidationError: 1 validation error for ParsingModel[List[prefect.orion.schemas.responses.HistoryResponse]]
__root__ -> 5 -> states -> 0 -> sum_estimated_lateness
  invalid duration format (type=value_error.duration)
I'm running b5
Let me know if it's best to file a bug report on GitHub.
k

Kevin Kho

05/19/2022, 2:17 PM
Yeah I just had to replicate one another issue. This is next on my list to go through
Ah yes I’d appreciate an issue on Github for the most recent thing you posted. I can also write it if you want
s

Sander

05/19/2022, 2:48 PM
Let me try to add it later today.