Skip to main content

Python module for running tasks within a limited amount of threads

Project description

Descriptions can be found in the markdown README.

New features:

  • start_thread now returns the Thread object
  • Added ThreadStarter Class. This class can run a separate thread for the sole purpose of starting threads with MaxThreads
  • Removed ThreadStarter Class because the new way start_thread is written makes this class obsolete (it no longer blocks while waiting for a thread to become available).
  • Added the ability to prioritize tasks started by start_thread
  • Changed how the stop function works also added a start function that can be called after stop to restart
  • The priority variable can now be a tuple
  • Changed name of start_thread to the more accurate add_task (the old name can still be used)
  • Fixed bug in the stop function where it wouldn’t work if the priority variable in previously added tasks still in the queue was anything else than an integer.
  • Fixed bug in the empty_queue where it would empty the queue then block indefinitely.
  • Removed start function because tasks are now deleted in the stop function.
  • Added get_task_queue_count function
  • Fixed bug where a new thread could close before being added to the threads list
  • Fixed bug where add_task wouldn’t start a new thread when it should

Project details

Download files

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

Files for maxthreads, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size maxthreads-1.0.1-py3.5.egg (8.2 kB) File type Egg Python version 3.5 Upload date Hashes View
Filename, size maxthreads-1.0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page