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 connected to Ignite Services.
fun getTaskInfo(
taskId: String,
callback: IResponseCallback<TaskInfoResponse, Error, Progress>? = null,
metadata: Bundle = Bundle()
)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
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

