Execution status stuck in "running" if task are failed for a Orquesta workflow

workflows

(Sandeep Rawat) #1

I have a Orquesta workflow like below: (using with items model to loop though items in pdu_devices).
Execution status stuck is in “running” if task are failed. what could be reason or how can I debug?
I am very new to StackStorm.

version: '1.0'

description: Begins pdu configuration workflow
input:
  - pdu_devices
  - validate_serial

tasks:
  configure_pdu_sequentially:
    with: <% ctx(pdu_devices) %>
    action: shigo.task
    input:
      task_name: "task.changes.configure_pdu.configure"
      args: [<% item() %>, validate_serial=<% ctx(validate_serial) %>]

#2

This might be triggering a bug in Orquesta. Just a reminder that Orquesta is still in a release candidate status, but there still might be bugs.

Does the workflow finish if you remove the with items loop and only pass in one element from the pdu_devices list?

version: '1.0'

description: Begins pdu configuration workflow
input:
  - pdu_device
  - validate_serial

tasks:
  configure_pdu_sequentially:
    action: shigo.task
    input:
      task_name: "task.changes.configure_pdu.configure"
      args: [<% ctx(pdu_device) %>, validate_serial=<% ctx(validate_serial) %>]

(Sandeep Rawat) #3

Yes without with items loop , it works fine


(W Chan) #4

This is a known issue that we will address. Orquesta with-items bug · Issue #4523 · StackStorm/st2 · GitHub