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

CN114510326APending Publication Date: 2022-05-17湖南微步信息科技有限责任公司
0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2022-05-17

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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....

Examples

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...