Skip to main content

A simple Django app to run celery tasks as processes.

Project description

=====
Process Engine
=====

Process Engine is used in conjunction with celery to create async process from
celery tasks via an API


Quick start
-----------

1. Add "processengine" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'processengine',
]

2. Include the polls URLconf in your project urls.py like this::

from processengine.api import router as process_router
...

urlpatterns = [
url(r'^processengine/', include(process_router.urls)),
...
]


3. Add the PROCESS_MAP settings with your processes and the tasks to run like
so::

PROCESS_MAP = {
'my.process': [
'path.to.taskfile.task',
],
...
}


4. Run `python manage.py migrate` to create the processengine models.

5. to create a process run a POST to http://127.0.0.1:8000/processengine/process/
with the following data::

data = {
name: "my.process", # This is the name of your process set in PROCESS_MAP variable
context: {
"name": "value" # This is the data that you pass through to your task
}
}

Note: Your tasks need to conform to the pattern of json in and json out


Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

django_processengine-0.1.1.dev0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file django_processengine-0.1.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_processengine-0.1.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 58c3af7c8706ecb002fd025d52b48adc348d2eac444684bb35d09cc4f850ce14
MD5 2d57972fb049a03763c3e77cbf1c3acb
BLAKE2b-256 cf6af1e5b0c8487db7d94e4fa708eb8dde9205986554bd722712559c3ac781b2

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