The task
processing method is applied to the operation and maintenance platform, the operation and maintenance platform comprises an
event queue and a task executor, and the task
processing method comprises the steps that the
event queue receives at least one operation and maintenance task of an application, task events corresponding to the at least one operation and maintenance task are added into the
event queue, and the task executor takes out a first task event from the event
queue, calling a first
execution unit in the
execution unit resource pool, executing the first sub-task, issuing the operation of the first sub-task on the resource to the resource, releasing the first
execution unit, receiving a first resource event sent by the resource by the event
queue, and executing the first resource event by the task executor according to the state of the resource described by the first resource event. And determining the next task or the next subtask to be processed, and executing the next task or the next subtask. According to the method, events are taken as the center, states of operation and maintenance tasks, subtasks and resources are taken as events for
processing, and tasks are processed from smaller
granularity. Moreover, the execution unit is not blocked by the waiting state of the operation and maintenance task, and the
resource utilization rate is improved.