Task exception alarm method and device, server and storage medium

A task and abnormal technology, applied in the computer field, which can solve problems such as time-consuming and cumbersome processes

Pending Publication Date: 2021-05-18
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This alarm method is called hard-coded alarm. The alarm mechanism code is integrated with the operation code of the task process. When there is a problem with the alarm mechanism code, the corresponding task operation code needs to be rolled back and revised together, which is very time-consuming.
Moreover, in this alarm mode, the alarm information is fixed. When the alarm information needs to be changed, a new task version needs to be released, and the process is cumbersome.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task exception alarm method and device, server and storage medium
  • Task exception alarm method and device, server and storage medium
  • Task exception alarm method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] figure 1 It is a schematic flowchart of a task abnormality warning method provided by Embodiment 1 of the present invention. Such as figure 1 As shown, the task abnormality warning method provided in Embodiment 1 of the present invention includes:

[0043] S110. When a task abnormality is detected, determine the content of the abnormality and read the alarm configuration parameters from the local cache.

[0044] Specifically, the task in this embodiment may refer to a task process corresponding to any business, such as a task process formed by a loan business, a task process formed by a transaction order, and the like. During the running of the task process, when an abnormal situation is detected, it is necessary to determine the abnormal content so as to feed back the abnormal content; at the same time, read the alarm configuration parameters from the local cache. The alarm configuration parameter is the configuration information related to the alarm task preset by ...

Embodiment 2

[0052] figure 2 It is a schematic flowchart of a task abnormality warning method provided by Embodiment 2 of the present invention, and this embodiment is a further refinement of the foregoing embodiments. Such as figure 2 As shown, the task abnormality warning method provided in Embodiment 2 of the present invention includes:

[0053] S210. Determine whether configuration change information sent by the configuration center is received.

[0054] S220. If the configuration change information sent by the configuration center is received, obtain the latest alarm configuration parameters from the configuration center according to the configuration change information, and cache the latest alarm configuration parameters locally.

[0055] Specifically, the configuration center user manages all alarm configuration parameters, and the user sets and modifies each alarm configuration parameter through the configuration center. The devices where the configuration center and the task fl...

Embodiment 3

[0071] image 3 It is a schematic structural diagram of a task abnormality warning device provided by Embodiment 3 of the present invention. The task abnormality alarm device provided in this embodiment can realize the task abnormality alarm method provided in any embodiment of the present invention, and has the corresponding functional structure and beneficial effects of the implementation method. The content that is not described in detail in this embodiment can be implemented by referring to any method of the present invention. Example description.

[0072] Such as image 3 As shown, the task abnormality warning device provided by Embodiment 3 of the present invention includes: a parameter reading module 310, a warning task generation module 320 and a warning task execution module 330, wherein:

[0073] The parameter reading module 310 is used to determine the abnormal content and read the alarm configuration parameters from the local cache when an abnormal task is detect...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a task exception alarm method and device, a server and a storage medium, and the method comprises the steps: determining exception content and reading an alarm configuration parameter from a local cache when a task exception is detected; generating an alarm task according to the exception content and the alarm configuration parameter; and obtaining an idle thread from a preset thread pool to execute the alarm task. According to the embodiment of the invention, the configurability of alarm parameters is realized, the alarm parameters can be modified at any time without influencing the task flow of other service functions, and the time consumption for revision and change of an alarm mechanism is reduced; meanwhile, the threads for executing the alarm tasks are managed in a unified mode through the preset thread pool, and it is avoided that when the alarm tasks are too many, too many threads are established, and the device load is increased.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a method, device, server and storage medium for task abnormality warning. Background technique [0002] At present, with the rapid development of Internet technology, business functions are updated and upgraded more and more frequently, and the realization of a business function usually needs to be completed by multiple applications. Therefore, the realization of a business function often needs to run multiple Task flow. [0003] In order to be able to detect abnormalities in the running process of the task process in time, the alarm mechanism code is usually embedded in the running code of the task process. When an abnormality is found, it is like the relevant person in charge sends out an alarm message. This alarm method is called a hard-coded alarm. The alarm mechanism code is integrated with the running code of the task process. When there is ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/07
CPCG06F11/0715G06F11/0766
Inventor 陈群辉
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products