Fork me on GitHub
#onyx
<
2017-06-19
>
eoliphant03:06:51

hi, i asked this a while ago, and got into somethign else and was never able to try it. I was trying to figure out the best way to debug my workflows, etc. I beleive someone posted something some sort of “spy” key you could put on a catalog entry. I think it pointed to a user function that would get a look at the segments. But I don’t see it in the documentatoin

lucasbradstreet03:06:09

@eoliphant I think they were referring to sticking a spy onyx/fn on your input tasks

lucasbradstreet03:06:15

the spy fn would just be

lucasbradstreet03:06:15

(defn myspy [segment] (println segment) segment))

eoliphant03:06:27

just found it in the user guide lol

stephenmhopper17:06:36

So, I'm getting a "clojure.lang.ExceptionInfo: Unfreezable type: class clojure.lang.ExceptionInfo" error. One of my tasks is throwing an exception, and Onyx appears to be having trouble passing the exception on to the next task, so it then throws this unfreezable type exception. Is that a thing?

michaeldrogalis17:06:53

@stephenmhopper Exceptions can’t be passed between tasks.

michaeldrogalis17:06:30

You can use a flow condition handler to turn it into something serializable and pass it downstream.

stephenmhopper17:06:41

ah, okay. Can I just use clojure.core/Throwable->map?

stephenmhopper17:06:49

What do you typically use?

michaeldrogalis17:06:23

@stephenmhopper I’ve usually taken apart the map myself with ex-data, but that should work

michaeldrogalis17:06:38

I just learned about that function recently. 🙂