[go: up one dir, main page]

CN114510365A - Method, device, device and storage medium for intelligent processing of abnormal tasks - Google Patents

Method, device, device and storage medium for intelligent processing of abnormal tasks Download PDF

Info

Publication number
CN114510365A
CN114510365A CN202210166789.2A CN202210166789A CN114510365A CN 114510365 A CN114510365 A CN 114510365A CN 202210166789 A CN202210166789 A CN 202210166789A CN 114510365 A CN114510365 A CN 114510365A
Authority
CN
China
Prior art keywords
task
abnormal
state
processing
initialization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210166789.2A
Other languages
Chinese (zh)
Inventor
周光华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202210166789.2A priority Critical patent/CN114510365A/en
Publication of CN114510365A publication Critical patent/CN114510365A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0709Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明涉及系统性能优化技术,揭露了一种异常任务智能处理方法,包括:获取任务配置表,并判断处理任务配置表的处理服务器的工作状态;当处理服务器的工作状态异常时,则根据处理服务器的ID,从任务配置表中查询与所述ID关联的目标任务;将目标任务的任务状态执行初始化操作,得到初始化任务,并将初始化任务抛给到工作状态正常的处理服务器中进行处理;当处理服务器的工作状态正常时,则利用在处理服务器中的任务监控脚本从任务配置表中捕获异常任务,并将异常任务的任务状态执行初始化操作后,重新利用处理服务器对异常任务进行处理。本发明还提出一种异常任务智能处理装置、电子设备以及存储介质。本发明可以提高异常任务处理的及时性。

Figure 202210166789

The invention relates to a system performance optimization technology, and discloses an intelligent processing method for abnormal tasks, comprising: acquiring a task configuration table, and judging the working status of a processing server processing the task configuration table; when the working status of the processing server is abnormal, according to the processing The ID of the server, query the target task associated with the ID from the task configuration table; perform the initialization operation on the task state of the target task, obtain the initialization task, and throw the initialization task to the processing server in a normal working state for processing; When the working status of the processing server is normal, use the task monitoring script in the processing server to capture the abnormal task from the task configuration table, and after initializing the task status of the abnormal task, the processing server is used to process the abnormal task again. The present invention also provides an abnormal task intelligent processing device, an electronic device and a storage medium. The present invention can improve the timeliness of abnormal task processing.

Figure 202210166789

Description

异常任务智能处理方法、装置、设备及存储介质Method, device, device and storage medium for intelligent processing of abnormal tasks

技术领域technical field

本发明涉及系统性能优化技术领域,尤其涉及一种异常任务智能处理方法、装置、电子设备及计算机可读存储介质。The present invention relates to the technical field of system performance optimization, and in particular, to a method, device, electronic device and computer-readable storage medium for intelligent processing of abnormal tasks.

背景技术Background technique

智能任务处理系统中,通常把待处理任务配置成任务表的格式,再利用任务处理服务器的空闲时间去执行任务抓取和任务处理。空闲中的任务处理服务器在抓取到待处理任务时,会将待处理任务的状态修改为任务执行中,再对待处理任务进行任务处理;但任务处理会因为服务器的重启或暂停,造成待处理任务的处理中止。当服务器重启后,当前待处理任务的任务状态会一直停在任务执行状态中,不会二次进行任务执行,导致任务状态错误,产生异常任务。In an intelligent task processing system, the tasks to be processed are usually configured in the format of a task table, and then the idle time of the task processing server is used to perform task grabbing and task processing. When the idle task processing server grabs the pending task, it will change the status of the pending task to task execution, and then process the pending task; but the task processing will be caused by the restart or suspension of the server, resulting in pending processing Processing of the task aborted. After the server is restarted, the task status of the currently pending task will remain in the task execution status, and the task will not be executed twice, resulting in an incorrect task status and abnormal tasks.

传统的异常任务再处理方法,是遇见生产问题后,通过将所有任务进行排查,对任务状态错误的执行任务进行状态重置后,再分配任务处理服务器进行处理,异常任务的识别常常会花费大量的时间,导致异常任务的二次处理及时性低。The traditional method of reprocessing abnormal tasks is to check all tasks after encountering production problems, reset the status of execution tasks with wrong task status, and then allocate the task processing server for processing. Identifying abnormal tasks often costs a lot of money. time, resulting in low timeliness of secondary processing of abnormal tasks.

发明内容SUMMARY OF THE INVENTION

本发明提供一种异常任务智能处理方法、装置、设备及存储介质,其主要目的在于解决异常任务的处理及时性低的问题。The present invention provides a method, device, device and storage medium for intelligent processing of abnormal tasks, the main purpose of which is to solve the problem of low timeliness of processing abnormal tasks.

为实现上述目的,本发明提供的一种异常任务智能处理方法,包括:To achieve the above purpose, a method for intelligently processing abnormal tasks provided by the present invention includes:

获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态;Obtaining a task configuration table, and judging the working state of the processing server that processes the task configuration table;

当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务;When the working state of the processing server is abnormal, query the target task associated with the ID from the task configuration table according to the ID of the processing server;

将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理;Performing an initialization operation on the task state of the target task to obtain an initialization task, and throwing the initialization task to a processing server in a normal working state for processing;

当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。When the working status of the processing server is normal, use the task monitoring script preconfigured in the processing server to capture the abnormal task from the task configuration table, and after performing the initialization operation on the task status of the abnormal task, Reuse the processing server to process the abnormal task.

可选地,所述从所述任务配置表中查询与所述ID关联的目标任务,包括:Optionally, the querying the target task associated with the ID from the task configuration table includes:

获取所述工作状态异常时的处理服务器的ID;Obtain the ID of the processing server when the working state is abnormal;

利用所述ID,在所述任务配置表中查询所述ID关联的任务列表;Using the ID, query the task list associated with the ID in the task configuration table;

判断所述任务列表中任务的任务状态是否为完成状态;Judging whether the task state of the task in the task list is a completed state;

当所述任务列表中任务的任务状态为完成状态时,则过滤所述任务状态为完成状态的任务;When the task state of the task in the task list is the completed state, then filter the tasks whose task state is the completed state;

当所述任务列表中任务的任务状态不为完成状态时,则提取所述任务状态不为完成状态的任务作为所述目标任务。When the task state of the task in the task list is not the completed state, the task whose task state is not the completed state is extracted as the target task.

可选地,所述将所述待执行任务的任务状态执行初始化操作,得到初始化任务,包括:Optionally, performing an initialization operation on the task state of the to-be-executed task to obtain an initialization task, including:

在预设的处理服务器管理系统中配置初始化代码;Configure the initialization code in the preset processing server management system;

执行所述初始化代码,将所述目标任务的任务状态重置为等待执行状态,得到所述初始化任务;Execute the initialization code, reset the task state of the target task to a waiting state to obtain the initialization task;

将所述初始化任务利用所述工作状态异常的处理服务器抛出,并利用工作状态正常的处理服务器执行处理操作。Throwing the initialization task using the processing server with abnormal working status, and using the processing server with normal working status to perform processing operations.

可选地,所述所述利用工作状态正常的处理服务器执行处理操作,包括:Optionally, the performing the processing operation by using a processing server in a normal working state includes:

利用所述工作状态正常的处理服务器获取重置得到的初始化任务;Use the processing server in a normal working state to obtain the initialization task obtained by reset;

