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 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