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:

```.bash
git clone https://github.com/collabo-br/mistral-celery-actions.git
cd mistral-celery-actions
```

Local installation:


```.bash
pip install -e .
```

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

```.bash
mistral-db-manage populate;
systemctrl restart openstack-mistral*;
```


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


```
[celery]
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
input:
task_name: 'task.my_custom_task'
params:
task_param1: "Hi, I'm sync"
task_param2: ...

Call celery async task:

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


Useful Links
============

* `Mistral`_ <https://github.com/openstack/mistral>

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

mistral-celery-actions-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file mistral-celery-actions-1.0.1.tar.gz.

File metadata

File hashes

Hashes for mistral-celery-actions-1.0.1.tar.gz
Algorithm Hash digest
SHA256 482638019d59d1ffbe6243a42870fa7ed9dba369c1c07730ba5273315ec25351
MD5 0ca8b8f9c5f8ac16303814a24ec3cab8
BLAKE2b-256 e95e1a535f256b2be6640065f5870edd5b380cc37de846c8b6961f6ffd2ff722

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