[openstack-dev] [Mistral] Action context passed to all action executions by default

W Chan m4d.coder at gmail.com
Thu Dec 11 19:36:59 UTC 2014


Renat,

Here's the blueprint.
https://blueprints.launchpad.net/mistral/+spec/mistral-runtime-context

I'm proposing to add *args and **kwargs to the __init__ methods of all
actions.  The action context can be passed as a dict in the kwargs. The
global context and the env context can be provided here as well.  Maybe put
all these different context under a kwarg called context?

For example,

ctx = {
    "env": {...},
    "global": {...},
    "runtime": {
        "execution_id": ...,
        "task_id": ...,
        ...
    }
}

action = SomeMistralAction(context=ctx)

WDYT?

Winson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141211/5c11d672/attachment.html>


More information about the OpenStack-dev mailing list