Sean Conroy
12/02/2022, 5:12 PMTraceback (most recent call last):
ERROR | asyncio - Task exception was never retrieved
"future: <Task finished name='Task-36' coro=<<async_generator_athrow without __name__>()> exception=KeyError(139836083032272)>"
File "/usr/local/lib/python3.8/dist-packages/prefect/utilities/asyncutils.py", line 263, in on_shutdown yield
GeneratorExit
During handling of the above exception, another exception occurred:
File "/usr/local/lib/python3.8/dist-packages/prefect/utilities/asyncutils.py", line 267, in on_shutdown
EVENT_LOOP_GC_REFS.pop(key)
KeyError: 139836083032272"
Bianca Hoch
12/02/2022, 5:18 PMSean Conroy
12/02/2022, 5:19 PMZanie
12/02/2022, 6:29 PMprefect orion start
?Sean Conroy
12/02/2022, 6:32 PMprefect orion start
anywhere.import os
import json
from flask import Flask, request
import logging
import traceback
from prefect.orion.schemas.states import StateType
app = Flask(__name__)
#################################################
#
# Flask routes
#
#################################################
@app.route('/', methods=['POST'])
def default_route_main():
force_exception = location_success = False
try:
# Run flow
flow_state = my_flow(return_state=True)
force_exception = flow_state.result()
flow_success = flow_state.type == (StateType.COMPLETED)
Zanie
12/02/2022, 6:44 PMSean Conroy
12/02/2022, 6:45 PMZanie
12/02/2022, 6:48 PMprefect orion start
then set the PREFECT_API_URL
to localhost in your config.. let me seeSean Conroy
12/02/2022, 6:49 PMZanie
12/02/2022, 6:50 PMSean Conroy
12/02/2022, 6:51 PMZanie
12/02/2022, 6:52 PMprefect kubernetes manifest orion