start, stop, and restart are not resumable

Description

Start, stop, and restart (even after fixing https://cloudifysource.atlassian.net/browse/CYBL-767) are not resumable because they are missing the @workflow(resumable=True) decorator.

Even though they call another workflow, that decorator just adds an attribute to the function so it doesn't get set on start/stop/restart.

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1.
2.
3.

Expected result:
---------------

Actual result:
-------------

Why Propose Close?

None

Activity

Show:
Jonathan Abramsohn
May 30, 2019, 4:11 PM

This issue should be fixed to make sure these workflows will be resumed in case of a mgmtworker failure

Łukasz Maksymczuk
August 5, 2019, 6:50 AM

Fixed by changing the name of the execute_operation tasks graph to also include the operation name

Tested by integration tests - agentless_tests.test_workflow::BasicWorkflowsTests::test_restart_workflow and test_resume::MgmtworkerResumeTests::test_resume_restart_workflow

Assignee

Łukasz Maksymczuk

Reporter

Jonathan Abramsohn

Severity

Medium

Target Version

5.0.5

Premium Only

no

Found In Version

4.5

QA Owner

None

Bug Type

new feature bug

Customer Encountered

Yes

Customer Name

c458

Release Notes

yes

Priority

None

Epic Link

Priority

Unprioritized
Configure