在所述任务配置表中进行查询所述初始化任务,提取查询成功的初始化任务的ID,汇总查询成功的初始化任务及对应的ID得到初始化任务表;Querying the initialization tasks in the task configuration table, extracting the IDs of the initialization tasks that have been successfully queried, and summarizing the initialization tasks and the corresponding IDs that have been successfully queried to obtain an initialization task table;

建立所述初始化任务表中的每个初始化任务与所述工作状态正常的处理服务器的关联ID,并利用所述关联ID替换所述初始化任务表中的ID,得到标准初始化任务表;establishing an association ID between each initialization task in the initialization task table and the processing server in the normal working state, and replacing the ID in the initialization task table with the associated ID to obtain a standard initialization task table;

利用所述工作状态正常的处理服务器遍历所述标准初始化任务表中的任务,并对遍历到的任务执行处理操作。Use the processing server in a normal working state to traverse the tasks in the standard initialization task table, and perform processing operations on the traversed tasks.

可选地,所述利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理,包括:Optionally, the processing server is reused after the task monitoring script preconfigured in the processing server is used to capture the abnormal task from the task configuration table, and the task status of the abnormal task is initialized. Processing the abnormal task, including:

运行所述预配置的任务监控脚本,批量识别所述任务配置表中每个任务的任务状态;Running the preconfigured task monitoring script to identify the task status of each task in the task configuration table in batches;

过滤掉所述任务配置表中任务状态为等待执行状态和完成状态的任务,并提取所述任务配置表中任务状态为执行中状态的任务作为待分析任务;Filter out the tasks whose task status in the task configuration table is the waiting state and the completion status, and extract the task whose task status is the executing state in the task configuration table as the task to be analyzed;

判断所述待分析任务是否为异常任务;Determine whether the to-be-analyzed task is an abnormal task;

当所述待分析任务不是异常任务时,则过滤所述任务状态为完成状态的任务;When the to-be-analyzed task is not an abnormal task, filter the tasks whose task status is a completed status;

当所述待分析任务是异常任务时,则将所述待分析任务的任务状态执行初始化处理,重置任务状态为等待执行状态;When the to-be-analyzed task is an abnormal task, perform initialization processing on the task state of the to-be-analyzed task, and reset the task state to a waiting state;

将所述执行初始化处理后的待分析任务重新利用所述处理服务器执行处理。The to-be-analyzed task after performing the initialization processing is reused to perform processing by the processing server.

可选地,所述判断所述待分析任务是否为异常任务,包括:Optionally, the judging whether the to-be-analyzed task is an abnormal task includes:

基于所述预构建的任务监控脚本,在预设的时间段对待分析任务的任务状态进行任务状态监控;Based on the pre-built task monitoring script, monitor the task status of the task to be analyzed in a preset time period;

当所述待分析任务的任务状态在所述时间段内更新为完成状态时,则清除所述完成状态的所述待分析任务;When the task state of the task to be analyzed is updated to a completed state within the time period, the task to be analyzed in the completed state is cleared;

当所述待分析任务的任务状态在所述时间段内未发生改变时,则确定所述待分析任务为异常任务。When the task state of the task to be analyzed does not change within the time period, the task to be analyzed is determined to be an abnormal task.

可选地,所述将所述执行初始化处理后的待分析任务重新利用所述处理服务器执行处理,包括:Optionally, the reusing the processing server to perform processing on the to-be-analyzed task after performing initialization processing includes:

判定当所述待分析任务为异常任务时,则将所述待分析任务存储至预设的异常任务存储器中;It is determined that when the task to be analyzed is an abnormal task, the task to be analyzed is stored in a preset abnormal task memory;

初始化所述异常任务存储器中的所有待分析任务的任务状态,并利用所述处理服务器重新处理;Initialize the task states of all tasks to be analyzed in the abnormal task memory, and reprocess using the processing server;

当所述待分析任务执行预设次数后,任务状态仍为未完成状态,则对所述待分析任务进行标记并生成警告信号,将所述警告信号返回至用户接收端。After the task to be analyzed is executed a preset number of times, and the task status is still not completed, the task to be analyzed is marked and a warning signal is generated, and the warning signal is returned to the user receiving end.

为了解决上述问题,本发明还提供一种异常任务智能处理装置,所述装置包括:In order to solve the above problems, the present invention also provides an abnormal task intelligent processing device, the device includes:

服务器工作状态检测模块,用于获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态;The server working state detection module is used to obtain the task configuration table and judge the working state of the processing server that processes the task configuration table;

任务状态重置模块,用于当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务;将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理;A task state reset module, configured to query the target task associated with the ID from the task configuration table according to the ID of the processing server when the working state of the processing server is abnormal; The task state performs the initialization operation, obtains the initialization task, and throws the initialization task to the processing server in a normal working state for processing;

异常任务处理模块,用于当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。The abnormal task processing module is used to capture abnormal tasks from the task configuration table by using the task monitoring script preconfigured in the processing server when the working state of the processing server is normal, and use the abnormal task After the task state is initialized, the processing server is reused to process the abnormal task.

为了解决上述问题,本发明还提供一种电子设备,所述电子设备包括:In order to solve the above problems, the present invention also provides an electronic device, the electronic device includes:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述所述的异常任务智能处理方法。The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the above-mentioned method for intelligent processing of abnormal tasks .

为了解决上述问题,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个计算机程序,所述至少一个计算机程序被电子设备中的处理器执行以实现上述所述的异常任务智能处理方法。In order to solve the above problems, the present invention also provides a computer-readable storage medium, where at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is executed by a processor in an electronic device to realize the above-mentioned The intelligent processing method for abnormal tasks described above.

本发明实施例首先通过判断任务服务器的工作状态是否正常,当所述工作状态异常时,则将所述任务服务器中的所有任务执行任务状态重置,并抛给到工作状态正常的处理服务器执行处理,可以有效的解决处在异常工作状态的处理服务器中任务的二次处理;其次,当所述工作状态正常时,则通过预配置的任务监控脚本,来查询异常任务以及通过初始化的操作来将异常任务的任务状态进行重置后,再次使用所述任务服务器进行处理。因此,本方案可以实现异常任务的实时识别。因此,本方案可以提高异常任务处理的及时性。The embodiment of the present invention firstly judges whether the working state of the task server is normal, and when the working state is abnormal, resets all the task execution task states in the task server, and throws them to the processing server with normal working state for execution processing, can effectively solve the secondary processing of tasks in the processing server in an abnormal working state; secondly, when the working state is normal, query the abnormal task through the preconfigured task monitoring script and initialize the operation. After resetting the task state of the abnormal task, use the task server again for processing. Therefore, this scheme can realize real-time identification of abnormal tasks. Therefore, this solution can improve the timeliness of abnormal task processing.

附图说明Description of drawings

图1为本发明一实施例提供的异常任务智能处理方法的流程示意图;1 is a schematic flowchart of a method for intelligently processing abnormal tasks according to an embodiment of the present invention;

图2为本发明一实施例提供的异常任务智能处理装置的功能模块图;2 is a functional block diagram of an abnormal task intelligent processing device provided by an embodiment of the present invention;

图3为本发明一实施例提供的实现所述异常任务智能处理方法的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device implementing the method for intelligently processing abnormal tasks according to an embodiment of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

本申请实施例提供一种异常任务智能处理方法。所述异常任务智能处理方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。换言之,所述异常任务智能处理方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。所述服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。The embodiment of the present application provides an intelligent processing method for abnormal tasks. The execution subject of the method for intelligently processing abnormal tasks includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server and a terminal. In other words, the method for intelligent processing of abnormal tasks may be executed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server can be an independent server, or can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network) Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.

