Tom Manterfield
04/28/2022, 8:41 PMinvalid duration format
errors showing up in my Orion API, just checking if this is a bug or misconfig on my part?20:39:34.009 | ERROR | uvicorn.error - Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/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 "/usr/local/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 "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/message_logger.py", line 82, in __call__
raise exc from None
File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/message_logger.py", line 78, in __call__
await <http://self.app|self.app>(scope, inner_receive, inner_send)
File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 261, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
await <http://self.app|self.app>(scope, receive, _send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 92, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 147, in simple_response
await <http://self.app|self.app>(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
await <http://self.app|self.app>(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await <http://self.app|self.app>(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 408, in handle
await <http://self.app|self.app>(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 261, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
await <http://self.app|self.app>(scope, receive, _send)
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
await <http://self.app|self.app>(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await <http://self.app|self.app>(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle
await <http://self.app|self.app>(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 61, in app
response = await func(request)
File "/usr/local/lib/python3.9/site-packages/prefect/orion/utilities/server.py", line 87, in handle_response_scoped_depends
response = await default_handler(request)
File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 227, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
return await dependant.call(**values)
File "/usr/local/lib/python3.9/site-packages/prefect/orion/api/flow_runs.py", line 118, in flow_run_history
return await run_history(
File "/usr/local/lib/python3.9/site-packages/prefect/orion/database/dependencies.py", line 112, in async_wrapper
return await fn(*args, **kwargs)
File "/usr/local/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__ -> 28 -> states -> 0 -> sum_estimated_lateness
invalid duration format (type=value_error.duration)
Anna Geller
prefect version
output?Tom Manterfield
04/28/2022, 8:43 PMVersion: 2.0b3
API version: 0.3.0
Python version: 3.9.12
Git commit: 58a401bc
Built: Wed, Apr 13, 2022 11:21 AM
OS/Arch: linux/x86_64
Profile: default
Server type: ephemeral
Server:
Database: postgresql
Anna Geller
Tom Manterfield
04/28/2022, 8:48 PMAnna Geller
Tom Manterfield
04/28/2022, 8:49 PMAnna Geller
Tom Manterfield
04/28/2022, 8:51 PMAnna Geller
Tom Manterfield
04/28/2022, 8:52 PMAnna Geller
Tom Manterfield
04/28/2022, 9:04 PMAnna Geller
Tom Manterfield
04/28/2022, 9:07 PMAnna Geller
Tom Manterfield
04/28/2022, 9:08 PMAnna Geller
Tom Manterfield
04/28/2022, 9:10 PMsome engineers are working on adding storage to the DeploymentSpec so if that’s of any consolidation, you won’t need to rely on a global storage config in the near futureThis will be awesome. Storage has been by far the hardest part to fully automate deployment for.
Anna Geller
Tom Manterfield
04/28/2022, 9:14 PMAnna Geller
Tom Manterfield
04/28/2022, 9:15 PMAnna Geller
Tom Manterfield
04/28/2022, 9:17 PMAnna Geller
Tom Manterfield
04/28/2022, 9:26 PMPREFECT_API_URL
and PREFECT_AGENT_QUERY_INTERVAL
env vars set.Anna Geller
Tom Manterfield
04/29/2022, 3:31 PMAnna Geller
Tom Manterfield
04/29/2022, 3:38 PMAnna Geller
fsspec
interface which provides a lot of flexibility in that regard - if you want to check this: https://github.com/PrefectHQ/prefect/blob/orion/src/prefect/blocks/storage.pyTom Manterfield
04/29/2022, 4:06 PMAnna Geller
Marvin
04/29/2022, 4:14 PMTom Manterfield
04/29/2022, 4:51 PM