Show Table of Contents
51.9. slapi_task_get_state()
Checks the current state of a task.
Syntax
int slapi_task_get_state(Slapi_Task *task)
Parameters
This function takes the following parameter:
| task | Points to the task operation which is being performed by the server. |
Returns
This can return four different states:
SLAPI_TASK_SETUP(0), meaning the task has been initiatedSLAPI_TASK_RUNNING(1), meaning the task is in progressSLAPI_TASK_FINISHED(2), meaning the task completed (there is a separate return code to indicate whether the task was successful)SLAPI_TASK_CANCELLED(3), meaning the task was stopped before it was completed

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.