How to check status of PIPE from a component