Task processing method and system

A task processing and task technology, applied in the field of communication, can solve problems such as server failure and simultaneous execution of the same task

Inactive Publication Date: 2017-09-15
PING AN TECH (SHENZHEN) CO LTD
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method is that when the time of different servers deviates, it may cause multiple servers to execute the same task at the same time, resulting in server failure

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 processing method and system
  • Task processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0018] In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

[0019] figure 1 A method flowchart of a task processing method provided by an embodiment of the present invention is shown, and the details are as follows:

[0020] Step S11 , before one or more servers execute tasks, send a first temporary directory creation request ...

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 invention is suitable for the technical field of communications and provides a task processing method and system. The method comprises the steps of sending a first temporary directory creation request to a distributed application coordination service zookeeper before one or more servers execute a task; selecting one server by the zookeeper, and sending information of agreeing to create a first temporary directory to the selected server, wherein the selected server is a first server; creating the first temporary directory uniquely corresponding to the task at the zookeeper by the first server; and executing the task corresponding to the first temporary directory by the first server. Through the method, the same task can be ensured not to be repeatedly executed due to a time deviation of the server.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a task processing method and system. Background technique [0002] At present, the consumer credit self-service ([CFS_SS], SS) system usually inserts a record into the database in order to prevent the scheduled task (JOB) from being repeatedly executed by multiple servers, for example, inserting the expiration time of a task. Before the server executes the task, it will go to the database to check whether the expiration time of the task is valid. If it is valid, it means that there is a server executing the task. If it is invalid, it means that no server is executing the task, that is, the task can be executed. The disadvantage of this method is that when the time of different servers deviates, it may cause multiple servers to execute the same task at the same time, resulting in server failure. Contents of the invention [0003] In view of this, embodiments o...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/00
CPCG06F11/004
Inventor 范发辉方奕博巫绍堂陈鹏
Owner PING AN TECH (SHENZHEN) 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