You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running a code that is equivalent to the one in the docs (adding the job argument missing in the docs), and I have two questions.
This is the code:
fromastroquery.gaiaimportGaiaGaia.login()
j1=Gaia.launch_job_async(
"select top 10 * from gaiadr3.gaia_source",
name='test',
background=False
)
job=Gaia.upload_table_from_job(job=j1)
The call to upload_table_from_job returns immediately, but the return value is None (whereas from the docs I assumed it would return something). The upload in my actual application takes a while, so I want my script to wait until it is uploaded, but I do not know how to have the script wait. One workaround I thought of is to wait until the table exists.
The questions are:
How do you retrieve the upload job? It is not returned by upload_table_from_job
The jobs listed by Gaia.list_async_jobs never have the name set, so I can't easily identify them, and wonder if I'm missing something. Is there a way to have the job names I see in the Gaia archive web page show up in the tap.model.job.Job?
The text was updated successfully, but these errors were encountered:
Hi Cosmo, thanks for the answer, but I think that does not answer my question. I do not want to get the results, I want to upload them to a table so I can use them later.
My question is motivated by wanting my script to know when uploading finished so I can launch a query to use the table, and in general to know when jobs finished without having to check the web page myself.
I am running a code that is equivalent to the one in the docs (adding the
job
argument missing in the docs), and I have two questions.This is the code:
The call to
upload_table_from_job
returns immediately, but the return value isNone
(whereas from the docs I assumed it would return something). The upload in my actual application takes a while, so I want my script to wait until it is uploaded, but I do not know how to have the script wait. One workaround I thought of is to wait until the table exists.The questions are:
upload_table_from_job
Gaia.list_async_jobs
never have the name set, so I can't easily identify them, and wonder if I'm missing something. Is there a way to have the job names I see in the Gaia archive web page show up in thetap.model.job.Job
?The text was updated successfully, but these errors were encountered: