Skip to content

Commit

Permalink
Merge pull request #4835 from natefoo/gie-spinner-fix
Browse files Browse the repository at this point in the history
[17.09] Fix the spinner for the GIE container readiness check
  • Loading branch information
martenson committed Oct 20, 2017
2 parents 9475e9a + 1f6df55 commit 30b9e5e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions client/galaxy/scripts/galaxy.interactive_environments.js
Expand Up @@ -76,8 +76,11 @@ function spin(url, bool_response, success_callback, timeout_callback, error_call
},
type: "GET",
timeout: spin_state.ajax_timeout,
success: function(data, status, jqxhr){
if(!success_callback(data, status, jqxhr)) spin_again(spin_state);
success: function(data, status, jqxhr) {
if (!success_callback(data, status, jqxhr)) {
spin_state.count++;
spin_again(spin_state);
}
},
error: function(jqxhr, status, error){
if(status == "timeout"){
Expand Down
Expand Up @@ -53,7 +53,7 @@ function keep_alive(){
var count_max = 60;
// we sleep 15 seconds between requests and the default timeout for the Jupyter container is 120 seconds, so start
// with a pretty high ajax timeout. sleep starts low because we want to get the warning up pretty quickly
var spin_state = make_spin_state("IE keep alive", 8000, 16000, 2000, 5000, 15000, 5000, false);
var spin_state = make_spin_state("IE keepalive", 8000, 16000, 2000, 5000, 15000, 5000, false);
var success = function(){
console.log("IE keepalive request succeeded");
toastr.clear()
Expand Down Expand Up @@ -85,7 +85,7 @@ function keep_alive(){
return true; // stop spinning
}
}
console.log("IE keep alive worker starting");
console.log("IE keepalive worker starting");
spin(notebook_access_url, false, success, timeout_error, timeout_error, spin_state);
}

Expand Down
2 changes: 1 addition & 1 deletion static/maps/galaxy.interactive_environments.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/galaxy.interactive_environments.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30b9e5e

Please sign in to comment.