Standard "repeat" action

Registered by Renat Akhmerov

We need to have a standard Mistral action accessible in DSL for repeating a configured task configure number of times. The suggested way of accessing it is "std:repeat" where "std" is the namespace for standard built-in actions that don't require an explicit declaration in DSL.

If a task is associated with this action then it should have the following parameters:
* "task" - the name of the task to repeat
* "retries" - number of times to repeat
* "delay" - delay in milliseconds between iterations
* "break-on" - YAQL expression defining the condition to exit from the loop
*"on-finish" - Task to perform when the repeat task is finished.
*"on-error" - Task to perform when the repeat task experiences an error.

The DSL snippet:
        repeat_wrapper_task:
            action: std:repeat
            parameters:
                task: repeated_task
                retries : retry_no
                delay : delay_in_ms
                break-on : yaql_expr
            on-finish:
                on_finish_task_ref : yaql_expr
            on-error:
                on_error_task_ref

https://etherpad.openstack.org/p/std_repeat

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
Low
Drafter:
Renat Akhmerov
Direction:
Approved
Assignee:
manas kelshikar
Definition:
Obsolete
Series goal:
None
Implementation:
Deferred
Milestone target:
None
Completed by
Nikolay Makhotkin

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-std-repeat-action,n,z

Addressed by: https://review.openstack.org/80127
    Implements: blueprint mistral-std-repeat-action

Most likely it won't needed once data flow collections BP is done.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.