参照图1所示,为本发明一实施例提供的异常任务智能处理方法的流程示意图。在本实施例中,所述异常任务智能处理方法包括:Referring to FIG. 1 , it is a schematic flowchart of a method for intelligently processing abnormal tasks according to an embodiment of the present invention. In this embodiment, the method for intelligently processing abnormal tasks includes:

S1、获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态。S1. Acquire a task configuration table, and determine the working state of a processing server that processes the task configuration table.

本发明实施例中,所述任务配置表中包括不同数据系统下发的待处理的工作任务,所述任务配置表中的工作任务可以由通过处理服务器进行抓取和处理。In the embodiment of the present invention, the task configuration table includes to-be-processed work tasks issued by different data systems, and the work tasks in the task configuration table can be captured and processed by a processing server.

本发明实施例中,所述处理服务器是指用来处理任务配置表中任务的服务器,其中,当所述处理服务器处在异常工作时,会影响依赖于所述处理服务器的所有工作的处理状态,产生严重的生产问题。In this embodiment of the present invention, the processing server refers to a server used to process tasks in the task configuration table, wherein, when the processing server is in an abnormal operation, the processing status of all tasks that depend on the processing server will be affected. , resulting in serious production problems.

详细地,本发明实施例利用预构建的检测指令对所述处理服务器执行运行检测,并返回检测结果,并通过判断所述检测结果是否正常,判定所述处理服务器的工作状态是否为正常工作状态。In detail, the embodiment of the present invention uses a pre-built detection instruction to perform operation detection on the processing server, returns a detection result, and determines whether the working state of the processing server is a normal working state by judging whether the detection result is normal or not. .

本发明实施例中,所述预构建的检测指令是指对运行服务器的工作状态进行检查的指令。In the embodiment of the present invention, the pre-built detection instruction refers to an instruction for checking the working state of the running server.

本发明实施例中,所述检测结果是指对所述处理服务器执行检测后,返回至所述检测指令输入平台的所述处理服务器的各项运行参数。In this embodiment of the present invention, the detection result refers to various operating parameters of the processing server that are returned to the detection instruction input platform after the detection is performed on the processing server.

本发明实施例中,所述工作状态是指处理任务的处理服务器的运行状态,包括运行状态正常及运行状态异常,其中,运行状态正常是指服务器可以正常抓取任务和处理任务,运行状态异常包括但不限于处理服务器的状态为重启状态、中断状态等。In the embodiment of the present invention, the working state refers to the running state of the processing server that processes the task, including normal running state and abnormal running state, wherein, the running state is normal means that the server can normally grab tasks and process tasks, and the running state is abnormal Including but not limited to processing the status of the server as restart status, interrupt status, etc.

S2、当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务。S2. When the working state of the processing server is abnormal, according to the ID of the processing server, query the target task associated with the ID from the task configuration table.

本发明实施例中,所述ID是指唯一标识每一台服务器的身份编码。In this embodiment of the present invention, the ID refers to an identity code that uniquely identifies each server.

详细地,本发明实施例通过获取所述工作状态异常时的所述处理服务器的ID;利用所述ID,在所述任务配置表中查询所述ID关联的任务列表;判断所述任务列表中任务的任务状态是否为完成状态;当所述任务列表中任务的任务状态为完成状态时,则过滤所述任务状态为完成状态的任务;当所述任务列表中任务的任务状态不为完成状态时,则提取所述任务状态不为完成状态的任务作为所述目标任务。In detail, the embodiment of the present invention obtains the ID of the processing server when the working state is abnormal; uses the ID to query the task list associated with the ID in the task configuration table; Whether the task state of the task is the completed state; when the task state of the task in the task list is the completed state, then filter the tasks whose task state is the completed state; when the task state of the task in the task list is not the completed state When the task state is not in the completed state, the task is extracted as the target task.

本发明实施例中,所述待执行任务是指任务状态为执行中的任务,其中,任务状态包括等待执行状态、执行中状态,完成状态等。In this embodiment of the present invention, the to-be-executed task refers to a task whose task state is executing, wherein the task state includes a waiting state, an executing state, a completed state, and the like.

S3、将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理。S3. Perform an initialization operation on the task state of the target task to obtain an initialization task, and throw the initialization task to a processing server in a normal working state for processing.

本发明实施例中,所述初始化操作是指将参数、任务进程、软件应用等运行状态重置为最初状态的过程。例如,本发明实施例中,所述初始化操作则是将任务的运行状态由执行中状态初始化为等待执行状态。In the embodiment of the present invention, the initialization operation refers to a process of resetting running states such as parameters, task processes, and software applications to the initial state. For example, in the embodiment of the present invention, the initialization operation is to initialize the running state of the task from an executing state to a waiting state for execution.

详细地,所述将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理,包括:Specifically, performing an initialization operation on the task state of the target task to obtain an initialization task, and throwing the initialization task to a processing server in a normal working state for processing includes:

在预设的处理服务器管理系统中配置初始化代码;Configure the initialization code in the preset processing server management system;

执行所述初始化代码,将所述目标任务的任务状态重置为等待执行状态,得到所述初始化任务;Execute the initialization code, reset the task state of the target task to a waiting state to obtain the initialization task;

将所述初始化任务利用所述工作状态异常的处理服务器抛出,并利用工作状态正常的处理服务器执行处理操作。Throwing the initialization task using the processing server with abnormal working status, and using the processing server with normal working status to perform processing operations.

进一步地,所述利用工作状态正常的处理服务器执行处理操作,包括:Further, the processing operation performed by the processing server in a normal working state includes:

利用所述工作状态正常的处理服务器获取重置得到的初始化任务;Use the processing server in a normal working state to obtain the initialization task obtained by reset;

在所述任务配置表中进行查询所述初始化任务,提取查询成功的初始化任务的ID,汇总查询成功的初始化任务及对应的ID得到初始化任务表;Querying the initialization tasks in the task configuration table, extracting the IDs of the initialization tasks that have been successfully queried, and summarizing the initialization tasks and the corresponding IDs that have been successfully queried to obtain an initialization task table;

建立所述初始化任务表中的每个初始化任务与所述工作状态正常的处理服务器的关联ID,并利用所述关联ID替换所述初始化任务表中的ID,得到标准初始化任务表;establishing an association ID between each initialization task in the initialization task table and the processing server in the normal working state, and replacing the ID in the initialization task table with the associated ID to obtain a standard initialization task table;

利用所述工作状态正常的处理服务器遍历所述标准初始化任务表中的任务,并对遍历到的任务执行处理操作。Use the processing server in a normal working state to traverse the tasks in the standard initialization task table, and perform processing operations on the traversed tasks.

本发明实施例中,所述初始化代码是指在应用底层编写的,可实现初始化操作的代码。例如,当代码中出现“init”初始化代码语句时,则将“init”初始化语句中的内容实体执行初始化处理。In the embodiment of the present invention, the initialization code refers to the code written at the bottom layer of the application, which can realize the initialization operation. For example, when an "init" initialization code statement appears in the code, initialization processing is performed on the content entity in the "init" initialization statement.

S4、当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。S4. When the working status of the processing server is normal, use the task monitoring script preconfigured in the processing server to capture abnormal tasks from the task configuration table, and perform an initialization operation on the task status of the abnormal tasks Afterwards, the processing server is reused to process the abnormal task.

