Get Task Status

Every call to Ignite returns a task ID that you can track using the getTaskInfo() method. To track task information, ensure that you are authenticated and is using a valid token.

Kotlin
fun getTaskInfo(
taskId: String,
callback: IResponseCallback<TaskInfoResponse, Error, Progress>? = null,
metadata: Bundle = Bundle()
)
PARAMETER
STATUS
TYPE
DESCRIPTION

taskId

Required

String

Unique ID for the task you want to receive details about. Obtain the task ID from either a previous callback or broadcast.

callback

Required

Interface

The DTIS SDK includes the IResponseCallback interface for you to receive task status updates.

metadata

Optional

Bundle

Metadata for additional processing.

Callback Responses

The getTaskInfo() method returns the following information:

  • taskID

  • Task Status

  • Status Code

STATUS
CODE
DESCRIPTION

IN_PROGRESS

0

Task is running.

STARTED

1

Task has begun.

FINISHED

3

Task is complete.

FAILED

4

Task failed to complete.

CANCELLED

5

Task has been cancelled.

QUEUED

6

Task is queued to run.

POSTPONED

7

Task is postponed to run at a later time.

Example

Last updated