Task queue, Long lived workers process parallelization, with Redis as backend
Project description
Meesee
Task queue, Long lived workers process parallelization, with Redis as backend. The project is still used in production and has to knowlegde been used in 3 companies in production setting.
Examples
Create my_func that will
- print starting message.
- Sleep 1 second.
- print a ending message.
Let's start 10 of those.
import time
from meesee import startapp
def my_func(item, worker_id):
print("hello, look at me")
time.sleep(1)
print('finished item', locals())
startapp(my_func, workers=10)
Open another terminal, Let's produce some tasks
from meesee import RedisQueue, config
def produce(items):
r = RedisQueue(**config)
for i in range(items):
r.send(i)
produce(10)
Great, the placement of both scripts can be on any machine with connectivity to the redis instance.
Prerequisites
Redis
For Debian, Ubuntu
sudo apt-get install redis-server
For Centos, Red Hat
sudo yum install redis
Installing
Create a virtualenv for your project. Install meesee:
$ . /path/to/virtualenv/bin/activate
$ pip install meesee
Authors
- Melvin Bijman
- Mark Moes
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file meesee-0.9.4.tar.gz
.
File metadata
- Download URL: meesee-0.9.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1550dcf5bc1468cbef67117b7035f8f94d0a0477921c38f995e7f4af2f3760a4 |
|
MD5 | c2a9270bffcb5d7e8417c89184f6e08c |
|
BLAKE2b-256 | 6f8dff35374105600abebdf89469c954a23eecc05c6890899710683fc31b3f1f |
File details
Details for the file meesee-0.9.4-py2.py3-none-any.whl
.
File metadata
- Download URL: meesee-0.9.4-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 655e4d9336ce19fe6d73af6456b14338ce3411578e32f53213d02dcd80a86d2f |
|
MD5 | 8658a21b8d3bd8200ba7cb9f49bdcbe4 |
|
BLAKE2b-256 | 65b842a2a44e9f7ae555feda470e7359f4bd3f89b528b5af3f03e51fca62f171 |