Task execution method and device, electronic equipment and storage medium

A task execution and storage medium technology, applied in the computer field, can solve problems such as low efficiency, heavy server load, task failure, etc., and achieve the effect of improving task execution efficiency, execution efficiency, and parallel rate.

Pending Publication Date: 2021-07-16
上海销氪信息科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, in order not to affect the business logic, the business personnel set each task under the project to be executed on a certain server before the project is executed, which is inefficient and easy to block, and it is easy to cause the server to be overloa

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 execution method and device, electronic equipment and storage medium
  • Task execution method and device, electronic equipment and storage medium
  • Task execution method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0042] In the task execution of related technologies, each task of the project is usually set to be executed in a certain server, which is inefficient and easy to block, or in order to improve the execution efficiency of the task, the tasks under the project are distributed to different servers, which will cause The business logic of tasks that should...

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 discloses a task execution method which comprises the following steps: collecting a target position label of a current server in a Redis queue, and querying a task identifier of each task; the Redis queue is used for storing the IP of each server; determining a task identifier matched with the target position label according to the task identifier, and determining a task corresponding to the task identifier matched with the target position label as a task executed on the current server; and after the task executed by the current server is determined, executing the corresponding task. According to the method, the service logic that some tasks need to be executed in the same server can be ensured, and the parallel tasks can be executed in multiple servers at the same time, so that the service logic is not influenced, and the task execution efficiency can be improved. The invention also provides a task execution device, electronic equipment and a computer readable storage medium, which have the above beneficial effects.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a task execution method, device, electronic equipment and computer-readable storage medium. Background technique [0002] At present, in order not to affect the business logic, the business personnel set each task under the project to be executed on a certain server before the project is executed, which is inefficient and easy to block, which may cause the server to be overloaded and cause the task to fail. Or, in order to improve execution efficiency, the various tasks of the project are directly distributed to different servers for execution, which disrupts the business logic that must execute tasks on the same server, resulting in task failure. Contents of the invention [0003] The purpose of this application is to provide a task execution method that can ensure that certain tasks need to be executed on the same server as business logic, and that paralleliza...

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/48G06F9/50
CPCG06F9/4881G06F9/5033
Inventor 李光远
Owner 上海销氪信息科技有限公司
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