Skip to main content

An in process task queue for distributed computing systems.

Project description

a-task-queue

An in process task queue for distributed computing systems.

Usage

from ataskq import TaskQ, Task, targs

# create  job
tr = TaskQ().create_job()

# add tasks
# entrypoint stands for the relevant function import statement
# (here we use build in demo functions)
tr.add_tasks([
    Task(entrypoint='ataskq.tasks_utils.hello_world'),
    Task(entrypoint='ataskq.tasks_utils.dummy_args_task', targs=targs(
        'arg0', 'arg1', kwarg1=10, kwarg2='this is kwarg2')),
])

# run the tasks
tr.run() # to run in parallel add num_processes=N

more example can be found here

Contributer

setup project git hooks

contrib/setup.sh

vs code

to get nominal vscode settings run

./contrib/.vscode/init.sh

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

ataskq-0.5.1.tar.gz (59.3 kB view hashes)

Uploaded Source

Built Distribution

ataskq-0.5.1-py3-none-any.whl (68.9 kB view hashes)

Uploaded Python 3

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