action does not be deleted when workflow execution is delete

Bug #1685583 reported by yong sheng gong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Invalid
Undecided
Unassigned

Bug Description

problem:
in https://review.openstack.org/#/c/457140/5/tacker/nfvo/workflows/vim_monitor/vim_ping_action.py

I am trying to implement a long-live action:
    def run(self):
        while True:
            status = self._ping()
            if self.current_status != status:
                self.current_status = self._update(status)

to stop the action, I expected it will be deleted by deleting the workflow execution.

But, when I delete the workflow execution, the action is still running.

expectation:

the action is stopped.

Revision history for this message
Dougal Matthews (d0ugal) wrote :

You should add the iteration within the workflow. For example....

---
version: 2.0

ping_forever:
  tasks:
    ping:
      action: my_action.ping
      on-complete: ping

Changed in mistral:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.