本发明实施例中,所述预配置的任务监控脚本是指根据描述性语言,编写的可批量处理文件的可执行文件。例如,本发明实施例中,所述预配置的任务监控脚本是指根据任务之间的依赖关系进行设计的检测任务是否正常的可执行文件。In the embodiment of the present invention, the preconfigured task monitoring script refers to an executable file that is written according to a descriptive language and can process files in batches. For example, in the embodiment of the present invention, the preconfigured task monitoring script refers to an executable file designed according to the dependency relationship between tasks to detect whether the task is normal.

详细地,所述利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理,包括:In detail, the abnormal task is captured from the task configuration table by using the task monitoring script preconfigured in the processing server, and the task status of the abnormal task is initialized, and then the processing server is reused to perform an initialization operation. The abnormal task is processed, including:

运行所述预配置的任务监控脚本,批量识别所述任务配置表中每个任务的任务状态;Running the preconfigured task monitoring script to identify the task status of each task in the task configuration table in batches;

过滤掉所述任务配置表中任务状态为等待执行状态和完成状态的任务,并提取所述任务配置表中任务状态为执行中状态的任务作为待分析任务;Filter out the tasks whose task status in the task configuration table is the waiting state and the completion status, and extract the task whose task status is the executing state in the task configuration table as the task to be analyzed;

判断所述待分析任务是否为异常任务;Determine whether the to-be-analyzed task is an abnormal task;

当所述待分析任务不是异常任务时,则过滤所述任务状态为完成状态的任务;When the to-be-analyzed task is not an abnormal task, filter the tasks whose task status is a completed status;

当所述待分析任务是异常任务时,则将所述待分析任务的任务状态执行初始化处理,重置任务状态为等待执行状态;When the to-be-analyzed task is an abnormal task, perform initialization processing on the task state of the to-be-analyzed task, and reset the task state to a waiting state;

将所述执行初始化处理后的待分析任务重新利用所述处理服务器执行处理。The to-be-analyzed task after performing the initialization processing is reused to perform processing by the processing server.

本发明实施例中,由于异常任务往往不会出现在等待执行状态和完成状态阶段,通过将等待执行状态和完成状态阶段的任务进行过滤,可以提高异常任务识别的准确率。In the embodiment of the present invention, since abnormal tasks often do not appear in the waiting execution state and the completion state stage, the accuracy of abnormal task identification can be improved by filtering the tasks in the waiting execution state and the completion state stage.

进一步地,所述判断所述待分析任务是否为异常任务,包括:Further, the judging whether the to-be-analyzed task is an abnormal task includes:

基于所述预构建的任务监控脚本,在预设的时间段对待分析任务的任务状态进行任务状态监控;Based on the pre-built task monitoring script, monitor the task status of the task to be analyzed in a preset time period;

当所述待分析任务的任务状态在所述时间段内更新为完成状态时,则清除所述完成状态的所述待分析任务;When the task state of the task to be analyzed is updated to a completed state within the time period, the task to be analyzed in the completed state is cleared;

当所述待分析任务的任务状态在所述时间段内未发生改变时,则确定所述待分析任务为异常任务。When the task state of the task to be analyzed does not change within the time period, the task to be analyzed is determined to be an abnormal task.

进一步地,本发明实施例判定当所述待分析任务为异常任务时,则将所述待分析任务存储至预设的异常任务存储器中;初始化所述异常任务存储器中的所有待分析任务的任务状态,并利用所述处理服务器重新处理;当所述待分析任务执行预设次数后,任务状态仍为未完成状态,则对所述待分析任务进行标记并生成警告信号,将所述警告信号返回至用户接收端。Further, the embodiment of the present invention determines that when the task to be analyzed is an abnormal task, the task to be analyzed is stored in a preset abnormal task memory; the tasks of all tasks to be analyzed in the abnormal task memory are initialized. state, and use the processing server to reprocess; when the task status is still unfinished after the task to be analyzed is executed for a preset number of times, the task to be analyzed is marked and a warning signal is generated, and the warning signal is Return to the user receiver.

本发明一可选实施例中,所述预设次数可以为3次,对于待分析任务执行3次后,任务状态仍为未完成状态,则进行标记并向用户接收端(可以为手机、电脑等)发送包含警告信号的邮件或信息。In an optional embodiment of the present invention, the preset number of times may be 3 times. After the task to be analyzed is executed 3 times, if the task status is still in the unfinished state, it will be marked and sent to the user receiving end (which can be a mobile phone, a computer, etc.). etc.) send emails or messages containing warning signs.

本发明实施例首先通过判断任务服务器的工作状态是否正常,当所述工作状态异常时,则将所述任务服务器中的所有任务执行任务状态重置,并抛给到工作状态正常的处理服务器执行处理,可以有效的解决处在异常工作状态的处理服务器中任务的二次处理;其次,当所述工作状态正常时,则通过预配置的任务监控脚本,来查询异常任务以及通过初始化的操作来将异常任务的任务状态进行重置后,再次使用所述任务服务器进行处理。因此,本方案可以实现异常任务的实时识别。因此,本方案可以提高异常任务处理的及时性。The embodiment of the present invention firstly judges whether the working state of the task server is normal, and when the working state is abnormal, resets all the task execution task states in the task server, and throws them to the processing server with normal working state for execution processing, can effectively solve the secondary processing of tasks in the processing server in an abnormal working state; secondly, when the working state is normal, query the abnormal task through the preconfigured task monitoring script and initialize the operation. After resetting the task state of the abnormal task, use the task server again for processing. Therefore, this scheme can realize real-time identification of abnormal tasks. Therefore, this solution can improve the timeliness of abnormal task processing.

如图2所示,是本发明一实施例提供的异常任务智能处理装置的功能模块图。As shown in FIG. 2 , it is a functional block diagram of an abnormal task intelligent processing apparatus provided by an embodiment of the present invention.

本发明所述异常任务智能处理装置100可以安装于电子设备中。根据实现的功能,所述异常任务智能处理装置100可以包括服务器工作状态检测模块101、任务状态重置模块102以及异常任务处理模块103。本发明所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The abnormal task intelligent processing apparatus 100 of the present invention may be installed in an electronic device. According to the realized functions, the abnormal task intelligent processing apparatus 100 may include a server working state detection module 101 , a task state reset module 102 and an abnormal task processing module 103 . The modules in the present invention can also be called units, which refer to a series of computer program segments that can be executed by the electronic device processor and can perform fixed functions, and are stored in the memory of the electronic device.

在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:

所述服务器工作状态检测模块101,用于获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态。The server working state detection module 101 is configured to obtain a task configuration table and determine the working state of a processing server that processes the task configuration table.

本发明实施例中,所述任务配置表中包括不同数据系统下发的待处理的工作任务,所述任务配置表中的工作任务可以由通过处理服务器进行抓取和处理。In the embodiment of the present invention, the task configuration table includes to-be-processed work tasks issued by different data systems, and the work tasks in the task configuration table can be captured and processed by a processing server.

本发明实施例中,所述处理服务器是指用来处理任务配置表中任务的服务器,其中,当所述处理服务器处在异常工作时,会影响依赖于所述处理服务器的所有工作的处理状态,产生严重的生产问题。In this embodiment of the present invention, the processing server refers to a server used to process tasks in the task configuration table, wherein, when the processing server is in an abnormal operation, the processing status of all tasks that depend on the processing server will be affected. , resulting in serious production problems.

