Skip to main content

A threadpool implementation

Project description

My Threadpool project

Simplify threadpool operations

Usage

Override Job do your work in the execute method, set result to JobCompletionStatus when it's done.
The actual thread will use this to determine what to do next.

A MemoryJobQueue is provided, override JobQueue to handle specific cases, like db queues, etc.
The ThreadPool object sometimes doesn't exit correctly, and python task needs to be killed - known bug, working on it.
Most of the time it works fine with no issues. Check the unit tests for more usage details

Building

python -m build

Deploying

python -m twine upload --repository testpypi dist/*

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

sb_threadpool-0.0.7.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

sb_threadpool-0.0.7-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file sb_threadpool-0.0.7.tar.gz.

File metadata

  • Download URL: sb_threadpool-0.0.7.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for sb_threadpool-0.0.7.tar.gz
Algorithm Hash digest
SHA256 364d125d6973d5d224935d1a5ef4aa7254a26dbaf63b53a8cfc03279fe3854c4
MD5 fdd1a5047bd9c669b3bd0207933a9fde
BLAKE2b-256 dda92cd2d3c482e895a6da8fffca02335663df80f7d2e79306153f75bd7e1f5c

See more details on using hashes here.

File details

Details for the file sb_threadpool-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for sb_threadpool-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 460286b059bc94da6e7563f083b584520a0f68a80de00d28bb94bca858651d16
MD5 51a85e25f977473a569f0ff96d70546e
BLAKE2b-256 c8260c9a0769e4988a88aa3680614e60760f7c403855b7f67d0b840064bc1661

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