Defining a workflow start task

Registered by Renat Akhmerov

This blueprint has been superseded. See the newer blueprint "Imperative and dependency based workflows" for updated plans.

We need to be able to define a workflow start task write in the model (and respectively in DSL). In practice, it doesn't make a lot of sense to start with a random task because real workflows involve data processing and hence all actions need to be taken in a certain order to prepare all data for a certain workflow task.

As a part of this BP we need to get rid of Execution "task" parameter when we start a workflow (in all the models, API, python client and CLI).

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
Medium
Drafter:
Renat Akhmerov
Direction:
Needs approval
Assignee:
Dmitri Zimine
Definition:
Superseded
Series goal:
None
Implementation:
Blocked
Milestone target:
None
Started by
Renat Akhmerov
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/deprecate-requires-in-dsl,n,z

Addressed by: https://review.openstack.org/98276
    Refactor test_engine to not rely on start_task

Please deprecate this for a bit at the python client level otherwise solum might end up
getting broken. Also we need a way of communicating such things (api changes) to the users. Normally if you remove something from an API you need to bump the major version number. That might be a bit drasitic but I think at least deprecating it and removing it later is reasonable. So on the client start printing out a warning that
soon this start_task will be ignored then later remove the parameter.

Once you have a real user, it stops becomming a PoC and you need to version properly.

Gerrit topic: https://review.openstack.org/#q,topic:mistral-workflow-start-task,n,z

Addressed by: https://review.openstack.org/98300
    Refactor test_task_retry to not rely on start_task

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

Addressed by: https://review.openstack.org/100390
    Define workflow start task in DSL

Addressed by: https://review.openstack.org/100391
    Remove 'task' from start_workflow_execution

Addressed by: https://review.openstack.org/100392
    Trigger doesn't use task

(?)

Work Items

Work items:
mistral - refactor tests to not rely on start_task parameter: INPROGRESS
mistral - change implementation: TODO
mistral - adjust all tests: TODO
mistral - remove task_name from signatures and API : TODO
python-mistralclient - remove 'task' parameter : TODO
mistral-dashboard - remove 'start task' field from Create Execution UI : TODO
mistral-extra - add 'start' for workflows : TODO
functionaltests - adjust to the changes : TODO

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.