missing Array value used as null input for downstream component

Issue #32 resolved
Ville Rantanen created an issue

This one requires a callback to be replicated:

#!/usr/bin/env anduril

import anduril.tools._
import anduril.builtin._
import org.anduril.runtime._

object foo {

  val not_there=Folder2Array(QuickBash(script="mkdir $out; echo foo > $out/file.txt")).out("not_really")
  val is_there=Folder2Array(QuickBash(script="mkdir $out; echo foo > $out/file.txt")).out

  for ((e,v)<-iterArray(is_there)) {
   val print_value=QuickBash(in=not_there, script="cat $in | tee $out")
  }
}

instance not_there (is finally an ArrayExtractor) runs, and fails due to:

[ERROR not_there] fails.scala:9, Component not_there: Key(s) not found in array: [not_really]
[INFO  not_there] Component finished with failure (COMPONENT-FINISHED-ERROR) (2016-05-11 23:44:58)

The workflow continues none-the-less:

[INFO  print_value] Executing print_value (anduril.tools.QuickBash) (SOURCE fails.scala:13) (COMPONENT-STARTED) (2016-05-11 23:44:59)

NULL input was inserted in the component instance:

$ cat result_fails/print_value/_command | grep input
input.command=
input.in=

Comments (1)

  1. Log in to comment