/flbase

A simple streamlined task queue with Flask, Celery, Redis, and Firebase integration.

Primary LanguagePython

installing packages

pipenv install

run server

python server.py

run redis

redis-server

or run the server using sudo service

sudo service redis-server start

run celery worker

celery --app api.service worker --loglevel=info

delete all hanging task

celery --app api.service purge -f

running load test

locust -f scripts/loadtest.py --host http://localhost:5000/api --users 5000 --spawn-rate 100 --run-time 1m