I have successfully used the qc.query() interface to issue small synchronous queries, cross matching an uploaded table to the ls_dr7.tractor table. Great!
However, using exactly the same SQL command, when I attempt to make the query asynchronous:
> jobid=qc.query(token, ..., async=True)
"Error: global name 'profile' is not defined"