cdsapi icon indicating copy to clipboard operation
cdsapi copied to clipboard

wait_until_complete=False is confusing

Open baudouinth opened this issue 5 years ago • 1 comments

When I use wait_until_complete=False, I expect the api to launch a product request without waiting for it to be completed. However, when I use it, no new request appears in https://cds.climate.copernicus.eu/cdsapp#!/yourrequests. Could you explain to me what this parameter really does ?

baudouinth avatar Nov 18 '20 09:11 baudouinth

For others running into the same issue (like I just did), this behavior seems to be related to the delete keyword. With delete=False, it works for me:

cdsapi.Client(wait_until_complete=False, delete=False)

bartvstratum avatar May 25 '21 10:05 bartvstratum

Hi, By default, the cdsapi deletes successful requests from your history. This is to prevent the history becoming too large for users that submit many jobs. I believe that what you expereinced was that the job had completed and cleaned itself up before you had chance to see it. As @julietbravo , you can prevent the deletion of the record using the delete=False option, this way you can keep track of all your requests until they are cleaned from the central database. Thanks, Eddy

EddyCMWF avatar Feb 28 '23 09:02 EddyCMWF