Skip to main content

Add a short description here!

Project description

Project generated with PyScaffold PyPI-Server

Scheduled Thread Pool Executor

Scheduled Thread Pool Executor implementation in python

Makes use of delayed queue implementation to submit tasks to the thread pool.

Usage

from scheduled_thread_pool_executor import ScheduledThreadPoolExecutor
scheduled_executor = ScheduledThreadPoolExecutor(max_workers=5)
scheduled_executor.schedule(task, 0)  # equals to schedule once, where task is a callable
scheduled_executor.schedule_at_fixed_rate(task, 0, 5)  # schedule immediately and run periodically for every 5 secs
scheduled_executor.schedule_at_fixed_delay(task, 5, 10)  # schedule after 5secs (initial delay) and run periodically for every 10secs

Note

This project has been set up using PyScaffold 4.1.1. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

scheduled_thread_pool_executor-1.0.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file scheduled_thread_pool_executor-1.0.1.tar.gz.

File metadata

  • Download URL: scheduled_thread_pool_executor-1.0.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for scheduled_thread_pool_executor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0648e84d2b092b8df2687987ff583ab6df4efd102b6d93a5f0df4f189858477e
MD5 54627c1c10fc1c197b9d2f00917cf26b
BLAKE2b-256 baa30249bbfe4c7f31f2de62d03b3ad26d19314a03177a1068e7a1f61e7b21e6

See more details on using hashes here.

File details

Details for the file scheduled_thread_pool_executor-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: scheduled_thread_pool_executor-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for scheduled_thread_pool_executor-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4db31a2f879e726f5100749cd69f0618e0d008adc62f1aa5423be6ec5e52a390
MD5 5e1e51c1ffe42105e1092f5da2a80baa
BLAKE2b-256 667d18674e1a892d75e33038825a64ac86998f4e13cd0172dc1f9e60687e5c7a

See more details on using hashes here.

Supported by

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