GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - testdrivenio/simple-task-queue: asynchronous task queues using python's multiprocessing library

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
logs
logs
 
 
output
output
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
redis_queue.py
redis_queue.py
 
 
redis_queue_client.py
redis_queue_client.py
 
 
redis_queue_server.py
redis_queue_server.py
 
 
redis_queue_worker.py
redis_queue_worker.py
 
 
requirements.txt
requirements.txt
 
 
simple_pool.py
simple_pool.py
 
 
simple_queue.py
simple_queue.py
 
 
simple_task_queue.py
simple_task_queue.py
 
 
simple_task_queue_logging.py
simple_task_queue_logging.py
 
 
simple_task_queue_logging_separate_files.py
simple_task_queue_logging_separate_files.py
 
 
tasks.py
tasks.py
 
 

Repository files navigation

Asynchronous Task Queues in Python

Several implementations of asynchronous task queues in Python using the multiprocessing library and Redis.

Blog post: Developing an Asynchronous Task Queue in Python

Setup

  1. Fork/Clone

  2. Create and activate a virtual environment

  3. Install the dependencies

  4. Enter the Python shell and download the NLTK stopwords corpus:

    >> import nltk
    >> nltk.download('stopwords')
    
      [nltk_data] Downloading package stopwords to
      [nltk_data]     /Users/michael.herman/nltk_data...
      [nltk_data]   Unzipping corpora/stopwords.zip.
      True

Examples

Multiprocessing Pool:

$ python simple_pool.py

Multiprocessing Queue:

$ python simple_queue.py
$ python simple_task_queue.py

Logging to a single file:

$ python simple_task_queue_logging.py

Logging to separate files:

$ python simple_task_queue_logging_separate_files.py

Redis:

$ python redis_queue.py

About

asynchronous task queues using python's multiprocessing library

Topics

multiprocessingpythonredistask-queue

Resources

Readme
MIT license
Activity
Custom properties

Stars

70 stars

Watchers

9 watching

Forks

31 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.