chop-dbhi / cilantro

Official client for Harvest (http://harvest.research.chop.edu)
http://cilantro.harvest.io
Other
28 stars 8 forks source link

Modifications for background query execution #693

Open bruth opened 10 years ago

bruth commented 10 years ago

See cbmi/serrano#204 and cbmi/avocado#231 for background.

There is one primary internal change and one primary UI addition that must be made to accommodate the new Serrano resources.

The internal change is to use the new/changed query endpoint to explicitly POST the context and view to submit the job followed by polling the returned job URL until the result is ready. In normal circumstances this interaction will be negligible from a performance standpoint, but the interaction is simply different.

The UI addition is a prompt for long-running queries for choosing to wait for or cancel the query (after some configurable amount of time). If the query is cancelled the results page will be convey this using some message, otherwise the polling will continue.