configuration.import.get
configuration.import.get( processId )
Getting information about current import step. Import is performed at the agent, executed происходит на агенте, выполняемом maximum once per minute. That's why its practical to request the status more often than per minute (import per each registration).
Parameters
Parameter | Description | Available from version |
---|---|---|
processId | Process ID. |
Example
$res = CRest::call('configuration.import.get', [ 'processId' => $id ] );
Possible result:
Array ( [result] => Array ( [status] => P [progress] => Array ( [action] => manifest [step] => 0 [section] => REST_APPLICATION ) ) [time] => Array ( [start] => 1629303000.9341 [finish] => 1629303001.0443 [duration] => 0.11020803451538 [processing] => 0.054312944412231 [date_start] => 2021-08-18T18:10:00+02:00 [date_finish] => 2021-08-18T18:10:01+02:00 ) )
Where:
- status:
- S - start (immediately after registration);
- P - in progress. Simultaneously returns progress with some specifics about the step;
- F - import completed. Also can return additional with extra data of completed import, if they are available for this import;
- E - error. Details in errors messages;
- U - unknown address (or incorrect ID, or the data was already deleted Information is rest after 3 days. ).
- progress - some specifics about current step. Data is used for debugging.
- notice - non-critical notifications.
- errors - ongoing errors, however, import is still in progress.
- exception - import stopped. Next step will have status E (if not set already).
© «Bitrix24», 2001-2024