Concerning this thread,
Is it possible to have an option to execute it only once and done? I know that by default, CFEngine applies policy => "constant"; to variable evaluation and only one value would be assigned to the variable (no.. not the 1st value from the thread) but still execresult() continues running more for a several times. It will slow down CFEngine runtime a lot for a long executed command.
I can workaround using commands: promise with classes. IMHO, it should be able to adjust by the function itself.