Make workflow execution creation idempotent

Registered by Renat Akhmerov

We need to make the process of creating workflow execution idempotent. The proposed change is to allow to pass workflow execution ID to the endpoint /v2/executions when we make a POST request:

POST /v2/executions

{
  "id": "a-b-c-d",
  ...
}

so that if an execution with such ID exists the endpoint will just return its state (a JSON structure), and if it doesn't exist it will create an execution and start the corresponding workflow.

The change is fully backwards compatible: if ID is not passed the endpoint works the same way as before.

More details are described in the etherpad:
https://etherpad.openstack.org/p/mistral-execution-create

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
High
Drafter:
Renat Akhmerov
Direction:
Approved
Assignee:
Renat Akhmerov
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon queens-3
Started by
Renat Akhmerov
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-idempotent-execution-create,n,z

Addressed by: https://review.openstack.org/530000
    Make workflow execution creation idempotent

Addressed by: https://review.openstack.org/541254
    Revert "Make workflow execution creation idempotent"

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.