详细地,本发明实施例利用预构建的检测指令对所述处理服务器执行运行检测,并返回检测结果,并通过判断所述检测结果是否正常,判定所述处理服务器的工作状态是否为正常工作状态。In detail, the embodiment of the present invention uses a pre-built detection instruction to perform operation detection on the processing server, returns a detection result, and determines whether the working state of the processing server is a normal working state by judging whether the detection result is normal or not. .

本发明实施例中,所述预构建的检测指令是指对运行服务器的工作状态进行检查的指令。In the embodiment of the present invention, the pre-built detection instruction refers to an instruction for checking the working state of the running server.

本发明实施例中,所述检测结果是指对所述处理服务器执行检测后,返回至所述检测指令输入平台的所述处理服务器的各项运行参数。In this embodiment of the present invention, the detection result refers to various operating parameters of the processing server that are returned to the detection instruction input platform after the detection is performed on the processing server.

本发明实施例中,所述工作状态是指处理任务的处理服务器的运行状态,包括运行状态正常及运行状态异常,其中,运行状态正常是指服务器可以正常抓取任务和处理任务,运行状态异常包括但不限于处理服务器的状态为重启状态、中断状态等。In the embodiment of the present invention, the working state refers to the running state of the processing server that processes the task, including normal running state and abnormal running state, wherein, the running state is normal means that the server can capture tasks and process tasks normally, and the running state is abnormal Including but not limited to processing the status of the server as restart status, interrupt status, etc.

所述任务状态重置模块102,用于当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务;将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理。The task status reset module 102 is configured to, when the working status of the processing server is abnormal, query the target task associated with the ID from the task configuration table according to the ID of the processing server; The initialization operation is performed according to the task state of the target task, an initialization task is obtained, and the initialization task is thrown to a processing server in a normal working state for processing.

本发明实施例中,所述ID是指唯一标识每一台服务器的身份编码。In this embodiment of the present invention, the ID refers to an identity code that uniquely identifies each server.

详细地,本发明实施例通过获取所述工作状态异常时的所述处理服务器的ID;利用所述ID,在所述任务配置表中查询所述ID关联的任务列表;判断所述任务列表中任务的任务状态是否为完成状态;当所述任务列表中任务的任务状态为完成状态时,则过滤所述任务状态为完成状态的任务;当所述任务列表中任务的任务状态不为完成状态时,则提取所述任务状态不为完成状态的任务作为所述目标任务。In detail, the embodiment of the present invention obtains the ID of the processing server when the working state is abnormal; uses the ID to query the task list associated with the ID in the task configuration table; Whether the task state of the task is the completed state; when the task state of the task in the task list is the completed state, then filter the tasks whose task state is the completed state; when the task state of the task in the task list is not the completed state When the task state is not in the completed state, the task is extracted as the target task.

本发明实施例中,所述待执行任务是指任务状态为执行中的任务,其中,任务状态包括等待执行状态、执行中状态,完成状态等。In this embodiment of the present invention, the to-be-executed task refers to a task whose task state is executing, wherein the task state includes a waiting state, an executing state, a completed state, and the like.

本发明实施例中,所述初始化操作是指将参数、任务进程、软件应用等运行状态重置为最初状态的过程。例如,本发明实施例中,所述初始化操作则是将任务的运行状态由执行中状态初始化为等待执行状态。In the embodiment of the present invention, the initialization operation refers to a process of resetting running states such as parameters, task processes, and software applications to the initial state. For example, in the embodiment of the present invention, the initialization operation is to initialize the running state of the task from an executing state to a waiting state for execution.

详细地,所述将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理,包括:Specifically, performing an initialization operation on the task state of the target task to obtain an initialization task, and throwing the initialization task to a processing server in a normal working state for processing includes:

在预设的处理服务器管理系统中配置初始化代码;Configure the initialization code in the preset processing server management system;

执行所述初始化代码,将所述目标任务的任务状态重置为等待执行状态,得到所述初始化任务;Execute the initialization code, reset the task state of the target task to a waiting state to obtain the initialization task;

将所述初始化任务利用所述工作状态异常的处理服务器抛出,并利用工作状态正常的处理服务器执行处理操作。Throwing the initialization task using the processing server with abnormal working status, and using the processing server with normal working status to perform processing operations.

进一步地,所述利用工作状态正常的处理服务器执行处理操作,包括:Further, the processing operation performed by the processing server in a normal working state includes:

利用所述工作状态正常的处理服务器获取重置得到的初始化任务;Use the processing server in a normal working state to obtain the initialization task obtained by reset;

在所述任务配置表中进行查询所述初始化任务,提取查询成功的初始化任务的ID,汇总查询成功的初始化任务及对应的ID得到初始化任务表;Querying the initialization tasks in the task configuration table, extracting the IDs of the initialization tasks that have been successfully queried, and summarizing the initialization tasks and the corresponding IDs that have been successfully queried to obtain an initialization task table;

建立所述初始化任务表中的每个初始化任务与所述工作状态正常的处理服务器的关联ID,并利用所述关联ID替换所述初始化任务表中的ID,得到标准初始化任务表;establishing an association ID between each initialization task in the initialization task table and the processing server in the normal working state, and replacing the ID in the initialization task table with the associated ID to obtain a standard initialization task table;

利用所述工作状态正常的处理服务器遍历所述标准初始化任务表中的任务,并对遍历到的任务执行处理操作。Use the processing server in a normal working state to traverse the tasks in the standard initialization task table, and perform processing operations on the traversed tasks.

本发明实施例中,所述初始化代码是指在应用底层编写的,可实现初始化操作的代码。例如,当代码中出现“init”初始化代码语句时,则将“init”初始化语句中的内容实体执行初始化处理。In the embodiment of the present invention, the initialization code refers to the code written at the bottom layer of the application, which can realize the initialization operation. For example, when an "init" initialization code statement appears in the code, initialization processing is performed on the content entity in the "init" initialization statement.

所述异常任务处理模块103,用于当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。The abnormal task processing module 103 is configured to capture abnormal tasks from the task configuration table by using a task monitoring script preconfigured in the processing server when the working state of the processing server is normal, and store the abnormal tasks in the task configuration table. After the task state of the abnormal task is initialized, the processing server is reused to process the abnormal task.

本发明实施例中,所述预配置的任务监控脚本是指根据描述性语言,编写的可批量处理文件的可执行文件。例如,本发明实施例中,所述预配置的任务监控脚本是指根据任务之间的依赖关系进行设计的检测任务是否正常的可执行文件。In the embodiment of the present invention, the preconfigured task monitoring script refers to an executable file that is written according to a descriptive language and can process files in batches. For example, in the embodiment of the present invention, the preconfigured task monitoring script refers to an executable file designed according to the dependency relationship between tasks to detect whether the task is normal.

详细地,所述利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理,包括:In detail, the abnormal task is captured from the task configuration table by using the task monitoring script preconfigured in the processing server, and the task status of the abnormal task is initialized, and then the processing server is reused to perform an initialization operation. The abnormal task is processed, including:

运行所述预配置的任务监控脚本,批量识别所述任务配置表中每个任务的任务状态;Running the preconfigured task monitoring script to identify the task status of each task in the task configuration table in batches;

