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

Task scheduling method and device, electronic equipment and storage medium

A task scheduling and task technology, applied in the direction of multi-channel program device, program control design, electronic digital data processing, etc., can solve the problems of lack of database local transaction integration, can not fully satisfy the message queue, etc., to achieve convenient business diagnosis, reliable forwarding , the effect of improving efficiency

Pending Publication Date: 2022-05-17
湖南微步信息科技有限责任公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing sidekiq task scheduling framework is only based on redis to implement task scheduling. In more scenarios, it lacks integration with local database transactions. Since redis is not a complete message queue middleware, it cannot fully satisfy message queue as the basic middleware for task scheduling. needs

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for ease of description, only parts related to the invention are shown in the drawings.

[0050] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0051] Please refer to figure 1 , which shows an exemplary flow of the method for task scheduling that can be applied in the embodiment of the present application.

[0052] Such as figure 1 As shown, in step 110, the task list is scheduled from the database, and the tasks in the task list are de...

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 scheduling method and device, electronic equipment and a storage medium. The method comprises the steps that a task list is scheduled from a database, tasks in the task list are delivered to a task message queue RabbitMq, and the tasks comprise timed tasks and non-timed tasks; monitoring a task message of a mailbox corresponding to the task message queue RabbitMq; in response to the monitoring, consuming the task in the task message queue; and after the task list is consumed, deleting the task list from the database. According to the task scheduling method and device, it is guaranteed that the task messages cannot be lost through the database, forwarding of the task messages is more reliable through the mailbox of the task message queue RabbitMq, application programs can be more seamlessly integrated during task execution, and the task scheduling efficiency is improved.

Description

technical field [0001] The present disclosure generally relates to the technical field of task scheduling, and specifically relates to a task scheduling method, device, electronic equipment, and storage medium. Background technique [0002] In some task scheduling application scenarios, there are many tasks that allow asynchronous execution. If these tasks are scheduled, a unified framework is required for scheduling, retrying, and monitoring of task execution failures. Existing task scheduling frameworks include message-based Sidekiq, a task scheduling framework for the subscription model, integrates with rails applications and implements scheduling based on the redis message subscription model. It can clean up failed tasks, check task execution exceptions, and monitor task execution and calls. [0003] The existing sidekiq task scheduling framework is only based on redis to implement task scheduling. In more scenarios, it lacks integration with local database transactions....

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/4881
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