We will have  defer (background jobs) soon enough. Until then, do a sleep.
Better than what  it currently does (constantly hammer the BigQuery API).


On Mon, May 12, 2014 at 10:08 PM, Yosi Taguri <notifications@github.com>wrote:

> In redash/data/query_runner_bigquery.py:
>
> > @@ -33,6 +33,14 @@ def get_bigquery_service():
> >
> >          return build("bigquery", "v2", http=http)
> >
> > +    def get_query_results(jobs, project_id, job_id, start_index):
> > +        query_reply = jobs.getQueryResults(projectId=project_id, jobId=job_id, startIndex=start_index).execute()
> > +        logging.debug('query_reply %s', query_reply)
> > +        if query_reply['jobComplete'] != True:
> > +            return get_query_results(jobs, project_id, job_id, start_index)
>
> sleep is for weak people.... in gae I would defer this but here ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/EverythingMe/redash/pull/207/files#r12547684>
> .
>