Hi,
A Python based transformer has these three scaffold "defs": __init__(), input() and close().
"__init__" is called once when the transformer instance is initialized in the workflow. "input" is called for each feature, and "close" is called after the last feature has been sent (= when the workspace is done, I assume).
In case of a workspace crashing, the former two have a well-defined behaviour. But will "close()" be called for each transformer after a crash too ? Or is everything just thrown down the drain ?
I'm contemplating whether multiple transformers can share a common resource, but that only works if the resource in question is created/initialized once, and only disposed when all transformers have been closed. I.e. have had their "close()" routine called.
Cheers