Page 1 of 1
how to abort a parallel job
Posted: Thu Apr 28, 2016 3:49 am
by Gius
Hello,
We need to create a parallel job that when a query retrieves rows, the job aborts.
Something like a source (with an inside query) then if the query retrieves some records, the job aborts.
thank you -
Posted: Thu Apr 28, 2016 6:05 am
by qt_ky
Follow your query with a Transformer stage. Open up its output link constraint properties and set the "Abort After Rows" value.
Posted: Thu Apr 28, 2016 6:14 am
by chulett
Another possibility, again from a transformer, would be to leverage the
DSLogFatal function based on your triggering condition. Bonus is you can also log the reason why you are aborting it.
Or is that not possible from a
Parallel transformer?
Posted: Thu Apr 28, 2016 5:46 pm
by ray.wurlod
@Craig It's not possible from a parallel Transformer, but it is possible from a BASIC Transformer stage.
Posted: Thu Apr 28, 2016 9:09 pm
by chulett
But of course! Stick with the original suggestion.