过滤掉所述任务配置表中任务状态为等待执行状态和完成状态的任务,并提取所述任务配置表中任务状态为执行中状态的任务作为待分析任务;Filter out the tasks whose task status in the task configuration table is the waiting state and the completion status, and extract the task whose task status is the executing state in the task configuration table as the task to be analyzed;

判断所述待分析任务是否为异常任务;Determine whether the to-be-analyzed task is an abnormal task;

当所述待分析任务不是异常任务时,则过滤所述任务状态为完成状态的任务;When the to-be-analyzed task is not an abnormal task, filter the tasks whose task status is a completed status;

当所述待分析任务是异常任务时,则将所述待分析任务的任务状态执行初始化处理,重置任务状态为等待执行状态;When the to-be-analyzed task is an abnormal task, perform initialization processing on the task state of the to-be-analyzed task, and reset the task state to a waiting state;

将所述执行初始化处理后的待分析任务重新利用所述处理服务器执行处理。The to-be-analyzed task after performing the initialization processing is reused to perform processing by the processing server.

本发明实施例中,由于异常任务往往不会出现在等待执行状态和完成状态阶段,通过将等待执行状态和完成状态阶段的任务进行过滤,可以提高异常任务识别的准确率。In the embodiment of the present invention, since abnormal tasks often do not appear in the waiting execution state and the completion state stage, the accuracy of abnormal task identification can be improved by filtering the tasks in the waiting execution state and the completion state stage.

进一步地,所述判断所述待分析任务是否为异常任务,包括:Further, the judging whether the to-be-analyzed task is an abnormal task includes:

基于所述预构建的任务监控脚本,在预设的时间段对待分析任务的任务状态进行任务状态监控;Based on the pre-built task monitoring script, monitor the task status of the task to be analyzed in a preset time period;

当所述待分析任务的任务状态在所述时间段内更新为完成状态时,则清除所述完成状态的所述待分析任务;When the task state of the task to be analyzed is updated to a completed state within the time period, the task to be analyzed in the completed state is cleared;

当所述待分析任务的任务状态在所述时间段内未发生改变时,则确定所述待分析任务为异常任务。When the task state of the task to be analyzed does not change within the time period, the task to be analyzed is determined to be an abnormal task.

进一步地,本发明实施例判定当所述待分析任务为异常任务时,则将所述待分析任务存储至预设的异常任务存储器中;初始化所述异常任务存储器中的所有待分析任务的任务状态,并利用所述处理服务器重新处理;当所述待分析任务执行预设次数后,任务状态仍为未完成状态,则对所述待分析任务进行标记并生成警告信号,将所述警告信号返回至用户接收端。Further, the embodiment of the present invention determines that when the task to be analyzed is an abnormal task, the task to be analyzed is stored in a preset abnormal task memory; the tasks of all tasks to be analyzed in the abnormal task memory are initialized. state, and use the processing server to reprocess; when the task status is still unfinished after the task to be analyzed is executed for a preset number of times, the task to be analyzed is marked and a warning signal is generated, and the warning signal is Return to the user receiver.

本发明一可选实施例中,所述预设次数可以为3次,对于待分析任务执行3次后,任务状态仍为未完成状态,则进行标记并向用户接收端(可以为手机、电脑等)发送包含警告信号的邮件或信息。In an optional embodiment of the present invention, the preset number of times may be 3 times. After the task to be analyzed is executed 3 times, if the task status is still in the unfinished state, it will be marked and sent to the user receiving end (which can be a mobile phone, a computer, etc.). etc.) send emails or messages containing warning signs.

本发明实施例首先通过判断任务服务器的工作状态是否正常,当所述工作状态异常时,则将所述任务服务器中的所有任务执行任务状态重置,并抛给到其他工作状态正常的处理服务器执行处理,可以有效的解决处在异常工作状态的任务服务器中任务的二次处理;其次,当所述工作状态正常时,则通过预配置的任务监控脚本,来查询异常任务以及通过初始化的操作来将异常任务的任务状态进行重置后,再次使用所述任务服务器进行处理,对于任一状态的任务服务器都可以实现异常任务的实时识别。因此,本方案可以提高异常任务二次处理的及时性。The embodiment of the present invention firstly judges whether the working state of the task server is normal, and when the working state is abnormal, resets all task execution task states in the task server and throws them to other processing servers with normal working states Executing the processing can effectively solve the secondary processing of the task in the task server in the abnormal working state; secondly, when the working state is normal, query the abnormal task through the preconfigured task monitoring script and initialize the operation After resetting the task state of the abnormal task, the task server is used again for processing, and real-time identification of the abnormal task can be realized for the task server in any state. Therefore, this solution can improve the timeliness of secondary processing of abnormal tasks.

如图3所示,是本发明一实施例提供的实现异常任务智能处理方法的电子设备的结构示意图。As shown in FIG. 3 , it is a schematic structural diagram of an electronic device for implementing an intelligent processing method for an abnormal task provided by an embodiment of the present invention.

所述电子设备1可以包括处理器10、存储器11、通信总线12以及通信接口13,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如异常任务智能处理程序。The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as abnormal task intelligence. handler.

其中,所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(ControlUnit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如执行异常任务智能处理程序等),以及调用存储在所述存储器11内的数据,以执行电子设备的各种功能和处理数据。The processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or A combination of multiple central processing units (Central Processing Units, CPUs), microprocessors, digital processing chips, graphics processors, and various control chips, etc. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and by running or executing the program or module stored in the memory 11 (for example, abnormal execution) Task intelligent processing program, etc.), and call the data stored in the memory 11 to perform various functions of the electronic device and process data.

所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备的内部存储单元,例如该电子设备的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备的外部存储设备,例如电子设备上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备的应用软件及各类数据,例如异常任务智能处理程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. . In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of the electronic device, such as a pluggable mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the electronic device. ) card, flash card (Flash Card) and so on. Further, the memory 11 may also include both an internal storage unit of an electronic device and an external storage device. The memory 11 can not only be used to store application software installed in the electronic device and various types of data, such as codes of intelligent processing programs for abnormal tasks, etc., but also can be used to temporarily store data that has been output or will be output.

所述通信总线12可以是外设部件互连标准(peripheral componentinterconnect,简称PCI)总线或扩展工业标准结构(extended industry standardarchitecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.

所述通信接口13用于上述电子设备与其他设备之间的通信,包括网络接口和用户接口。可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备与其他电子设备之间建立通信连接。所述用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备中处理的信息以及用于显示可视化的用户界面。The communication interface 13 is used for communication between the above electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (eg, a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like. The display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device and for displaying a visual user interface.

图3仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图3示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 3 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 3 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the figure. components, or a combination of certain components, or a different arrangement of components.

例如,尽管未示出,所述电子设备还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device may also include a power source (such as a battery) for powering the various components, preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power source can be logically connected through the power management device. Implement functions such as charge management, discharge management, and power management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components. The electronic device may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.

所述电子设备1中的所述存储器11存储的异常任务智能处理程序是多个指令的组合,在所述处理器10中运行时,可以实现:The abnormal task intelligent processing program stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can realize:

获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态;Obtaining a task configuration table, and judging the working state of the processing server that processes the task configuration table;

当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务;When the working state of the processing server is abnormal, query the target task associated with the ID from the task configuration table according to the ID of the processing server;

将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理;Perform an initialization operation on the task state of the target task to obtain an initialization task, and throw the initialization task to a processing server with a normal working state for processing;

当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。When the working status of the processing server is normal, use the task monitoring script preconfigured in the processing server to capture the abnormal task from the task configuration table, and after performing the initialization operation on the task status of the abnormal task, Reuse the processing server to process the abnormal task.

具体地,所述处理器10对上述指令的具体实现方法可参考附图对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above-mentioned instruction by the processor 10, reference may be made to the description of the relevant steps in the embodiment corresponding to the accompanying drawings, which will not be repeated here.

进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。所述计算机可读存储介质可以是易失性的,也可以是非易失性的。例如,所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Further, if the modules/units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM, Read-Only). Memory).

