Skip to content

flowinsight run启动flow insight server后,执行demo/local_visualize.py脚本不能在前端查看到这个demo的数据流 #3

Description

@zhouhansheng

执行flowinsight run,对应执行到:
https://github.com/antgroup/flow-insight/blob/main/sdk/flow_insight/cli.py#L42-L56

app = create_app()
这里create_app对应代码:
https://github.com/antgroup/flow-insight/blob/main/sdk/flow_insight/api/fastapi_api.py#L583-L586

def create_app():
    """Create a FastAPI application instance."""
    server = FastAPIInsightServer()
    return server.app

由于没有执行到run函数:
https://github.com/antgroup/flow-insight/blob/main/sdk/flow_insight/api/fastapi_api.py#L112-L121
导致_process_record_queue函数没执行,所有emit_record无法将数据发送到engine,即:
https://github.com/antgroup/flow-insight/blob/main/sdk/flow_insight/api/fastapi_api.py#L108
await self.engine.record_event(record)
始终执行不到。

由于上面问题,运行demo会发现前台永远是空的。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions