Document toolboxDocument toolbox

Task statuses and error codes

Task statuses

Status

Description

Status

Description

CREATED

Initial internal status

RUNNING

Task running

COMPLETED

Task completed, all elements provided. A query without to date cannot be completed

STOPPED

A stopped task. It can be restarted by user. A task can be stopped by user or due to an error

RECONNECTING

Internal state on a loss connection with server. It will be started when reconnected or stopped if cannot recover connection

PAUSED

A internal status on stopped servers. It will be auto started after the server starts again

Task error codes

ID

Code

Message

ID

Code

Message

TASK_OK

0

OK

TASK_NOT_FOUND

100

Task not found

TASK_STATUS_NOT_CHANGE

101

Cannot change the status of task

TASK_REMOVE_DB_ERROR

102

Cannot remove task on database

TASK_STOP_RUNNING_ERROR

108

Cannot stop a non running task

TASK_STOP_DB_ERROR

103

Cannot stop task on database

TASK_RESTART_DB_ERROR

104

Cannot restart task on database

TASK_REMOTE_MSG_RESPONSE_NOT_FOUND

105

Remote msg response not found

TASK_REMOTE_MSG_RESPONSE

106

Remote msg response problem

TASK_REMOTE_MSG

107

Remote msg call problem