Skip to content

Commit

Permalink
chore: production fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amunchet committed Oct 27, 2023
1 parent 0ab76c8 commit 7ebb164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ if [ -z "$PRODUCTION"]; then
else
echo "Starting production..."
cd /src
gunicorn --bind 0.0.0.0:7000 --worker-class gevent --workers 8 serve:app
gunicorn --bind 0.0.0.0:7000 --worker-class gevent --workers 16 serve:app
fi
2 changes: 1 addition & 1 deletion backend/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ def group_sorting_helper(x):

latest_metrics = {}
for item in mongo_client["labyrinth"]["metrics-latest"].find(
{}, sort=[("_id", pymongo.DESCENDING)]
{}, sort=[("_id", pymongo.ASCENDING)]
):
if "name" in item:
if item["name"] not in latest_metrics:
Expand Down

0 comments on commit 7ebb164

Please sign in to comment.