Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.export status updates #59

Closed
Tom-Berger opened this issue May 17, 2021 · 1 comment
Closed

client.export status updates #59

Tom-Berger opened this issue May 17, 2021 · 1 comment

Comments

@Tom-Berger
Copy link

Tom-Berger commented May 17, 2021

Description

Here's the current behavior:

import drms
email = 'my.email@colorado.edu'
client = drms.Client(email=email, verbose=True)
hmi_query_string = 'hmi.sharp_cea_720s[377][2011.02.15_02:12:00_TAI]'
r = client.export(hmi_query_string+'{Br}', protocol='fits', email=email)
export URL: http://jsoc.stanford.edu/cgi-bin/ajax/jsoc_fetch?op=exp_request&format=json&ds=hmi.sharp_cea_720s%5B377%5D%5B2011.02.15_02%3A12%3A00_TAI%5D%7BBr%7D&notify=thomas.berger%40colorado.edu&method=url&protocol=fits&filenamefmt=hmi.sharp_cea_720s.%7BHARPNUM%7D.%7BT_REC%3AA%7D.%7Bsegment%7D&process%3Dn=0&requestor=thomas.berger&sizeratio=1.0
r.status
2
r.status
2

At this point, the export is finished and the files are queued for download (as determined from getting the email from JSOC). However note that r.status is not updated:

r.status
2

Upon completion, r.status should be 0, not 2. I think this is preventing loops which attempt repeated export requests to fail after the first request since all subsequent requests throw an immediate error of {"status":7,"error":"User my.email@colorado.edu has 1 pending export requests...}

@wtbarnes
Copy link
Member

I believe #60 is an exact duplicate of this issue so I'm going to close this. Feel free to reopen if that's not the case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants