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

Timed task execution method and device, storage medium and equipment

A technology of timing tasks and execution methods, applied in the computer field, can solve problems such as timing task execution delay, and achieve the effect of reducing processing delay and improving execution efficiency.

Inactive Publication Date: 2021-12-28
天聚地合(苏州)科技股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides a timing task execution method, device, storage medium and equipment, which are used to solve the problem that the execution of some timing tasks is delayed when a thread sequentially scans and executes all timing tasks in the database

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the embodiments of the present application in detail in conjunction with the accompanying drawings.

[0068] Please refer to figure 1 , which shows a method flowchart of a method for executing a timed task provided by an embodiment of the present application, and the method for executing a timed task can be applied to a computer device. The execution method of the scheduled task may include:

[0069] Step 101, after the scheduled task is added to the database, the execution frequency of the scheduled task is acquired.

[0070] The computer device can display a configuration interface, and the user can configure the task information of the scheduled task in the configuration interface. Among them, the task information can include task name, description, type, weight, execution frequency, next execution time, 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 invention discloses a timed task execution method and device, a storage medium and equipment, and belongs to the technical field of computers. The method comprises the steps: after a timed task is added into a database, obtaining the execution frequency of the timed task; distributing a label for the timed task according to the execution frequency, wherein the label is used for identifying the time unit level of the execution frequency of the timed task; scanning a label of each timed task stored in a database; creating a process for each label; and for each process, scanning each timed task with the corresponding label in the database through the process, creating a predetermined number of threads according to the scanned to-be-executed timed tasks, and executing one to-be-executed timed task through each thread. According to the method and the device, each classified timed task can be processed through a plurality of processes, so that the execution efficiency of the timed tasks is improved, and the processing delay of the timed tasks is reduced.

Description

technical field [0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a method, device, storage medium, and equipment for executing a scheduled task. Background technique [0002] A scheduled task is a task that can be executed at a set time. Timing tasks can be used in many scenarios, for example, data aggregation, equipment maintenance, etc. in the early morning of every day. [0003] In the related technology, the user can add the set timing task to the database, and the computer device can create a thread, which scans each timing task in the database in turn, and when it is determined that each timing task needs to be executed, the timing task is executed. After the execution is completed, continue to scan the next scheduled task. [0004] When there are many scheduled tasks that need to be executed, a thread will not be able to execute all the scheduled tasks that need to be executed in time, resulting in a...

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/48
CPCG06F9/485
Inventor 左磊张晓玮
Owner 天聚地合(苏州)科技股份有限公司
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