support long running processes in yarn (see #449)