Skip to main content

An advanced package to run tasks concurrently with retries and support for thread and process pools.

Project description

My Advanced Task Runner

This package provides an advanced way to execute a function concurrently using either a thread pool or a process pool. It supports retries for failed tasks and collects task results.

Installation

  pip install xh-advanced-task-runner

Example

from task_runner.task_runner import run_task_in_pool, fetch_url
    
if __name__ == '__main__':
    # Run 5 tasks in parallel using thread pool
    results = run_task_in_pool(fetch_url, 5, url="https://example.com", iterations=10)
    print(results)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

xh_advanced_task_runner-0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xh_advanced_task_runner-0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file xh_advanced_task_runner-0.1.tar.gz.

File metadata

  • Download URL: xh_advanced_task_runner-0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.8

File hashes

Hashes for xh_advanced_task_runner-0.1.tar.gz
Algorithm Hash digest
SHA256 c4ffd81accf744670b1fa5095c005165b74897171dee166f591d166e206fff30
MD5 cc8822bc80e2211dc40eb5ede604c0e0
BLAKE2b-256 e8b08fa159e00cbf51bac960b10cf041be121e6894acd6a1d5e205a18e5a6482

See more details on using hashes here.

File details

Details for the file xh_advanced_task_runner-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xh_advanced_task_runner-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cadb87da1c43dcbe31ba4085d2bada079a262aa90e35e5a91da0c27b54d7ea96
MD5 323c2a950fa26d5965883a001972ff00
BLAKE2b-256 f7e50c6ef31e4d3f686cff7549d7f8cbabc975a5d080640a28377cb241891eb5

See more details on using hashes here.

Supported by

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