本发明还提供一种计算机可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序在被电子设备的处理器所执行时,可以实现:The present invention also provides a computer-readable storage medium, where the readable storage medium stores a computer program, and when executed by a processor of an electronic device, the computer program can realize:

获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态;Obtaining a task configuration table, and judging the working state of the processing server that processes the task configuration table;

当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务;When the working state of the processing server is abnormal, query the target task associated with the ID from the task configuration table according to the ID of the processing server;

将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理;Performing an initialization operation on the task state of the target task to obtain an initialization task, and throwing the initialization task to a processing server in a normal working state for processing;

当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。When the working status of the processing server is normal, use the task monitoring script preconfigured in the processing server to capture the abnormal task from the task configuration table, and after performing the initialization operation on the task status of the abnormal task, Reuse the processing server to process the abnormal task.

在本发明所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division manners in actual implementation.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention.

因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the invention is to be defined by the appended claims rather than the foregoing description, which are therefore intended to fall within the scope of the claims. All changes within the meaning and range of the equivalents of , are included in the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim.

本发明所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process related data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .

此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一、第二等词语用来表示名称,而并不表示任何特定的顺序。Furthermore, it is clear that the word "comprising" does not exclude other units or steps and the singular does not exclude the plural. Several units or means recited in the system claims can also be realized by one unit or means by means of software or hardware. The words first, second, etc. are used to denote names and do not denote any particular order.

最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1.一种异常任务智能处理方法,其特征在于,所述方法包括:1. an abnormal task intelligent processing method, is characterized in that, described method comprises: 获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态;Obtaining a task configuration table, and judging the working state of the processing server that processes the task configuration table; 当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务;When the working state of the processing server is abnormal, query the target task associated with the ID from the task configuration table according to the ID of the processing server; 将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理;Performing an initialization operation on the task state of the target task to obtain an initialization task, and throwing the initialization task to a processing server in a normal working state for processing; 当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。When the working status of the processing server is normal, use the task monitoring script preconfigured in the processing server to capture the abnormal task from the task configuration table, and after performing the initialization operation on the task status of the abnormal task, Reuse the processing server to process the abnormal task. 2.如权利要求1所述的异常任务智能处理方法,其特征在于,所述根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务,包括:2. The method for intelligently processing abnormal tasks according to claim 1, wherein, according to the ID of the processing server, querying the target task associated with the ID from the task configuration table, comprising: 获取所述工作状态异常时的处理服务器的ID;Obtain the ID of the processing server when the working state is abnormal; 利用所述ID,在所述任务配置表中查询所述ID关联的任务列表;Using the ID, query the task list associated with the ID in the task configuration table; 判断所述任务列表中任务的任务状态是否为完成状态;Judging whether the task state of the task in the task list is a completed state; 当所述任务列表中任务的任务状态为完成状态时,则过滤所述任务状态为完成状态的任务;When the task state of the task in the task list is the completed state, then filter the tasks whose task state is the completed state; 当所述任务列表中任务的任务状态不为完成状态时,则提取所述任务状态不为完成状态的任务作为所述目标任务。When the task state of the task in the task list is not the completed state, the task whose task state is not the completed state is extracted as the target task. 3.如权利要求1所述的异常任务智能处理方法,其特征在于,所述将所述待执行任务的任务状态执行初始化操作,得到初始化任务,包括:3. The method for intelligently processing abnormal tasks according to claim 1, wherein the initialization operation is performed on the task state of the task to be executed to obtain an initialization task, comprising: 在预设的处理服务器管理系统中配置初始化代码;Configure the initialization code in the preset processing server management system; 执行所述初始化代码,将所述目标任务的任务状态重置为等待执行状态,得到所述初始化任务;Execute the initialization code, reset the task state of the target task to a waiting state to obtain the initialization task; 将所述初始化任务利用所述工作状态异常的处理服务器抛出,并利用工作状态正常的处理服务器执行处理操作。Throwing the initialization task using the processing server with abnormal working status, and using the processing server with normal working status to perform processing operations. 4.如权利要求3所述的异常任务智能处理方法,其特征在于,所述利用工作状态正常的处理服务器执行处理操作,包括:4. The method for intelligently processing abnormal tasks according to claim 3, wherein the processing operation performed by a processing server with a normal working state comprises: 利用所述工作状态正常的处理服务器获取重置得到的初始化任务;Use the processing server in a normal working state to obtain the initialization task obtained by reset; 在所述任务配置表中进行查询所述初始化任务,提取查询成功的初始化任务的ID,汇总查询成功的初始化任务及对应的ID得到初始化任务表;Querying the initialization tasks in the task configuration table, extracting the IDs of the initialization tasks that have been successfully queried, and summarizing the initialization tasks and the corresponding IDs that have been successfully queried to obtain an initialization task table; 建立所述初始化任务表中的每个初始化任务与所述工作状态正常的处理服务器的关联ID,并利用所述关联ID替换所述初始化任务表中的ID,得到标准初始化任务表;establishing an association ID between each initialization task in the initialization task table and the processing server in the normal working state, and replacing the ID in the initialization task table with the associated ID to obtain a standard initialization task table; 利用所述工作状态正常的处理服务器遍历所述标准初始化任务表中的任务,并对遍历到的任务执行处理操作。Use the processing server in a normal working state to traverse the tasks in the standard initialization task table, and perform processing operations on the traversed tasks. 5.如权利要求1所述的异常任务智能处理方法,其特征在于,所述利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理,包括:5. The method for intelligently processing abnormal tasks according to claim 1, wherein the abnormal task is captured from the task configuration table by using a task monitoring script preconfigured in the processing server, and the abnormal task is After the task state of the task is initialized, the processing server is reused to process the abnormal task, including: 运行所述预配置的任务监控脚本,批量识别所述任务配置表中每个任务的任务状态;Running the preconfigured task monitoring script to identify the task status of each task in the task configuration table in batches; 过滤掉所述任务配置表中任务状态为等待执行状态和完成状态的任务,并提取所述任务配置表中任务状态为执行中状态的任务作为待分析任务;Filter out the tasks whose task status in the task configuration table is the waiting state and the completion status, and extract the task whose task status is the executing state in the task configuration table as the task to be analyzed; 判断所述待分析任务是否为异常任务;Determine whether the to-be-analyzed task is an abnormal task; 当所述待分析任务不是异常任务时,则对不是异常任务的待分析任务执行过滤处理;When the to-be-analyzed task is not an abnormal task, perform filtering processing on the to-be-analyzed task that is not an abnormal task; 当所述待分析任务是异常任务时,则将所述待分析任务的任务状态执行初始化处理,重置任务状态为等待执行状态;When the to-be-analyzed task is an abnormal task, perform initialization processing on the task state of the to-be-analyzed task, and reset the task state to a waiting state; 将所述执行初始化处理后的待分析任务重新利用所述处理服务器执行处理。The to-be-analyzed task after performing the initialization processing is reused to perform processing by the processing server. 6.如权利要求5所述的异常任务智能处理方法,其特征在于,所述判断所述待分析任务是否为异常任务,包括:6. The method for intelligently processing abnormal tasks as claimed in claim 5, wherein the judging whether the task to be analyzed is an abnormal task comprises: 基于所述预构建的任务监控脚本,在预设的时间段对待分析任务的任务状态进行任务状态监控;Based on the pre-built task monitoring script, monitor the task status of the task to be analyzed in a preset time period; 当所述待分析任务的任务状态在所述时间段内更新为完成状态时,则清除所述完成状态的所述待分析任务;When the task state of the task to be analyzed is updated to a completed state within the time period, the task to be analyzed in the completed state is cleared; 当所述待分析任务的任务状态在所述时间段内未发生改变时,则确定所述待分析任务为异常任务。When the task state of the task to be analyzed does not change within the time period, the task to be analyzed is determined to be an abnormal task. 7.如权利要求5所述的异常任务智能处理方法,其特征在于,所述将所述执行初始化处理后的待分析任务重新利用所述处理服务器执行处理,包括:7. The method for intelligently processing abnormal tasks according to claim 5, wherein the reusing the processing server to perform processing on the to-be-analyzed task after performing the initialization processing comprises: 判定当所述待分析任务为异常任务时,则将所述待分析任务存储至预设的异常任务存储器中;It is determined that when the task to be analyzed is an abnormal task, the task to be analyzed is stored in a preset abnormal task memory; 初始化所述异常任务存储器中的所有待分析任务的任务状态,并利用所述处理服务器重新处理;Initialize the task states of all tasks to be analyzed in the abnormal task memory, and reprocess using the processing server; 当所述待分析任务执行预设次数后,任务状态仍为未完成状态,则对所述待分析任务进行标记并生成警告信号,将所述警告信号返回至用户接收端。After the task to be analyzed is executed a preset number of times, and the task status is still not completed, the task to be analyzed is marked and a warning signal is generated, and the warning signal is returned to the user receiving end. 8.一种异常任务智能处理装置,其特征在于,所述装置包括:8. An abnormal task intelligent processing device, wherein the device comprises: 服务器工作状态检测模块,用于获取任务配置表,并判断处理所述任务配置表的处理服务器的工作状态;The server working state detection module is used to obtain the task configuration table and judge the working state of the processing server that processes the task configuration table; 任务状态重置模块,用于当所述处理服务器的工作状态异常时,则根据所述处理服务器的ID,从所述任务配置表中查询与所述ID关联的目标任务;将所述目标任务的任务状态执行初始化操作,得到初始化任务,并将所述初始化任务抛给到工作状态正常的处理服务器中进行处理;A task state reset module, configured to query the target task associated with the ID from the task configuration table according to the ID of the processing server when the working state of the processing server is abnormal; The task state performs the initialization operation, obtains the initialization task, and throws the initialization task to the processing server in a normal working state for processing; 异常任务处理模块,用于当所述处理服务器的工作状态正常时,则利用在所述处理服务器中预配置的任务监控脚本从所述任务配置表中捕获异常任务,并将所述异常任务的任务状态执行初始化操作后,重新利用所述处理服务器对所述异常任务进行处理。The abnormal task processing module is used to capture abnormal tasks from the task configuration table by using the task monitoring script preconfigured in the processing server when the working state of the processing server is normal, and use the abnormal task After the task state is initialized, the processing server is reused to process the abnormal task. 9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;以及,at least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至7中任意一项所述的异常任务智能处理方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform any one of claims 1 to 7 The intelligent processing method for abnormal tasks described in item. 10.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任意一项所述的异常任务智能处理方法。10 . A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method for intelligently processing abnormal tasks according to any one of claims 1 to 7 is implemented. 11 .
CN202210166789.2A 2022-02-23 2022-02-23 Method, device, device and storage medium for intelligent processing of abnormal tasks Pending CN114510365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210166789.2A CN114510365A (en) 2022-02-23 2022-02-23 Method, device, device and storage medium for intelligent processing of abnormal tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210166789.2A CN114510365A (en) 2022-02-23 2022-02-23 Method, device, device and storage medium for intelligent processing of abnormal tasks

