Skip to main content

TaskEngine for ProcessEngine

Project description

Library to handle exposing tasks to a ProcessEngine

Getting started

pip install taskengine

Add to installed apps

Confgure your task modules

In settings.py:

INSTALLED_APPS = [
    ..
    'taskengine',
    ..
]

Tell taskengine where to find tasks

In settings.py:

ALLOWED_TASK_MODULES = {
    'taskengine.tasks', # these are default tasks provided by taskengine
    .., # <- your module/s here
}

# optional
TASKENGINE_API_KEY = '...'

Add API to urls

in urls.py

from taskengine.api import router as task_router
..

urlpatterns = [
    ..
    path(r'', include(task_router.urls)),
    ..
]

Register your service

python manage.py register

Upading pip library

# update version in setup.py
python3 setup.py sdist bdist_wheel
twine upload dist/*

todo: dockerize this

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

taskengine-0.0.2.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

taskengine-0.0.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

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