airbnb / knowledge-repo

A next-generation curated knowledge sharing platform for data scientists and other technical professions.
Apache License 2.0
5.47k stars 688 forks source link

Refactor the code in FlaskDeployer #747

Closed csharplus closed 1 year ago

csharplus commented 1 year ago

Description of changeset:

In this refactored version, the run method has been split into two separate methods: start and run. The start method starts indexing, and the run method runs the application. This separation makes the code more readable and maintainable.

Test Plan: CI

Reviewers: @JJJ000 @mengting1010