Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Task dispatching method and system

A task and message technology, applied in the direction of response error generation, redundant operation data error detection, program startup/switching, etc., can solve the waste of server resources, reduce the overall processing efficiency, poor system disaster tolerance, etc. question

Active Publication Date: 2018-02-13
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. According to the Quartz scheduling component, only one server can be started to process tasks serially. Therefore, when there are many tasks, it not only reduces the throughput of processing tasks, but also causes resource waste due to other servers not being utilized;
[0006] 2. Regardless of whether there is data to be processed in the database, the task scheduling system will scan the database according to the set time period, so resources will be wasted when there is no data to be processed;
[0007] 3. The task scheduling system needs to retry when the task failure rate is high, and retrying tasks will reduce the overall processing efficiency;
[0008] 4. It does not support parallel processing of tasks across computer rooms, which is prone to single point failures, and the system has poor disaster recovery capabilities, and cannot automatically switch computer rooms

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0049] figure 1 is a schematic diagram of a system for scheduling tasks according to an embodiment of the present invention. Such as figure 1 As shown, the system 10 for scheduling tasks in the embodiment of the present invention is set in the business system and mainly includes a storage module 11, a generation module 12, a determination module 13, and an execution modu...

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 provides a task dispatching method and system. Because of the adoption of message queues, tasks are processed by multiple servers simultaneously, the throughput capacity of the tasks isincreased, and meanwhile, the defect of serial processing of a single task by a single server is avoided; moreover, when the failure rate of task processing is increased, the message queues corresponding to different computer rooms can be switched, and the disaster tolerance capability of the task dispatching system is improved. The method comprises the steps that a saving module saves associationrelations between the message queues and an execution module; when a task needs to be processed, a generation module generates a task message of the task; according to a preset message storing rule,a determination module determines the message queue which the task message belongs to and then stores the task message into the message queue; the execution module monitors a notification message of the message queue which has the association relation with the execution module, obtains the task message in the message queue after the notification message is monitored and then sends the task messageto a vendor after the task message is obtained.

Description

technical field [0001] The invention relates to the technical field of computers and software thereof, in particular to a method and system for scheduling tasks. Background technique [0002] With the rapid development of e-commerce, there are more and more types of goods included, and the number of suppliers of needed goods also increases. When a customer places an order on the e-commerce client, the e-commerce background will The corresponding supplier interface is called for the order, and the relevant information of the order is sent to the supplier. Usually when the order task meets the automatic execution conditions, the task scheduling system of the e-commerce platform needs to automatically process it according to the set steps. At this time, the scenario of scheduling tasks based on time is used. In these scenarios, it is necessary to implement Or the function of running a task program in a time interval. When there are a large number of tasks to be processed, the...

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): G06F9/48G06F9/50G06F11/14
CPCG06F9/4881G06F9/5027G06F11/142G06F2209/483G06F2209/503
Inventor 李宝刚王记学
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products