For LHCb production jobs the stdout/stderr is continiously written to disk however for user jobs it's only written after the process exits and for stalled jobs it gets lost by the Watchdog object.
Debugging stalled user jobs would be easier if a callback was used to write it continiously.