--
You received this message because you are subscribed to the Google Groups "Lemur User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lemur-user+...@googlegroups.com.
To post to this group, send email to lemur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lemur-user/bb698ae4-f3a1-4780-998e-0ebc230748bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/lemur-user/f1fe5877-801b-4f26-a6b6-8724487b6999%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lemur-user/3042db3f-9755-4f9d-ac23-051c3b097827%40googlegroups.com.
Hi Gareth,
I see your trouble, after looking more closely at the gist.
Problem 1: Running this produces a stack-overflow (an endless recursive call). That's because your defstep has a recursive definition:
{... :step-name "${step-name}"}
Asking the step for :step-name returns "${step-name}", which is then evaluated and says to ask the map for :step-name, which returns "${step-name}"... this continues indefinitely. To resolve, change the name of the command line arg to asomething else, e.g. :run-step.
Problem 2: This is what we discussed in email, defstep returns a regular map, you need an evaluating-map. Also, because you want a value from catch-args (which is part of "the-cluster"), you need to use evaluating-step as you suspected, not just evaluating-map.
I posted a corrected, annotated gist at https://gist.github.com/mlimotte/2693120f98adccbec655
Also, you can run it with lemur dry-run test_jobdef.clj
. This won't test the wait-on-step, but will let you verify the step that will be run.
marc
To view this discussion on the web visit https://groups.google.com/d/msgid/lemur-user/be9afb85-9c14-4059-a912-b11ba3e22fad%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lemur-user/1f610536-1298-4cf3-a612-a8e480c1d87a%40googlegroups.com.