[API-users] understanding download status (specially FILE_ERASED)

Tim Robertson trobertson at gbif.org
Tue Jan 21 08:11:03 UTC 2020

Hi David

I hope you are well!

Good question.

PREPARING: just submitted by user and awaiting processing (typically only a few seconds)
RUNNING: being created (typically 1-15 minutes)
FAILED: something unexpected went wrong
KILLED: user decided to abort the job while it was in PREPARING, RUNNING phase
SUCCEEDED: The download was created and the user informed
FILE_ERASED: The download was deleted according to the retention policy (please see https://www.gbif.org/faq?question=for-how-long-will-does-gbif-store-downloads )

So you are correct to sum SUCCEEDED+FILE_ERASED to calculate number of times data is in downloads and that SUCCEEDED would decrease as the file system is cleaned up.

If you are exploring use, please also consider the citations, such as:

I hope this helps,

From: API-users <api-users-bounces at lists.gbif.org> on behalf of Herbario SANT <sant.herbarium at gmail.com>
Date: Monday, 20 January 2020 at 21.26
To: "api-users at lists.gbif.org" <api-users at lists.gbif.org>
Subject: [API-users] understanding download status (specially FILE_ERASED)

I have a question about the results returned by the api when requesting the download activity of a dataset.

Where can I find a description of the possible "status" of a given download? (I found at least 6 different values in our datasets activity).

I understand that KILLED, FAILED, RUNNING, PREPARING ... can all be interpreted as "nobody has (still) used that information".
Whereas a "SUCCEEDED" download means the opposite.

But what about "FILE_ERASED<http://api.gbif.org/v1/occurrence/download/0000316-140429114108248>"?
Does it mean the download was "SUCCEEDED" in the past, and some time later the info was deleted? (when looking at old downloads, the percentage of FILE_ERASED is much higher).

If I want to evaluate real usage of a dataset along years, should I better use the sum of "SUCCEEDED + FILE_ERASED". Right?

Also, I understand that the sum of SUCCEEDED + FILE_ERASED downloads for a given dataset and year, should be the same if somebody repeats the query in the future (whereas the sum of SUCCEEDED downloads will decrease).

Thanks a lot for your help

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20200121/d55f4b57/attachment-0001.html>

More information about the API-users mailing list