Looks good. How much testing did you do?
HUE-558: Shell hangs if subprocess exits immediately
Review Request #1858 - Created July 1, 2011 and updated
In response to this bug, I changed the periodic cleanup task to not delete subprocess metadata immediately for completed subprocesses. The data for these subprocesses will now be cleaned up when: 1. A specified timeout (10 mins by default) passes in between ajax requests for the shell. or 2. All possible output has been sent to the JS front-end, which now will not make any more requests.