Publications (1)

Publication Number Publication Date
CN114510365A true CN114510365A (en) 2022-05-17

Family

ID=81553834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210166789.2A Pending CN114510365A (en) 2022-02-23 2022-02-23 Method, device, device and storage medium for intelligent processing of abnormal tasks

Country Status (1)

Country Link
CN (1) CN114510365A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115328713A (en) * 2022-08-08 2022-11-11 上海中通吉网络技术有限公司 Method, device and computer for guaranteeing normal use of service during shutdown of server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776093A (en) * 2016-12-12 2017-05-31 Tcl集团股份有限公司 A kind of application exception log processing method and system
CN110928716A (en) * 2019-10-24 2020-03-27 江苏苏宁物流有限公司 Scheduling task exception handling method and device
CN112445588A (en) * 2019-09-05 2021-03-05 阿里巴巴集团控股有限公司 Application task processing method, device and equipment and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776093A (en) * 2016-12-12 2017-05-31 Tcl集团股份有限公司 A kind of application exception log processing method and system
CN112445588A (en) * 2019-09-05 2021-03-05 阿里巴巴集团控股有限公司 Application task processing method, device and equipment and readable storage medium
CN110928716A (en) * 2019-10-24 2020-03-27 江苏苏宁物流有限公司 Scheduling task exception handling method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115328713A (en) * 2022-08-08 2022-11-11 上海中通吉网络技术有限公司 Method, device and computer for guaranteeing normal use of service during shutdown of server

Similar Documents

Publication Publication Date Title
CN105357038B (en) Method and system for monitoring virtual machine cluster
CN112559535B (en) Multithreading-based asynchronous task processing method, device, equipment and medium
CN109634802B (en) Process monitoring method and terminal equipment
CN108446171B (en) Electronic device, distributed system execution task allocation method and storage medium
CN112463549A (en) Auditing method, device and equipment of cloud platform and computer readable storage medium
CN114385453A (en) Database cluster exception handling method, device, equipment and medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium
WO2023185335A1 (en) Crash clustering method and apparatus, electronic device and storage medium
CN114610340A (en) Project deployment method, device, equipment and storage medium
CN114510365A (en) Method, device, device and storage medium for intelligent processing of abnormal tasks
CN115145870A (en) Method, device, electronic device and storage medium for locating cause of failed task
CN114510400A (en) Task execution method and device, electronic equipment and storage medium
CN114860349A (en) Data loading method, device, equipment and medium
CN109947490A (en) A startup information processing method, apparatus, electronic device and readable storage medium
CN114547696A (en) File desensitization method and device, electronic equipment and storage medium
CN114356379A (en) Backup-based service upgrade method, device, device and storage medium
CN113111240A (en) Log monitoring method and device, electronic equipment and readable storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN115147031B (en) Clearing workflow execution method, device, equipment and medium
CN114237982A (en) System disaster recovery switching method, device, equipment and storage medium
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN114610386A (en) Interaction method, device, equipment and storage medium of H5 and application program
CN115101152A (en) Sample priority switching method, device, equipment and medium
CN114238233A (en) Automatic file cleaning method, device, equipment and storage medium
CN113064797A (en) Front-end monitoring method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination