Skip to content

Commit

Permalink
redis_length endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinFrasch committed May 11, 2024
1 parent 54464d8 commit 4ba6064
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/vectordb_sync/vectordb_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ def empty_redis():
redis.delete('content_queue')
return jsonify({"message": "Redis queue cleared"}), 200

@app.route('/redis_lenght', methods=['POST'])
def redis_lenght():
len = redis.llen('content_queue')
return jsonify({"message": len}), 200




@app.route('/enqueue', methods=['POST']) # rename to enqueue_notion together with notion_Crwaler
def enqueue_ids():
Expand Down

0 comments on commit 4ba6064

Please sign in to comment.