Accelerate the Value of Data

Current State of an Export Task

Learn about the current state of an export task.

The current state ($.currentState) of an export task is a JSON Object, which represents a detailed state of an export task. The process of exporting data consists of several stages. A current stage, which a task is performing now, can be obtained through the $.currentState.statusId and $.currentState.status fields (a numeric code of the stage and a detailed text description respectively).

The possible stages are listed below.

See the various stages of the current sttaus listed in the Table 1: Current State Stages.

Table 1. Current State Stages
$.currentState.statusId $.currentState.status Details
0 Not started yet... This status indicates that an export task has not started yet.
10 Getting total... An export task is trying to calculate an approximate total number of objects that must be exported. For this purpose the export task uses the ElasticSearch storage, which means that the export task is able to get an approximate number of objects only when objects are indexed in ElasticSearch; otherwise, the total number of objects is unknown.
20 Creating headers for CSV file...

If an export task exports data in the CSV format, this status indicates that the export task reads its part of data to fetch headers of objects, which then should be exported.

30 Merging headers for CSV file... This status indicates that all distributed tasks have finished the process of creating headers and a task with this status is merging headers that were fetched by each of the distributed tasks into final headers of all objects.
40 Wait till parallel tasks create headers for CSV file ... This status indicates that an export task has done a part of its work and now the task is waiting for the other distributed tasks to complete collecting the headers.
50 Wait till master task merge all headers for CSV file ... This status indicates that an export task has performed a part of its work and now the task is waiting for the other tasks to create the headers and the master task to merge headers.
60 Exporting... This status indicates that an export task is exporting objects to a storage.
70 Completing upload This status indicates that the master task is completing upload in case of export to a single file.
80 Writing manifest, preparing urls, sending emails... This status indicates that the export is completed and the master task is writing the manifest file, preparing URLs, and sending emails.
90 Completed This status indicates that an export task has completed a part of its work.