Skip to main content

Task queue, Long lived workers process parallelization, with Redis as backend

Project description

Meesee

Build Status

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

  1. print starting message.
  2. Sleep 1 second.
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meesee-0.9.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

meesee-0.9.4-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

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

Hashes for meesee-0.9.4.tar.gz
Algorithm Hash digest
SHA256 1550dcf5bc1468cbef67117b7035f8f94d0a0477921c38f995e7f4af2f3760a4
MD5 c2a9270bffcb5d7e8417c89184f6e08c
BLAKE2b-256 6f8dff35374105600abebdf89469c954a23eecc05c6890899710683fc31b3f1f

See more details on using hashes here.

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

Hashes for meesee-0.9.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 655e4d9336ce19fe6d73af6456b14338ce3411578e32f53213d02dcd80a86d2f
MD5 8658a21b8d3bd8200ba7cb9f49bdcbe4
BLAKE2b-256 65b842a2a44e9f7ae555feda470e7359f4bd3f89b528b5af3f03e51fca62f171

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page