CN115884109A - Real-time short message task scheduling method, terminal device and medium - Google Patents

Real-time short message task scheduling method, terminal device and medium Download PDF

Info

Publication number
CN115884109A
CN115884109A CN202111129754.3A CN202111129754A CN115884109A CN 115884109 A CN115884109 A CN 115884109A CN 202111129754 A CN202111129754 A CN 202111129754A CN 115884109 A CN115884109 A CN 115884109A
Authority
CN
China
Prior art keywords
real
short message
time short
work order
message task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111129754.3A
Other languages
Chinese (zh)
Inventor
潘亮
郭岳
叶晓龙
傅建新
王璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111129754.3A priority Critical patent/CN115884109A/en
Publication of CN115884109A publication Critical patent/CN115884109A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a real-time short message task scheduling method, terminal equipment and a computer readable storage medium. The method comprises the following steps: receiving real-time short message task work orders, and determining the initial priority of each real-time short message task work order; when the real-time short message task work order is unprocessed, monitoring the detention time length of each unprocessed real-time short message task work order; updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, wherein the larger the retention time is, the higher the current priority is; and determining the processing sequence of the unprocessed real-time short message task work order according to the current priority, and scheduling the real-time short message task according to the processing sequence. The invention aims to achieve the effect of avoiding the long-time retention of the short message.

Description

