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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for taskengine-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a74387ca4b9c8ead89b82e6b7da7a1859610ce290eb41d3b33634b5975b24ba |
|
MD5 | 1bf288c414cc572279b09a5d12ca0cd7 |
|
BLAKE2b-256 | 8abada0ed093dffe7e14e95556424f2b3ba3e2fecb59a4a7d34faab4cfa43335 |