metomi/rose — pull request #663 by matthewrmshin (2013-05-20 09:47:39+00:00)
Title: rose.suite_log_view: refactor

This refactor should resolve #615.

* If task IDs specified, record the task ID by touching `.rose-suite-lock-view.lock/TASK_ID`.
* If it gets the lock, enter the main loop, which removes the content of `.rose-suite-lock-view.lock/` directory for a list of task IDs. Process. Exit loop only if there is no more items in `.rose-suite-lock-view.lock/`.
* Remote job logs update is now done within the main loop.
* Job log archive logic is now separated from the JSON dump creation logic.
* If task IDs specified, only interrogate the runtime suite database for relevant rows.