Skip to main content

A Mistral action to call celery tasks

Project description

# Mistral Celery Actions

### Installation

First of all, clone the repo and go to the repo directory:

git clone
cd mistral-celery-actions

Local installation:

pip install -e .

Then we need to tell Mistral about them
and restart Mistral::

mistral-db-manage populate;
systemctrl restart openstack-mistral*;

### Provide celery settings properties on your `mistral.conf` file:

broker_url = amqp://<user>:<password>@<host>:<port>/mistral
result_backend = amqp://
task_serializer = json
result_serializer = json

### Usage

Call celery sync task:

action: celery.sync-task
task_name: 'task.my_custom_task'
task_param1: "Hi, I'm sync"
task_param2: ...

Call celery async task:

action: celery.async-task
task_name: 'task.my_custom_async_task'
task_param1: "Weeeeeeeeeeeee"
task_param2: ...

Useful Links

* `Mistral`_ <>

Project details

Download files

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

Files for mistral-celery-actions, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size mistral-celery-actions-1.0.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page