provide subworkflow status information in Workflow.get_status()

XMLWordPrintable

      Workflow.get_status() (added in https://jira.isi.edu/browse/PM-1753) currently only provides status information for the root workflow. This needs to be updated to also include status information for any subworkflows.

      The idea here is to add in an entry under "dags" for each subworkflow, where the key could be the job id of the subworkflow that way the entry can be programatically accessed in the Python api by doing something along the lines of:

      j = SubWorkflow("workflow.yml", _id="subwf1")
      wf.add_jobs(j)
      wf.plan(submit=True)
      ....
      subwf_status = wf.get_status()["dags"][j._id]

      {
      "totals":

      {...},
      "dags": {
      "root": {...}

      ,
      "subwfid":

      {...},
      "subwfid": {...}

      }
      }

            Assignee:
            Karan Vahi
            Reporter:
            Ryan Tanaka (Inactive)
            Watchers:
            1 Start watching this issue

              Created:
              Updated: