The Activities Status API allows you to get information about whether or not an Activity is currently running.
/api/collections/collection/activities/id/status: get the status of an activity.
|collection||The collection name.|
|id||The activity ID. Use 'all' for all activities.|
|id||int||The activity ID.|
|running||boolean||True indicates the activity is currently running.|
|type||string||The activity type. Possible types are click, autocomplete, or optimize.|
While the activity is running:
Once process is finished, and the activity is idle: