ASFHyP3 / hyp3-sdk

A python wrapper around the HyP3 API
BSD 3-Clause "New" or "Revised" License
28 stars 7 forks source link

Server handling exception #294

Open wangshuaicumt opened 2 months ago

wangshuaicumt commented 2 months ago

Dear Hyp3 team,

Hello, when I uploaded the HyP3 task yesterday, the download link returned had a lot of errors, but when I used the earlier version, it worked fine.

Here is the log file, thank you for your help.

log.txt

asjohnston-asf commented 2 months ago

Thanks for the report! Out system encountered some instability late Tuesday and early Wednesday that caused a handful of jobs to fail, including these. I expect those jobs will process successfully if you resubmit them.

Here's a short example to resubmit a set of failed jobs using the hyp3_sdk:

import hyp3_sdk
hyp3 = hyp3_sdk.HyP3()

failed_jobs = hyp3.find_jobs(status_code='FAILED', start='2024-09-04T00:00:00Z')
jobs_to_resubmit = [job.to_dict(for_resubmit=True) for job in failed_jobs]

resubmitted_jobs = hyp3.submit_prepared_jobs(jobs_to_resubmit)
wangshuaicumt commented 2 months ago

Thanks for the report! Out system encountered some instability late Tuesday and early Wednesday that caused a handful of jobs to fail, including these. I expect those jobs will process successfully if you resubmit them.

Here's a short example to resubmit a set of failed jobs using the hyp3_sdk:

import hyp3_sdk
hyp3 = hyp3_sdk.HyP3()

failed_jobs = hyp3.find_jobs(status_code='FAILED', start='2024-09-04T00:00:00Z')
jobs_to_resubmit = [job.to_dict(for_resubmit=True) for job in failed_jobs]

resubmitted_jobs = hyp3.submit_prepared_jobs(jobs_to_resubmit)

Great! Thanks a lot.