Real-time short message task scheduling method, terminal device and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a real-time short message task scheduling method, a terminal device, and a computer-readable storage medium.
Background
The real-time short message task scheduling refers to the operation that when the real-time short message reaches the sending time in the peak period of the business, and is jammed in the gateway, the scheduling task initiates scheduling and transmits the short message to a lower-level gateway or a user. The related technical scheme at present is to classify various short messages and then determine the priority of the short messages according to the categories of the short messages. When the short messages are issued, the short messages are issued according to the priority and a certain proportion, so that the short messages with high priority can be issued relatively preferentially, and the perception and satisfaction degree of a user are improved.
In the related scheduling scheme, a certain issued amount is acquired at one time, and each priority is acquired according to a certain proportion (the higher the level is, the larger the ratio is). Because the level of the short message is fixed, the system can continuously acquire and send the short message according to the established proportion. When the single-level service volume is huge, the short messages corresponding to the services can be continuously issued, but the short messages of the services with huge service volume levels can be executed according to the scheduling proportion principle of the system, so that the phenomenon of large area of the short messages of the services with huge service volume levels can be caused, and the issue delay of partial short messages is easy to be extremely large.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
The invention mainly aims to provide a real-time short message task scheduling method, terminal equipment and a computer readable storage medium, aiming at achieving the effect of avoiding long-time retention of short messages.
In order to achieve the above object, the present invention provides a real-time short message task scheduling method, which comprises the following steps:
receiving real-time short message task work orders, and determining the initial priority of each real-time short message task work order;
when the real-time short message task work order is unprocessed, monitoring the detention time length of each unprocessed real-time short message task work order;
updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, wherein the larger the retention time is, the higher the current priority is;
and determining the processing sequence of the unprocessed real-time short message task work order according to the current priority, and scheduling the real-time short message task according to the processing sequence.
Optionally, before the step of updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, the method further includes:
determining the work order level of the unprocessed real-time short message task work order, and acquiring a time length threshold corresponding to the work order level;
the step of updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the detention duration comprises the following steps:
and when the retention time is detected to be greater than or equal to the time threshold, improving the current priority of the unprocessed real-time short message task work order, wherein the initial value of the current priority is the initial priority.
Optionally, the higher the work order level is, the smaller the duration threshold corresponding to the work order level is.
Optionally, the step of receiving the real-time short message task work order and determining the initial priority of each real-time short message task work order includes:
receiving real-time short message task work orders, and determining the category of each real-time short message task work order;
and determining the initial priority corresponding to each real-time short message task work order according to the category of each real-time short message task work order.
Optionally, after the step of receiving the real-time short message task work order and determining the initial priority of each real-time short message task work order, the method further includes:
acquiring and caching message data corresponding to each real-time short message task work order;
the step of determining the processing sequence of the unprocessed real-time short message task work order according to the current priority and scheduling the real-time short message task according to the processing sequence comprises the following steps:
determining the processing sequence of the unprocessed real-time short message task work order according to the current priority;
and sequentially pushing the message data corresponding to the unprocessed real-time short message task work order to a gateway according to the processing sequence.
Optionally, after the step of sequentially pushing the message data corresponding to the unprocessed real-time short message task work order to the gateway according to the processing sequence, the method further includes:
and when the pushing failure is detected, marking the real-time short message task work order corresponding to the message data which is failed to be pushed as a failure work order, and carrying out scheduling processing again.
Optionally, the higher the current priority of the real-time short message task work order is, the more ahead the processing sequence is; the earlier the receiving time is, the earlier the processing sequence is.
In addition, in order to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a real-time short message task scheduling program stored in the memory and capable of running on the processor, and the real-time short message task scheduling program, when executed by the processor, implements the steps of the real-time short message task scheduling method described above.
In addition, to achieve the above object, the present invention also provides a terminal device, including:
the receiving module is used for receiving the real-time short message task work order and determining the initial priority of each real-time short message task work order;
the monitoring module is used for monitoring the detention duration of each unprocessed real-time short message task work order when the real-time short message task work order is unprocessed;
the determining module is used for updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, wherein the larger the retention time is, the higher the current priority is;
and the scheduling module is used for determining the processing sequence of the unprocessed real-time short message task work order according to the current priority and scheduling the real-time short message task according to the processing sequence.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, wherein a real-time short message task scheduling program is stored on the computer readable storage medium, and when being executed by a processor, the real-time short message task scheduling program implements the steps of the real-time short message task scheduling method.
The embodiment of the invention provides a real-time short message task scheduling method, terminal equipment and a computer readable storage medium, which comprises the steps of firstly receiving a real-time short message task work order, determining the initial priority of each real-time short message task work order, monitoring the detention time length of each unprocessed real-time short message task work order when the real-time short message task work order is unprocessed, then updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the detention time length, wherein the larger the detention time length is, the higher the current priority is, and finally determining the processing sequence of the unprocessed real-time short message task work order according to the current priority and scheduling the real-time short message task according to the processing sequence. Therefore, the method achieves the purpose of dynamically adjusting the priority of the short messages, improves the system issuing efficiency to the maximum extent, ensures the short messages with high priority to be issued in time, and avoids the short messages which are retained for a long time. Thereby improving customer satisfaction and reducing customer complaints.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a real-time short message task scheduling method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a work order queue according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a real-time short message task scheduling method according to another embodiment of the present invention;
fig. 5 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the control terminal may include: a processor 1001, such as a CPU, a network interface 1003, a memory 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory, such as a disk memory. The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a real-time short message task scheduler.
In the terminal shown in fig. 1, the processor 1001 may be configured to call the real-time short message task scheduler stored in the memory 1004 and perform the following operations:
receiving real-time short message task work orders and determining the initial priority of each real-time short message task work order;
when the real-time short message task work order is unprocessed, monitoring the detention time length of each unprocessed real-time short message task work order;
updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, wherein the larger the retention time is, the higher the current priority is;
and determining the processing sequence of the unprocessed real-time short message task work order according to the current priority, and scheduling the real-time short message task according to the processing sequence.
Further, the processor 1001 may call the real-time short message task scheduler stored in the memory 1004, and further perform the following operations:
determining the work order grade of the unprocessed real-time short message task work order, and acquiring a time length threshold value corresponding to the work order grade;
the step of updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the detention duration comprises the following steps:
and when the retention time is detected to be greater than or equal to the time threshold, improving the current priority of the unprocessed real-time short message task work order, wherein the initial value of the current priority is the initial priority.
Further, the processor 1001 may call the real-time short message task scheduler stored in the memory 1004, and further perform the following operations:
receiving real-time short message task work orders, and determining the category of each real-time short message task work order;
and determining the initial priority corresponding to each real-time short message task work order according to the category of each real-time short message task work order.
Further, the processor 1001 may call the real-time short message task scheduler stored in the memory 1004, and further perform the following operations:
acquiring and caching message data corresponding to each real-time short message task work order;
the step of determining the processing sequence of the unprocessed real-time short message task work order according to the current priority and scheduling the real-time short message task according to the processing sequence comprises the following steps:
determining the processing sequence of the unprocessed real-time short message task work order according to the current priority;
and sequentially pushing the message data corresponding to the unprocessed real-time short message task work order to a gateway according to the processing sequence.
Further, the processor 1001 may call the real-time short message task scheduler stored in the memory 1004, and further perform the following operations:
and when the pushing failure is detected, marking the real-time short message task work order corresponding to the message data which is failed to be pushed as a failure work order, and carrying out scheduling processing again.
The real-time short message task scheduling refers to the operation that when the real-time short message reaches the sending time in the peak period of the business, and is jammed in the gateway, the scheduling task initiates scheduling and transmits the short message to a lower-level gateway or a user. The related technical scheme at present is to classify various short messages and then determine the priority of the short messages according to the categories of the short messages. When the short messages are issued, the short messages are issued according to the priority and a certain proportion, so that the short messages with high priority can be issued relatively preferentially, and the perception and satisfaction degree of a user are improved.
In the related scheduling scheme, a certain issued amount is acquired at one time, and each priority is acquired according to a certain proportion (the higher the level is, the larger the ratio is). Because the level of the short message is fixed, the system can continuously acquire and send the short message according to the established proportion. Thus, when there is less traffic at the high level and more traffic at the low level, the channels at the high level are wasted, resulting in a very inefficient system. Moreover, when the single-level service volume is huge, the short messages corresponding to the services can be continuously issued, but the short messages of the services with the huge service volume level can be executed according to the scheduling proportion principle of the system, so that the phenomenon of large area of the short messages of the services with the huge service volume level can be caused, and the issue delay of partial short messages is easy to be extremely large.
In order to solve the above-mentioned defects of the related technical solutions, embodiments of the present invention provide a real-time short message task scheduling method, which aims to improve the system issuing efficiency to the maximum extent by dynamically adjusting the priority of short messages, and simultaneously ensure that short messages with high priority are issued in time, thereby improving the satisfaction and reducing the complaints of terminal users.
The real-time short message task scheduling method provided by the invention is further explained by the specific embodiment.
In an embodiment, referring to fig. 2, the real-time short message task scheduling method includes the following steps:
s10, receiving real-time short message task work orders, and determining the initial priority of each real-time short message task work order;
step S20, when the real-time short message task work order is not processed, the detention duration of each unprocessed real-time short message task work order is monitored;
step S30, updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the detention time length, wherein the larger the detention time length is, the higher the current priority is;
and S40, determining the processing sequence of the unprocessed real-time short message task work order according to the current priority, and scheduling the real-time short message task according to the processing sequence.
In this embodiment, the terminal device for executing the real-time short message task scheduling method may receive the real-time short message task work order first. For example, when the terminal device is a gateway, the terminal device may receive a real-time short message task work order issued by an upper-level gateway or other devices. After receiving the real-time short message task work order, the initial priority of each real-time short message task work order can be determined based on the real-time short message task work order.
Illustratively, after a real-time short message task work order is received, the short message category corresponding to the real-time short message task work order is determined. The short message category may include multiple categories such as a verification code category, a service notification category, a charge-to-account reminding category, a reply reminding category and/or a common communication category. The type of the short message can be set by self according to a specific service scene and the type of service possibly related to the equipment needing to be scheduled.
It can be understood that the receiving of the real-time short message task work order described in this embodiment further includes that the short message source receives the short message data through an external Web Service (Web server) interface unified by the system, and an interface message of the short message source includes a plurality of core parameters, such as sendNo (calling), receiverInfo (called), content (short message content), and schduleTime (sending time).
Further, the terminal device is also provided with work order queues corresponding to the priorities. When a real-time short message task work order is received and the initial priority corresponding to each real-time short message task work order is determined, each received real-time short message task work order can be placed in a work order queue related to the corresponding priority according to the priority. Then, each work order queue processes each work order with different priority in turn according to the first-in first-out sequence.
For example, referring to fig. 3, after the initial priority of each real-time short message task work order is determined, each real-time short message task work order is added to the corresponding work order queue according to the corresponding priority of each real-time short message task work order. For example, if the initial priority corresponding to the real-time short message task work order a is the first priority, the initial priority is added to the 1 st priority work order queue. And for a plurality of real-time short message task work orders with the same priority, sequentially adding the real-time short message task work orders to the corresponding work order queues according to the sending time of the work orders. The work order queue can adopt a first-in first-out mechanism, and the work orders are queued in advance at the time of queuing, so that the real-time short message task work orders with the same priority can be processed sequentially according to the sequence of sending time. I.e. first processing with an early transmission time.
It can be understood that the processing of the real-time short message task work order means that a message corresponding to the real-time short message task work order is transmitted to a next processing unit, such as a gateway or a terminal. For example, the message data corresponding to the real-time short message task work order may be pushed to the gateway by a CMPP (china mobile peer-to-peer protocol) or SMPP (short message peer-to-peer protocol) link.
Further, the real-time short message task work order in the work order queue is an unprocessed real-time short message task work order, and when the real-time short message task work order is unprocessed, the retention time of each unprocessed real-time short message task work order can be monitored. The retention time refers to the time for adding the real-time short message task work order into the work order queue.
After the detention duration corresponding to each real-time short message task work order is determined, the current priority of the unprocessed real-time short message task work order can be updated according to the detention duration, wherein the larger the detention duration is, the higher the current priority is.
For example, after the retention time is currently determined, the work order level of the unprocessed real-time short message task work order may be determined first, and a time threshold corresponding to the work order level may be obtained. The work order level refers to the priority level corresponding to the unprocessed real-time short message task work order currently. The method can be determined according to the work order queue where the unprocessed real-time short message task work order is currently located. Each work order level may correspond to a different time duration threshold. For example, the duration threshold corresponding to the first priority is null, the duration threshold corresponding to the second priority is 1min, and the duration thresholds corresponding to the third priority, the fourth priority, and the fifth priority are 5min, 10min, and 20min, respectively. It can be understood that the higher the work order level is, the smaller the duration threshold corresponding to the work order level is. However, the time length threshold corresponding to each priority may be set in a self-defined manner according to actual requirements, which is not specifically limited in this embodiment.
After the duration threshold is obtained, it may be detected whether the retention duration is greater than or equal to the duration threshold. And when the retention time is detected to be greater than or equal to the time threshold, improving the current priority of the unprocessed real-time short message task work order, wherein the initial value of the current priority is the initial priority. Otherwise its priority is not updated.
Illustratively, for the real-time short message task work order B, the initial priority is the fifth priority. When the acquired time threshold corresponding to the fifth priority is 20min, the retention time of the real-time short message task work order B in the work order queue corresponding to the fifth priority can be detected. And if the retention time is greater than or equal to the time threshold (20 min), improving the priority of the real-time short message task work order B. For example, the priority level may be set to be increased by one level, and the priority level of the real-time short message task work order B is updated to be the fourth priority level.
It should be noted that, when the priority of the unprocessed real-time short message task work order is promoted, the promotion amplitude can be set by user. May be generally arranged to be raised one level upwards. For example, referring to FIG. 3, when the length of stay is greater than the length threshold, the priority is promoted to the next higher level. Of course, for some special application scenarios, the priority of the real-time short message task work order may also be directly increased by the highest priority value, or by two or more priority levels. In this regard, the present embodiment is not particularly limited.
It can be understood that, in an optional implementation scheme, a real-time short message task work order is received, an initial priority of each real-time short message task work order is determined, and then message data corresponding to each real-time short message task work order is acquired and cached, wherein the message data are sequentially cached in a work order queue according to the initial priority and sending time corresponding to each real-time short message task work order. And the terminal equipment sequentially processes the message data in the work order queue. That is, the message data is sequentially transmitted to the next node according to the enqueue sequence. And updating the current priority of the unprocessed real-time short message task work order according to the detention time length of the unprocessed real-time short message task work order in the corresponding queue, so that the priority of the real-time short message task work order with longer detention time length can be improved, the processing progress of the detention real-time short message task work order is accelerated, and the long-time detention of the real-time short message task work order is avoided.
In the technical scheme disclosed by the implementation, a real-time short message task work order is received firstly, the initial priority of each real-time short message task work order is determined, when the real-time short message task work order is not processed, the detention duration of each unprocessed real-time short message task work order is monitored, then the current priority of the unprocessed real-time short message task work order is updated according to the initial priority and the detention duration, wherein the larger the detention duration is, the higher the current priority is, finally, the processing sequence of the unprocessed real-time short message task work order is determined according to the current priority, and real-time short message task scheduling is performed according to the processing sequence. Therefore, the dynamic adjustment of the short message priority is achieved, the system issuing efficiency is improved to the maximum extent, meanwhile, the short messages with high priority are issued in time, and the short messages which are retained for a long time are avoided. Thereby improving customer satisfaction and reducing customer complaints.
Optionally, referring to fig. 4, based on the foregoing embodiment, in another embodiment, after step S40, the method further includes:
and S50, when the pushing failure is detected, marking the real-time short message task work order corresponding to the message data which is failed to be pushed as a failure work order, and carrying out scheduling processing again.
In this embodiment, when a push failure is detected, the real-time short message task work order corresponding to the message data that failed to be pushed may be marked as a failure work order, and then the failure work order is rescheduled as a newly received real-time short message task work order. The initial priority corresponding to the failed work order may be determined according to a predetermined determination rule. For example, the priority corresponding to the failed work order may be determined according to its category (e.g., an initial priority determination manner of a normal real-time short message task work order), and then m priorities may be raised based on the basic priority. Therefore, the priority of the work order identification can be higher than other real-time short message task work orders of the same category.
In the technical scheme disclosed in this embodiment, when a push failure is detected, the real-time short message task work order corresponding to the message data with the push failure is marked as a failure work order, and the scheduling processing is performed again, so that it is ensured that the short message can arrive at a certain time, and the short message loss phenomenon is avoided.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: the real-time short message task scheduling method comprises a memory, a processor and a real-time short message task scheduling program which is stored on the memory and can be operated on the processor, wherein the steps of the real-time short message task scheduling method according to the above embodiments are realized when the real-time short message task scheduling program is executed by the processor.
In addition, referring to fig. 5, an embodiment of the present invention further provides a terminal device 100, where the terminal device 100 includes:
the receiving module 101 is used for receiving the real-time short message task work orders and determining the initial priority of each real-time short message task work order;
the monitoring module 102 is configured to monitor a retention time of each unprocessed real-time short message task work order when the real-time short message task work order is unprocessed;
a determining module 103, configured to update a current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, where the larger the retention time is, the higher the current priority is;
and the scheduling module 104 is configured to determine a processing sequence of the unprocessed real-time short message task work order according to the current priority, and perform real-time short message task scheduling according to the processing sequence.
Optionally, the terminal device may further implement the following functions based on the receiving module 101, the monitoring module 102, the determining module 103, and the scheduling module 104:
determining the work order level of the unprocessed real-time short message task work order, and acquiring a time length threshold corresponding to the work order level;
the step of updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the detention duration comprises the following steps:
and when the retention time is detected to be greater than or equal to the time threshold, improving the current priority of the unprocessed real-time short message task order, wherein the initial value of the current priority is the initial priority.
The higher the work order level is, the smaller the time length threshold value corresponding to the work order level is.
And/or receiving the real-time short message task work order and determining the category of each real-time short message task work order;
and determining the initial priority corresponding to each real-time short message task work order according to the category of each real-time short message task work order.
And/or
Acquiring and caching message data corresponding to each real-time short message task work order;
the step of determining the processing sequence of the unprocessed real-time short message task work order according to the current priority and scheduling the real-time short message task according to the processing sequence comprises the following steps:
determining the processing sequence of the unprocessed real-time short message task work order according to the current priority;
and sequentially pushing the message data corresponding to the unprocessed real-time short message task work order to a gateway according to the processing sequence.
And/or
And when the pushing failure is detected, marking the real-time short message task work order corresponding to the message data which is failed to be pushed as a failure work order, and carrying out scheduling processing again.
It can be understood that the higher the current priority of the real-time short message task work order is, the more forward the processing sequence is; the earlier the receiving time of the real-time short message task work order with the same current priority is, the earlier the processing sequence is.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a real-time short message task scheduling program is stored on the computer-readable storage medium, and when the real-time short message task scheduling program is executed by a processor, the steps of the real-time short message task scheduling method according to the above embodiments are implemented.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device (e.g. server or gateway) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A real-time short message task scheduling method is characterized by comprising the following steps:
receiving real-time short message task work orders and determining the initial priority of each real-time short message task work order;
when the real-time short message task work order is not processed, monitoring the detention duration of each unprocessed real-time short message task work order;
updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, wherein the larger the retention time is, the higher the current priority is;
and determining the processing sequence of the unprocessed real-time short message task work order according to the current priority, and scheduling the real-time short message task according to the processing sequence.
2. The method of claim 1, wherein before the step of updating the current priority of the unprocessed task order of the real-time short message according to the initial priority and the retention time, the method further comprises:
determining the work order level of the unprocessed real-time short message task work order, and acquiring a time length threshold corresponding to the work order level;
the step of updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the detention duration comprises the following steps:
and when the retention time is detected to be greater than or equal to the time threshold, improving the current priority of the unprocessed real-time short message task work order, wherein the initial value of the current priority is the initial priority.
3. The real-time short message task scheduling method of claim 2, wherein the higher the work order level is, the smaller the duration threshold corresponding to the work order level is.
4. The method of claim 1, wherein the step of receiving the real-time sms task work orders and determining the initial priority of each of the real-time sms task work orders comprises:
receiving real-time short message task work orders, and determining the category of each real-time short message task work order;
and determining the initial priority corresponding to each real-time short message task work order according to the category of each real-time short message task work order.
5. The method of claim 1, wherein after the steps of receiving the real-time sms task work orders and determining the initial priority of each of the real-time sms task work orders, further comprising:
acquiring and caching message data corresponding to each real-time short message task work order;
the step of determining the processing sequence of the unprocessed real-time short message task work order according to the current priority and scheduling the real-time short message task according to the processing sequence comprises the following steps:
determining the processing sequence of the unprocessed real-time short message task work order according to the current priority;
and sequentially pushing the message data corresponding to the unprocessed real-time short message task work order to a gateway according to the processing sequence.
6. The real-time short message task scheduling method of claim 5, wherein after the step of sequentially pushing the message data corresponding to the unprocessed real-time short message task work order to a gateway according to the processing order, further comprising:
and when the pushing failure is detected, marking the real-time short message task work order corresponding to the message data which is failed to be pushed as a failure work order, and carrying out scheduling processing again.
7. The real-time short message task scheduling method of claim 5, wherein the higher the current priority of the real-time short message task work order is, the earlier the processing order is; the earlier the receiving time of the real-time short message task work order with the same current priority is, the earlier the processing sequence is.
8. A terminal device, characterized in that the terminal device comprises: a memory, a processor and a real-time short message task scheduler stored on the memory and operable on the processor, the real-time short message task scheduler when executed by the processor implementing the steps of the real-time short message task scheduling method as claimed in any one of claims 1 to 7.
9. A terminal device, characterized in that the terminal device comprises:
the receiving module is used for receiving the real-time short message task work order and determining the initial priority of each real-time short message task work order;
the monitoring module is used for monitoring the detention duration of each unprocessed real-time short message task work order when the real-time short message task work order is unprocessed;
the determining module is used for updating the current priority of the unprocessed real-time short message task work order according to the initial priority and the retention time, wherein the larger the retention time is, the higher the current priority is;
and the scheduling module is used for determining the processing sequence of the unprocessed real-time short message task work order according to the current priority and scheduling the real-time short message task according to the processing sequence.
10. A computer-readable storage medium, wherein a real-time short message task scheduler program is stored on the computer-readable storage medium, and when executed by a processor, implements the steps of the real-time short message task scheduling method according to any one of claims 1 to 7.
CN202111129754.3A 2021-09-26 2021-09-26 Real-time short message task scheduling method, terminal device and medium Pending CN115884109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111129754.3A CN115884109A (en) 2021-09-26 2021-09-26 Real-time short message task scheduling method, terminal device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111129754.3A CN115884109A (en) 2021-09-26 2021-09-26 Real-time short message task scheduling method, terminal device and medium

