Add "keep-result" task option

Registered by Renat Akhmerov

We need to add option that would tell Mistral engine not to keep task result (actually its action execution results) after task completion. It's needed for the cases when we know that action result is large and it doesn't make sense to keep it as is. Instead, we may want to extract only a part of it using "publish" clause.

tasks:
  my_task:
    action: nova.servers_list
    publish:
      vm_count: <% $.my_task.length() %>
    keep-result: false

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
Medium
Drafter:
Renat Akhmerov
Direction:
Approved
Assignee:
Nikolay Makhotkin
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
None
Started by
Nikolay Makhotkin
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-keep-task-result,n,z

Addressed by: https://review.openstack.org/170076
    Add 'keep-result' property to task-spec

Addressed by: https://review.openstack.org/169764
    Add implicit task access in workflow

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.