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

Task scheduling method and device, server and storage medium

A task scheduling and scheduler technology, applied in the computer field, can solve problems such as complex business scenarios, inability to intuitively understand the relationship between business sub-processes and execution processes, and high maintenance costs

Pending Publication Date: 2021-01-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this model splits the relationship between the execution processes in the target business, and it is impossible to intuitively understand the relationship between the business sub-processes and the execution process. Since the business scenarios that task scheduling needs to support are relatively complex, the asynchronous programming model is used for task scheduling. relatively high maintenance costs

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 scheduling method and device, server and storage medium
  • Task scheduling method and device, server and storage medium
  • Task scheduling method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Common task scheduling models include synchronous blocking execution model and asynchronous non-blocking execution model. Among them, the synchronous blocking model usually limits the execution of the actual process to only synchronous and serial execution, which limits the processing capacity of the program, thereby limiting the utilization of resources, and cannot describe the essential relationship between processes.

[0026] The common implementation mechanism of the asynchronous non-blocking model is asynchronous callback. The typical model is promise / future, an asynchronous programming model. Promise represents an asynchronous abstract processing object, and future represents the result of an asynchronous task that may not have actually been completed. Callbacks can be added to this result The function callback is used to perform corresponding operations after the task execution succeeds or fails, and the promise is handed over to the task executor, and the task ex...

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 scheduling method and device, a server and a storage medium, and the method comprises the steps of calling a scheduler to carry out the topological sorting of a pre-constructed directed acyclic graph running chart, so as to determine a to-be-executed task node from at least one task node included in the directed acyclic graph running chart; and if the to-be-executed task node is not the termination node, executing a service sub-process in a target service corresponding to the to-be-executed task node by calling a processing interface, and when aservice sub-process execution result returned by the processing interface is received, triggering the scheduler to execute topological sorting on a pre-constructed directed acyclic graph running chart, and determining a to-be-executed task node from at least one task node included in the directed acyclic graph running chart. By adopting the embodiment of the invention, the utilization rate of resources can be improved, the execution relationship among the service sub-processes can be intuitively known, and the maintenance cost of task scheduling is favorably reduced.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a task scheduling method, device, server, and storage medium. Background technique [0002] At present, task scheduling models include synchronous blocking model and asynchronous non-blocking model. Among them, the synchronous blocking model usually limits the execution of the actual process to only synchronous serial execution, which limits the processing capacity of the program and thus limits the utilization of resources. ;Asynchronous non-blocking model, such as the asynchronous programming model promise / future model, where future represents an asynchronous task result that may not have actually been completed, promise represents an asynchronous abstract processing object, and the promise / future model separates the task executor from the task result receiver The implementer implements the asynchronous execution process. The task executor holds a promise, and t...

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): G06F9/48
CPCG06F9/4881
Inventor 林佳涛吕远方
Owner TENCENT TECH (SHENZHEN) 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