Publications (1)

Publication Number Publication Date
CN115884109A true CN115884109A (en) 2023-03-31

Family

ID=85762599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111129754.3A Pending CN115884109A (en) 2021-09-26 2021-09-26 Real-time short message task scheduling method, terminal device and medium

Country Status (1)

Country Link
CN (1) CN115884109A (en)

Similar Documents

Publication Publication Date Title
CN106850402B (en) Message transmission method and device
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
CN101378544A (en) Method, device and system for polling information
CN102625287A (en) Method for downloading mobile phone application software
CN110753129A (en) Message transmission method, system, device, equipment and computer readable storage medium
CN112395067A (en) Task scheduling method, system, device and medium
CN108512869B (en) Method and system for processing concurrent data in asynchronous mode
JP2017502581A (en) Method and system for scheduling push data transmission
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN108460042B (en) Page display method, related equipment and system
CN115884109A (en) Real-time short message task scheduling method, terminal device and medium
US10122812B2 (en) Push-type information transmission device, push-type information transmission method, and program
CN111277599A (en) Remote call processing method and device
CN109428901B (en) Message processing method and message processing device
CN113645578B (en) Method and device for preventing repeated sending of information and storage medium
CN113472846B (en) Message processing method, device, equipment and computer readable storage medium
US9369331B1 (en) Application message management
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN110971535B (en) Communication congestion control method, device, equipment and storage medium
CN110247808B (en) Information transmission method, device, equipment and readable storage medium
CN102685236A (en) Message processing method and system
CN108966160B (en) Short message processing method and device and computer readable storage medium
CN108173807B (en) Unified message sending and processing method and device
CN112671883A (en) Design method of multifunctional message notification system
CN105009097A (en) Message transmission device, message transmission method, and message transmission program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination