KSC Open API
Kaspersky Security Center API description
Group task state enum

Group task may be in one of the following states on a target host:

  • 0: modified (pending)
  • 1: running (see also the note below)
  • 2: suspended
  • 3: failed
  • 4: completed successfully
  • 32: scheduled
Note:
In case of "KLPRCI_TaskState" and "KLEVP_GroupTaskSyncState" events following states "running", "suspended", "failed" and "completed" of parameter "task_new_state" are related to the event "KLPRCI_TaskState", while the states "modified" and "scheduled" are related to the event "KLEVP_GroupTaskSyncState". And in case of "KLEVP_GroupTaskSyncState" the state "modified" of parameter "task_new_state" is represented by value of 1, not 0.