diff --git a/client/app/services/query-result.js b/client/app/services/query-result.js index ad35feb624..8e31a012a8 100644 --- a/client/app/services/query-result.js +++ b/client/app/services/query-result.js @@ -496,8 +496,16 @@ function QueryResultService($resource, $timeout, $q, QueryResultError) { } }, (error) => { logger('Connection error', error); - // TODO: use QueryResultError, or better yet: exception/reject of promise. - this.update({ job: { error: 'failed communicating with server. Please check your Internet connection and try again.', status: 4 } }); + this.update({ + job: { + error: 'Failed communicating with server. Retrying...', + status: 4, + id: this.job.id, + }, + }); + $timeout(() => { + this.refreshStatus(query); + }, 3000); }); }