Resource Scheduling Management Method, Device, Electronic Device and Storage Medium
By receiving and updating resource scheduling requests, determining scheduling rules and tracking the processing results of the management platform, the problems of low efficiency and insufficient accuracy of resource scheduling management are solved, and efficient and accurate resource scheduling management is achieved.
Patent Information
- Application Number
- CN202111440737.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-11-30
Smart Images

Figure CN114091962B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of financial data management, and in particular, to a resource scheduling management method, device, electronic device, and storage medium. Background Art
[0002] To ensure the efficiency of resource transactions and improve the scheduling efficiency of resources on both sides, corresponding resource scheduling accounts are usually set for the total amount of resources on both sides. Specifically, the target object initiates a corresponding resource scheduling request to the management platform for a specified scenario, and then the management platform performs an equal amount of resource scheduling in the corresponding target account based on the number of resources requested for scheduling, and modifies the target resource record saved in the target account. At the same time, based on the above scheduling process, a scheduling record for the current resource scheduling is generated to provide a corresponding scheduling certificate for the target object.
[0003] Furthermore, to ensure the accuracy of the target resource record, after each resource scheduling, the corresponding scheduling record needs to be copied and uploaded to the management platform. Through the correction engine of the management platform, data analysis is performed on the current resource scheduling result to determine whether there is an abnormality in the resource scheduling process for the target object. However, this method still has the following defects:
[0004] 1. The processing time is relatively long.
[0005] In the related art, it depends on the management platform to determine whether there is an abnormality in the resource scheduling process based on the received scheduling record.
[0006] However, in some special cases, for example, when the management platform receives a large number of scheduling records at the same time, the target object cannot determine the resource scheduling result for a specified scenario in a timely manner, resulting in low management efficiency of resource scheduling.
[0007] 2. The accuracy of resource records is low.
[0008] In the related art, if the management platform determines that there is an abnormality in the resource scheduling of the target object in the corresponding target scenario based on the received scheduling record, then further, the management platform modifies the target resource record saved in the target account based on a preset correction strategy.
[0009] However, since the judgment accuracy rate of the correction engine cannot be fully guaranteed, the above management method is prone to missed judgment and misjudgment, resulting in low accuracy of the target resource record. Summary of the Invention
[0010] Embodiments of the present application provide a resource scheduling management method, device, electronic device, and storage medium for improving the management efficiency of resource scheduling and the accuracy of resource scheduling records.
[0011] In a first aspect, an embodiment of the present application provides a resource scheduling management method, including:
[0012] Receiving a resource scheduling request sent by a target object, where the resource scheduling request at least includes the resource scheduling type of the target scenario where the target object is currently located.
[0013] Based on the resource scheduling type, determining a target scheduling rule corresponding to the target scenario from a preset set of scheduling rules, and using the target scheduling rule to change the resource information record saved by the target object for the target scenario.
[0014] Sending the resource scheduling request to a specified management platform, and determining the resource scheduling processing result obtained by the management platform based on the resource scheduling request for resource scheduling in the target scenario.
[0015] Based on the resource scheduling processing result, determining a target correction rule for the resource scheduling processing result from a preset set of correction rules, and using the target correction rule to correct the resource information record.
[0016] In a second aspect, an embodiment of the present application provides a resource scheduling management device, including:
[0017] A communication module, configured to receive a resource scheduling request sent by a target object, where the resource scheduling request at least includes the resource scheduling type of the target scenario where the target object is currently located.
[0018] A scheduling module, configured to determine a target scheduling rule corresponding to the target scenario from a preset set of scheduling rules based on the resource scheduling type, and use the target scheduling rule to change the resource information record saved by the target object for the target scenario.
[0019] A tracking module, configured to send the resource scheduling request to a specified management platform, and determine the resource scheduling processing result obtained by the management platform based on the resource scheduling request for resource scheduling in the target scenario.
[0020] A correction module, configured to determine a target correction rule for the resource scheduling processing result from a preset set of correction rules based on the resource scheduling processing result, and use the target correction rule to correct the resource information record.
[0021] In an optional embodiment, the resource scheduling type at least includes: incoming resource scheduling and outgoing resource scheduling. Then, before receiving a resource scheduling request initiated by the target object, the communication module is further configured to:
[0022] Send a scenario scheduling certificate corresponding to the target scenario to the target object.
[0023] Receive the first indication information based on the scenario scheduling voucher response of the target object, where the first indication information at least includes: the object identifier of the target object and the total target resources of the target object.
[0024] In the target scenario, generate and save a resource information record carrying the object identifier, where the resource information record at least includes: the total incoming resources of the target scenario, the total outgoing resources of the target scenario, and the total target resources of the target object.
[0025] In an alternative embodiment, when determining the target scheduling rule corresponding to the target scenario from a preset set of scheduling rules based on the resource scheduling type and using the target scheduling rule to change the resource information record saved by the target object for the target scenario, the scheduling module specifically is used for:
[0026] If it is determined that the resource scheduling type is incoming resource scheduling, determine that the total incoming resources saved in the resource information record need to be changed, and use the preset first scheduling rule to change the total incoming resources.
[0027] If it is determined that the resource scheduling type is outgoing resource scheduling, determine that the total outgoing resources and the total target resources saved in the resource information record need to be changed, and use the preset second scheduling rule to change the total outgoing resources and the total target resources.
[0028] In an alternative embodiment, the resource scheduling request further includes: the number of resource scheduling requested by the target object. When using the preset first scheduling rule to change the total incoming resources saved in the resource information record, the scheduling module specifically is used for:
[0029] Based on the number of resource scheduling, increase the total incoming resources saved in the resource information record.
[0030] When using the preset second scheduling rule to change the total outgoing resources and the total target resources saved in the resource information record, the scheduling module specifically is used for:
[0031] Based on the number of resource scheduling, decrease the total target resources saved in the resource information record, and based on the number of resource scheduling, increase the total outgoing resources saved in the resource information record.
[0032] In an alternative embodiment, after using the target scheduling rule to change the resource information record saved by the target object for the target scenario, the scheduling module is further used for:
[0033] Generate and record a resource scheduling voucher for the current resource scheduling based on the number of resource scheduling and the resource scheduling type in the resource scheduling request.
[0034] In an alternative embodiment, when determining the resource scheduling processing result obtained by the management platform for resource scheduling in the target scenario based on the resource scheduling request, the tracking module is specifically configured to:
[0035] Track the resource scheduling performed by the management platform in the target scenario based on the resource scheduling request, and record the corresponding tracking duration until the management platform determines that the current resource scheduling ends.
[0036] If the tracking duration is less than the preset duration threshold, determine that the resource scheduling processing result is a successful resource scheduling.
[0037] If the tracking duration is not less than the preset duration threshold, determine that the resource scheduling processing result is a failed resource scheduling.
[0038] In an alternative embodiment, when determining the target correction rule for the resource scheduling processing result from the preset set of correction rules based on the resource scheduling processing result, the correction module is specifically configured to:
[0039] Based on the resource scheduling processing result and the resource scheduling type recorded in the resource scheduling voucher, determine the corresponding target correction rule from the preset set of correction rules.
[0040] In an alternative embodiment, the resource scheduling processing result further includes: the target scheduling number finally scheduled by the management platform during resource scheduling in the target scenario;
[0041] When using the target correction rule to correct the resource information record, the correction module is specifically configured to:
[0042] Based on the target scheduling number and the resource scheduling type recorded in the resource scheduling voucher, use the corresponding target correction rule to correct the resource information record.
[0043] In a third aspect, an embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored on the memory and can run on the processor. When the computer program is executed by the processor, the processor implements any one of the resource scheduling management methods in the first aspect.
[0044] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the resource scheduling management method in the first aspect is implemented.
[0045] In a fifth aspect, an embodiment of the present application further provides a computer program product. When the computer program product is called by a computer, the computer is caused to execute the method described in the first aspect.
[0046] The embodiments of the present application provide a resource scheduling management method, apparatus, electronic device, and storage medium. Based on the corresponding resource scheduling type in the resource scheduling request sent by the target object, the target scheduling rule for the target scenario where the target object is located is determined, and the saved resource information record is changed. Further, the resource scheduling processing result of the management platform is tracked, and based on the processing result, the corresponding target correction rule is determined to correct the saved resource information record. The resource scheduling management method proposed in the embodiments of the present application, on the one hand, in response to the real-time resource scheduling processing result of the management platform, can quickly generate the resource information record for the target object, improving the management efficiency of resource scheduling. On the other hand, by tracking the resource scheduling process of the management platform and real-time judging whether there is a resource scheduling exception in the process, the corresponding correction rule is quickly selected to correct the resource information record, avoiding misjudgment and missed judgment problems caused by incorrect judgment of the rule engine exception, thereby improving the accuracy and credibility of the resource scheduling record. Brief Description of the Drawings
[0047] Figure 1 It is the resource scheduling management architecture diagram provided by the embodiments of the present application;
[0048] Figure 2 It is the flowchart for determining the resource information record provided by the embodiments of the present application;
[0049] Figure 3 It is the flowchart of a resource scheduling management method provided by the embodiments of the present application;
[0050] Figure 4 It is the schematic diagram of the resource information record change logic provided by the embodiments of the present application;
[0051] Figure 5 It is the flowchart for determining the resource scheduling processing result provided by the embodiments of the present application;
[0052] Figure 6 It is the schematic diagram of the resource scheduling status provided by the embodiments of the present application;
[0053] Figure 7 It is the schematic diagram of the resource information record correction logic provided by the embodiments of the present application;
[0054] Figure 8 It is the first scenario example diagram provided by the embodiments of the present application;
[0055] Figure 9 It is the second scenario example diagram provided by the embodiments of the present application;
[0056] Figure 10 It is the third scenario example diagram provided by the embodiments of the present application;
[0057] Figure 11 The fourth scenario example diagram provided by the embodiments of this application;
[0058] Figure 12 A schematic diagram of a resource scheduling management device provided by the embodiments of this application;
[0059] Figure 13 A schematic diagram of an electronic device provided by the embodiments of this application. Detailed implementation manners
[0060] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0061] To improve the management efficiency of resource scheduling and ensure the accuracy and reliability of corresponding resource scheduling records, the embodiments of this application provide a resource scheduling management method, device, electronic device, and storage medium. Based on the corresponding resource scheduling type in the resource scheduling request sent by the target object, the target scheduling rule for the target scenario where the target object is located is determined, and the saved resource information record is changed. Further, the resource scheduling processing result of the management platform is tracked, and based on the processing result, the corresponding target correction rule is determined to correct the saved resource information record. The resource scheduling management method proposed in the embodiments of this application, on the one hand, in response to the real-time resource scheduling processing result of the management platform, can quickly generate the resource information record for the target object, improving the management efficiency of resource scheduling. On the other hand, by tracking the resource scheduling process of the management platform and determining in real time whether there is an abnormal resource scheduling during the process, the corresponding correction rule is quickly selected to correct the resource information record, avoiding misjudgment and missed judgment problems caused by incorrect judgment of the rule engine exception, thereby improving the accuracy and credibility of the resource scheduling record.
[0062] For ease of understanding, the following explanations are given for some nouns or terms that appear during the description of the embodiments of this application:
[0063] Resource: It refers to the general term for all material resources, financial resources, and human resources within a region. Specifically, it can be divided into two categories: natural resources and social resources. Among them, natural resources can include material resources such as sunlight, air, water, and forests; society can include human resources, information resources, and various material wealth created through labor.
[0064] For example, in the embodiments of the present application, the schedulable resources of the target object can be represented by the transaction funds stored in the savings account of the target object. In some more specific scenarios, it can also refer to a certain amount of guaranteed funds in the margin account separately opened for the target object by the bank to determine the risk tolerance of the target object during the two-way transaction process between the target object as an investor and the bank. The above scenarios are only for illustrative purposes and will not be elaborated here.
[0065] Resource Schedule: It refers to the process of effectively adjusting, analyzing, measuring, or using the schedulable resources in the relevant scenarios within a certain time range.
[0066] For example, in the embodiments of the present application, the target object can initiate a resource scheduling request for a specified savings amount or guaranteed amount based on the total amount of funds in the savings account and / or the total amount of margin in the corresponding margin account to ensure the normal progress of the transaction between the two parties.
[0067] Resource Management: It refers to tracking and recording the resource scheduling process, so as to efficiently and accurately schedule and manage the schedulable resources of the target object.
[0068] For example, in the embodiments of the present application, resource management can be understood as a resource management process that, for the resource scheduling request initiated by the target object, makes corresponding changes to the balance information record and transfer transaction record in the margin account of the target object, so as to protect the fund rights and interests of the target object.
[0069] Based on the above explanations of nouns or terms, the resource scheduling management method provided in the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0070] Refer to Figure 1 As shown, a communication connection for data transmission is created between the service system and the management platform. Among them, the service system can be represented as a computer terminal or a similar computing device for recording, storing, and managing resource information for the target object, such as a server cluster, etc. Specifically, in the embodiments of the present application, the service system can also refer to a financial management platform partially used for storing the transfer transaction record of the object's funds. Then, the management platform can refer to the corresponding financial institution that can perform resource scheduling. Further, the above communication connection includes but is not limited to: Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), etc.
[0071] Based on the above infrastructure, refer to Figure 2 As shown, before the target object initiates a resource scheduling request, to reflect the resource scheduling process in the target scenario, the corresponding resource information record is determined. Specifically, the following operations are performed, including:
[0072] Step 201: Send a scenario scheduling voucher corresponding to the target scenario to the target object.
[0073] Specifically, for the target scenario of a specified transaction, determine the corresponding scenario scheduling voucher. For example, for some specific financial scenarios, the target object determines whether a certain amount of trading margin needs to be provided when opening a position based on the corresponding scenario scheduling voucher. At the same time, the scenario scheduling voucher can also be used to determine whether the target object is performing resource scheduling for the first time, so as to determine whether a new resource information record needs to be created based on the total amount of target resources provided by the target object.
[0074] Step 202: Receive the first indication information responded by the target object based on the scenario scheduling voucher.
[0075] Specifically, the first indication information includes at least: the object identifier of the target object and the total amount of target resources of the target object. Among them, to clarify the identity of the target object, a unique object identifier is set for the specified target object, such as a personal identity account, ID, identity code, etc. Further, based on the object identifier, find its corresponding total amount of target resources. Specifically, in the embodiments of the present application, the schedulable resources are understood as the savings funds of the target object in the corresponding account. Therefore, for ease of understanding, the total amount of target resources is regarded as the account balance in the target account. Then, referring to Table 1 below, assume that the first indication information is as follows:
[0076] Table 1
[0077] Object identifier Margin123 Total target resources 5000
[0078] Step 203: Generate and save a resource information record carrying the object identifier in the target scenario.
[0079] In actual situations, since the resource scheduling between the target object and the management platform is two-way, for the target object, the resource scheduling can be specifically divided into two types: incoming resource scheduling and outgoing resource scheduling. These two types respectively correspond to the increase and decrease of the total amount of target resources. Therefore, in the corresponding resource information record, in addition to representing the total amount of schedulable resources allocated by the target object for the target scenario, the total amount of resources to be scheduled corresponding to the above two types of resource scheduling needs to be shown respectively, that is, the total amount of incoming resources and the total amount of outgoing resources to be shown.
[0080] Further, to reflect the resource scheduling process, the total amount of target resources, the total amount of incoming resources, and the total amount of outgoing resources are stored in an associated manner, and combined with the object identifier of the target object, a corresponding resource information record is generated. For example, assume that based on the above process and based on the scenario scheduling voucher, it is determined that the target object is performing resource scheduling for the first time. Then, the generated resource information record is as shown in Table 2 below:
[0081] Table 2
[0082] Object identifier Margin123 Total target resources 5000 Total incoming resources 0 Total outgoing resources 0
[0083] Optionally, the resource information record may further include: schedulable resource types. Specifically, taking the savings funds of the target object as an example, in actual situations, the schedulable resource types can be represented as corresponding currency types, so as to meet the resource scheduling requirements of the target object in different scenarios.
[0084] Based on the above process, after generating the resource information record for the target object in the target scenario, refer to Figure 3 As shown, an embodiment of the present application proposes a resource scheduling management method, including:
[0085] Step 301: Receive a resource scheduling request sent by the target object.
[0086] Specifically, in the embodiment of the present application, by receiving the resource scheduling request of the target object, the resource scheduling type of the current target scenario is determined. For example, in an optional embodiment, assuming that the target object wants to increase the schedulable resources in the current target scenario, the corresponding resource scheduling type is: incoming resource scheduling. Similarly, if the target object wants to reduce the total amount of schedulable resources, the resource scheduling type is outgoing resource scheduling.
[0087] Further, in an optional embodiment, to meet the personalized needs of the target object, the target object indicates the number of resources to be scheduled currently based on relevant information. Then, the resource scheduling request should further include: the number of resource scheduling requested by the target object, which is used to indicate the increase or decrease range of the total target resources. In this way, more accurate resource scheduling can be performed based on the determined number of resource scheduling.
[0088] Step 302: Based on the resource scheduling type, determine the target scheduling rule corresponding to the target scenario from the preset scheduling rule set, and use the target scheduling rule to change the resource information record saved by the target object for the target scenario.
[0089] Specifically, it includes the following two situations:
[0090] Situation 1: The resource scheduling type is incoming resource scheduling.
[0091] Specifically, if based on the above steps, it is determined that the current resource scheduling type is incoming resource scheduling, then further, it is determined that the total incoming resources in the resource information record saved in the target scenario need to be changed, and the preset first scheduling rule is used to change the total incoming resources.
[0092] Further, if in the above step 301, the resource scheduling request sent by the target object includes a specified resource scheduling quantity, the first scheduling rule can be expressed as: based on the resource scheduling quantity, increase the total quantity of resources to be received saved in the resource information record.
[0093] For example, assume that the specified resource scheduling quantity is 1000, and it is determined that the total quantity of resources to be received for the target object in the resource information record is to be changed. Then, based on the obtained resource scheduling quantity of 1000, increase the total quantity of resources to be received saved in the resource information record. The changed resource information record is as shown in Table 3 below:
[0094] Table 3
[0095] Object identifier Margin123 Total target resources 5000 Total incoming resources 1000 Total outgoing resources 0
[0096] Case 2: The resource scheduling type is outbound resource scheduling.
[0097] Specifically, if based on the above steps, it is determined that the current resource scheduling type is outbound resource scheduling, then further, determine that the total outbound resources and the total target resources saved in the resource information record in the target scenario are to be changed, and use the preset second scheduling rule to change the total outbound resources and the total target resources respectively.
[0098] Further, if in the above step 301, the resource scheduling request sent by the target object includes a specified resource scheduling quantity, the second scheduling rule can be expressed as: based on the resource scheduling quantity, decrease the total target resources saved in the resource information record, and based on the resource scheduling quantity, increase the total quantity of resources to be received saved in the resource information record.
[0099] For example, assume that the specified resource scheduling quantity is 2000, and it is determined that the total outbound resources and the total target resources for the target object in the resource information record are to be changed. Then, based on the obtained resource scheduling quantity of 2000, increase the total outbound resources saved in the resource information record, and decrease the total target resources saved in the resource information record. The changed resource information record is as shown in Table 4 below:
[0100] Table 4
[0101] Object identifier Margin123 Total target resources 3000 Total incoming resources 0 Total outgoing resources 2000
[0102] Based on the above steps, before the management platform performs corresponding resource scheduling in the target scenario based on the resource scheduling request, the corresponding changes can be made to the saved resource information record in advance, thus avoiding the problem of abnormal resource information records caused by the untimely response of the management platform.
[0103] Further, in an alternative embodiment, based on the number of resource scheduling and the type of resource scheduling determined in the above process, a corresponding resource scheduling voucher is generated to indicate the change status of the resource information record in the current process.
[0104] Optionally, based on the change time of the resource information record in the current situation, a corresponding resource scheduling number is determined, and a corresponding resource scheduling voucher is generated based on the uniquely determined resource scheduling number. For example, assuming the number of resource scheduling is 1000, the type of resource scheduling is incoming resource scheduling, and based on the change time 00:00, a unique resource scheduling number Margin1230000 is generated. Then the generated resource scheduling voucher is shown in Table 5 below:
[0105] Table 5
[0106] Resource scheduling number Margin1230000 Number of resource scheduling 1000 Resource scheduling type Incoming resource scheduling
[0107] For a clear and detailed description of the above operations, refer to Figure 4 As shown, it is a logical schematic diagram of step 302 above. The service system determines the corresponding target scheduling rule based on the received resource scheduling request, changes the corresponding total resource saved in the resource information record, and generates a resource scheduling voucher for the current resource scheduling based on the change result. Based on the above process, the saved resource information record can be changed accordingly in advance, thus avoiding the problem of abnormal resource information records caused by the untimely response of the management platform.
[0108] Step 303: Send the resource scheduling request to the designated management platform, and determine the resource scheduling processing result obtained by the management platform for resource scheduling in the target scenario.
[0109] Specifically, in actual situations, when the management platform performs resource scheduling, there may be multiple different resource scheduling processing results, such as processing success, processing failure, processing timeout, etc. Optionally, refer to Figure 5 As shown, the following method is used to determine the corresponding resource scheduling processing result, including:
[0110] Step 3031: Track the resource scheduling performed by the management platform based on the resource scheduling request in the target scenario, and record the corresponding tracking duration until the management platform determines that the current resource scheduling ends.
[0111] Step 3032: Determine whether the recorded tracking duration is less than the preset duration threshold. If so, execute step 3033; otherwise, execute step 3034.
[0112] Step 3033: Determine that the resource scheduling processing result is resource scheduling success.
[0113] Specifically, if the management platform completes the resource scheduling for a specified number of target objects within a preset time range, the service system determines that the current resource scheduling processing result is a successful resource scheduling.
[0114] Step 3034: Determine that the resource scheduling processing result is a failed resource scheduling.
[0115] Specifically, if the management platform fails to complete the resource scheduling for a specified number of target objects within a preset time range, the service system determines that the current resource scheduling has timed out and determines that the corresponding resource scheduling processing result is a failed resource scheduling.
[0116] It should be noted that in an alternative embodiment, the management platform may return corresponding scheduling failure information to the service system within a preset time range, and the service system can also determine that the resource scheduling processing result is a failed resource scheduling based on the received scheduling failure information, which will not be elaborated here.
[0117] Step 304: Based on the resource scheduling processing result, determine a target correction rule for the resource scheduling processing result from a preset set of correction rules, and use the target correction rule to correct the resource information record.
[0118] It should be noted that in actual situations, when the management platform performs resource scheduling in a target scenario, the finally scheduled number of resources may not be exactly the same as the number of resources requested by the target object for scheduling. Therefore, in the embodiments of the present application, to ensure the reliability of the resource information record and ensure that the resource scheduling status reflected in the resource information record is consistent with the actual situation, the target scheduling number finally scheduled by the management platform is used to correct the resource information record.
[0119] Furthermore, based on the tracked resource scheduling processing result and the resource scheduling type recorded in the resource scheduling certificate, determine the corresponding target correction rule from a preset set of correction rules.
[0120] Specifically, referring to Figure 6 As shown, based on the various resource scheduling types and their corresponding resource scheduling processing results in the above steps, determine the corresponding target correction rules, including the following situations:
[0121] Situation 1: The resource scheduling type is incoming resource scheduling, and the resource scheduling processing result is a successful resource scheduling.
[0122] Specifically, if the resource scheduling type is incoming resource scheduling and the resource scheduling processing result is successful resource scheduling, then for this resource scheduling situation, the total incoming resources and the total target resources in the resource information record saved in the target scenario are corrected. For example, assume that the target scheduling number is 1000 and the resource scheduling processing result shown in Table 3 above is successful resource scheduling. Then, based on the target scheduling number, the total incoming resources are corrected downward, and the total target resources are corrected upward. The corrected resource information record is shown in Table 6 below:
[0123] Table 6
[0124] Object identifier Margin123 Total target resources 6000 Total incoming resources 0 Total outgoing resources 0
[0125] Situation 2: The resource scheduling type is incoming resource scheduling and the resource scheduling processing result is failed resource scheduling.
[0126] Specifically, if the resource scheduling type is incoming resource scheduling and the resource scheduling processing result is failed resource scheduling, then for this resource scheduling situation, the total incoming resources in the resource information record saved in the target scenario are corrected. For example, assume that the target scheduling number is 1000 and the resource scheduling processing result shown in Table 3 above is failed resource scheduling. Then, based on the target scheduling number, the total incoming resources are corrected downward. The corrected resource information record is shown in Table 7 below:
[0127] Table 7
[0128] Object identifier Margin123 Total target resources 5000 Total incoming resources 0 Total outgoing resources 0
[0129] Situation 3: The resource scheduling type is outgoing resource scheduling and the resource scheduling processing result is successful resource scheduling.
[0130] Specifically, if the resource scheduling type is outgoing resource scheduling and the resource scheduling processing result is successful resource scheduling, then for this resource scheduling situation, the total outgoing resources in the resource information record saved in the target scenario are corrected. For example, assume that the target scheduling number is 1000 and the resource scheduling processing result shown in Table 4 above is successful resource scheduling. Then, based on the target scheduling number, the total outgoing resources are corrected downward. The corrected resource information record is shown in Table 8 below:
[0131] Table 8
[0132] Object identifier Margin123 Total target resources 3000 Total incoming resources 0 Total outgoing resources 1000
[0133] Situation 4: The resource scheduling type is outgoing resource scheduling and the resource scheduling processing result is failed resource scheduling.
[0134] Specifically, if the resource scheduling type is outgoing resource scheduling and the resource scheduling processing result is resource scheduling failure, then for this resource scheduling situation, the total outgoing resources and the total target resources in the resource information record saved in the target scenario are corrected. For example, assume that the target scheduling number is 1000 and the resource scheduling processing result shown in Table 4 above is resource scheduling failure. Then, based on the target scheduling number, the total outgoing resources are corrected downward, and at the same time, the total target resources are corrected upward. The corrected resource information record is shown in Table 9 below:
[0135] Table 9
[0136] Object identifier Margin123 Total target resources 4000 Total incoming resources 0 Total outgoing resources 1000
[0137] For a clear and detailed description of the above operations, refer to Figure 7 shown in the logical diagram of step 304 above. The service system determines the corresponding target correction rule based on the determined resource scheduling processing result and corrects the resource information record accordingly. Based on the above steps, it is possible to quickly obtain a resource information record that reflects the current resource scheduling result based on the real-time determined target correction rule, ensuring the efficiency and reliability of the resource information record. At the same time, using the above method enables the resource information record to accurately reflect the corresponding resource scheduling process, making the resource scheduling more convenient and fast, thus ensuring the efficient utilization of schedulable resources by the target object.
[0138] Refer to Figure 8 shown in the first scenario example diagram below. Assume that the target object sends a resource scheduling request for the current target scenario to the service system at 00:00. Based on the resource scheduling type carried in the resource scheduling request: incoming resource scheduling and the resource scheduling number: 1000, the saved resource information record is changed accordingly. Among them, since the resource scheduling type is determined to be incoming resource scheduling, the total incoming resources in the resource information record are changed. At the same time, tracking the resource scheduling processing result of the tracking management platform. Assume that the resource scheduling is successful, then in the resource information record, the total incoming resources and the total target resources are corrected and changed accordingly. As a derivative of this embodiment of the present application, the resource information record may further include: a resource scheduling status, which is used to more intuitively represent the processing progress of the current resource scheduling.
[0139] Refer to Figure 9As shown, a second scenario example diagram is given. Assume that the target object sends a resource scheduling request for the current target scenario to the service system at 00:00. Based on the resource scheduling type carried in the resource scheduling request: incoming resource scheduling, and the resource scheduling quantity: 1000, the saved resource information record is correspondingly changed. Among them, since it is determined that the resource scheduling type is incoming resource scheduling, the total incoming resource quantity in the resource information record is changed. At the same time, the resource scheduling processing result of the tracking management platform is tracked. Assume that the resource scheduling fails, then in the resource information record, a corresponding correction change is made to the total incoming resource quantity.
[0140] Refer to Figure 10 As shown, a third scenario example diagram is given. Assume that the target object sends a resource scheduling request for the current target scenario to the service system at 00:00. Based on the resource scheduling type carried in the resource scheduling request: outgoing resource scheduling, and the resource scheduling quantity: 1000, the saved resource information record is correspondingly changed. Among them, since it is determined that the resource scheduling type is outgoing resource scheduling, the total outgoing resource quantity and the total target resource quantity in the resource information record are changed. At the same time, the resource scheduling processing result of the tracking management platform is tracked. Assume that the resource scheduling is successful, then in the resource information record, a corresponding correction change is made to the total outgoing resource quantity.
[0141] Refer to Figure 11 As shown, a fourth scenario example diagram is given. Assume that the target object sends a resource scheduling request for the current target scenario to the service system at 00:00. Based on the resource scheduling type carried in the resource scheduling request: outgoing resource scheduling, and the resource scheduling quantity: 1000, the saved resource information record is correspondingly changed. Among them, since it is determined that the resource scheduling type is outgoing resource scheduling, the total outgoing resource quantity and the total target resource quantity in the resource information record are changed. At the same time, the resource scheduling processing result of the tracking management platform is tracked. Assume that the resource scheduling is successful, then in the resource information record, corresponding correction changes are made to the total outgoing resource quantity and the total target resource quantity.
[0142] Refer to Figure 12 As shown, an embodiment of the present application provides a resource scheduling management device, including a communication module 1201, a scheduling module 1202, a tracking module 1203, and a correction module 1204, where:
[0143] The communication module 1201 is used to receive a resource scheduling request sent by a target object, where the resource scheduling request at least includes the resource scheduling type of the current target scenario where the target object is located.
[0144] The scheduling module 1202 is used to determine, based on the resource scheduling type, the target scheduling rule corresponding to the target scenario from a preset set of scheduling rules, and use the target scheduling rule to change the resource information record saved by the target object for the target scenario.
[0145] The tracking module 1203 is used to send the resource scheduling request to a specified management platform and determine the resource scheduling processing result obtained by the management platform based on the resource scheduling request for resource scheduling in the target scenario.
[0146] The correction module 1204 is used to determine, based on the resource scheduling processing result, the target correction rule for the resource scheduling processing result from a preset set of correction rules, and use the target correction rule to correct the resource information record.
[0147] In an alternative embodiment, if the resource scheduling type at least includes: incoming resource scheduling and outgoing resource scheduling, then before receiving the resource scheduling request initiated by the target object, the communication module 1201 is further used to:
[0148] Send a scenario scheduling voucher corresponding to the target scenario to the target object.
[0149] Receive the first indication information responded by the target object based on the scenario scheduling voucher, where the first indication information at least includes: the object identifier of the target object and the total amount of target resources of the target object.
[0150] In the target scenario, generate and save a resource information record carrying the object identifier, where the resource information record at least includes: the total amount of incoming resources in the target scenario, the total amount of outgoing resources in the target scenario, and the total amount of target resources of the target object.
[0151] In an alternative embodiment, when determining, based on the resource scheduling type, the target scheduling rule corresponding to the target scenario from a preset set of scheduling rules and using the target scheduling rule to change the resource information record saved by the target object for the target scenario, the scheduling module 1202 is specifically used to:
[0152] If it is determined that the resource scheduling type is incoming resource scheduling, then determine that the total amount of incoming resources saved in the resource information record needs to be changed, and use a preset first scheduling rule to change the total amount of incoming resources.
[0153] If it is determined that the resource scheduling type is outgoing resource scheduling, then determine that the total amount of outgoing resources and the total amount of target resources saved in the resource information record need to be changed, and use a preset second scheduling rule to change the total amount of outgoing resources and the total amount of target resources.
[0154] In an alternative embodiment, the resource scheduling request further includes: the number of resources scheduled requested by the target object. When using a preset first scheduling rule to change the total amount of incoming resources saved in the resource information record, the scheduling module 1202 is specifically configured to:
[0155] Based on the number of resources scheduled, increase the total amount of incoming resources saved in the resource information record.
[0156] When using a preset second scheduling rule to change the total amount of outgoing resources and the total amount of target resources saved in the resource information record, the scheduling module is specifically configured to:
[0157] Based on the number of resources scheduled, decrease the total amount of target resources saved in the resource information record, and based on the number of resources scheduled, increase the total amount of outgoing resources saved in the resource information record.
[0158] In an alternative embodiment, after using the target scheduling rule to change the resource information record saved by the target object for the target scenario, the scheduling module 1202 is further configured to:
[0159] Generate and record a resource scheduling voucher for the current resource scheduling based on the number of resources scheduled and the type of resource scheduling in the resource scheduling request.
[0160] In an alternative embodiment, when determining the resource scheduling processing result obtained by the management platform for resource scheduling in the target scenario based on the resource scheduling request, the tracking module 1203 is specifically configured to:
[0161] Track the resource scheduling performed by the management platform in the target scenario based on the resource scheduling request, and record the corresponding tracking duration until the management platform determines that the current resource scheduling ends.
[0162] If the tracking duration is less than a preset duration threshold, determine that the resource scheduling processing result is a successful resource scheduling.
[0163] If the tracking duration is not less than the preset duration threshold, determine that the resource scheduling processing result is a failed resource scheduling.
[0164] In an alternative embodiment, when determining a target correction rule for the resource scheduling processing result from a preset set of correction rules based on the resource scheduling processing result, the correction module 1204 is specifically configured to:
[0165] Based on the resource scheduling processing result and the type of resource scheduling recorded in the resource scheduling voucher, determine the corresponding target correction rule from the preset set of correction rules.
[0166] In an alternative embodiment, the resource scheduling processing result further includes: the target scheduling number finally scheduled by the management platform when performing resource scheduling in the target scenario;
[0167] When using the target correction rule to correct the resource information record, the correction module 1204 is specifically configured to:
[0168] Based on the target scheduling number and the resource scheduling type recorded in the resource scheduling voucher, use the corresponding target correction rule to correct the resource information record.
[0169] Based on the same inventive concept as the above application embodiment, an electronic device is further provided in the embodiment of the present application. This electronic device can be used for resource scheduling management. In one embodiment, the electronic device can be a server, or a terminal device or other electronic devices. In this embodiment, the structure of the electronic device can be as Figure 13 shown, including a memory 1301, a communication interface 1303, and one or more processors 1302.
[0170] The memory 1301 is used to store the computer program executed by the processor 1302. The memory 1301 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system and programs required to run the instant messaging function, etc.; the data storage area can store various instant messaging information and operation instruction sets, etc.
[0171] The memory 1301 can be a volatile memory, such as a random-access memory (RAM); the memory 1301 can also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 1301 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1301 can be a combination of the above memories.
[0172] The processor 1302 can include one or more central processing units (Central Processing Unit, CPU) or be a digital processing unit, etc. The processor 1302 is used to implement the above resource scheduling management method when calling the computer program stored in the memory 1301.
[0173] The communication interface 1303 is used to communicate with terminal devices and other servers.
[0174] In the embodiments of the present application, the specific connection medium between the above-mentioned memory 1301, communication interface 1303 and processor 1302 is not limited. In the embodiments of the present application Figure 13 it is shown that the memory 1301 and the processor 1302 are connected through a bus 1304, and the bus 1304 is represented by a thick line in Figure 13 which. The connection manners between other components are only for illustrative purposes and are not limiting. The bus 1304 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 13 it is only represented by a thick line in which, but it does not mean that there is only one bus or one type of bus.
[0175] According to one aspect of the present application, there is provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes any one of the resource scheduling and management methods in the above embodiments. The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0176] According to one aspect of the present application, the present application further provides a computer program product. When the computer program product is called by a computer, the computer is enabled to execute the method described in the first aspect.
[0177] The embodiments of the present application provide a resource scheduling management method, apparatus, electronic device, and storage medium. Based on the corresponding resource scheduling type in the resource scheduling request sent by the target object, the target scheduling rule for the target scenario where the target object is located is determined, and the saved resource information record is changed. Further, the resource scheduling processing result of the management platform is tracked, and based on the processing result, the corresponding target correction rule is determined to correct the saved resource information record. On the one hand, in response to the real-time resource scheduling processing result of the management platform, the resource information record for the target object can be quickly generated, improving the management efficiency of resource scheduling. On the other hand, by tracking the resource scheduling process of the management platform and determining in real time whether there is an abnormal resource scheduling during the process, the corresponding correction rule can be quickly selected to correct the resource information record, avoiding misjudgment and missed judgment problems caused by incorrect judgment of the rule engine, thereby improving the accuracy and credibility of the resource scheduling record.
[0178] This application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 a block or multiple blocks.
[0179] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 a block or multiple blocks.
[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 a block or multiple blocks.
[0181] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these modifications and variations.
Claims
1. A resource scheduling and management method, characterized in that, Including: Receiving a resource scheduling request sent by a target object, where the resource scheduling request at least includes the resource scheduling type of the target scenario where the target object is currently located, and the resource scheduling request is a scheduling request for the funds of the target object under the corresponding account; Based on the resource scheduling type, determining, from a preset set of scheduling rules, a target scheduling rule corresponding to the target scenario, and using the target scheduling rule to change the resource information record saved by the target object for the target scenario, where the resource information record at least includes: the total amount of resources to be received in the target scenario, the total amount of resources to be sent out in the target scenario, and the total amount of target resources of the target object; Sending the resource scheduling request to a specified management platform, and determining a resource scheduling processing result obtained by the management platform based on the resource scheduling request for resource scheduling in the target scenario; Based on the resource scheduling processing result, determining, from a preset set of correction rules, a target correction rule for the resource scheduling processing result, and using the target correction rule to correct the resource information record.
2. The method according to claim 1, characterized in that, The resource scheduling type at least includes: incoming resource scheduling and outgoing resource scheduling. Before receiving the resource scheduling request initiated by the target object, it further includes: Sending a scenario scheduling voucher corresponding to the target scenario to the target object; Receiving first indication information responded by the target object based on the scenario scheduling voucher, where the first indication information at least includes: the object identifier of the target object and the total amount of target resources of the target object; Generating and saving a resource information record carrying the object identifier in the target scenario.
3. The method according to claim 2, wherein The determining, from a preset set of scheduling rules, a target scheduling rule corresponding to the target scenario based on the resource scheduling type, and using the target scheduling rule to change the resource information record saved by the target object for the target scenario includes: If it is determined that the resource scheduling type is incoming resource scheduling, determining that the total amount of incoming resources saved in the resource information record is to be changed, and using a preset first scheduling rule to change the total amount of incoming resources; If it is determined that the resource scheduling type is outgoing resource scheduling, determining that the total amount of outgoing resources and the total amount of target resources saved in the resource information record are to be changed, and using a preset second scheduling rule to change the total amount of outgoing resources and the total amount of target resources.
4. The method according to claim 3, wherein The resource scheduling request further includes: the number of resources scheduled requested by the target object. The using a preset first scheduling rule to change the total amount of incoming resources saved in the resource information record includes: Based on the number of resources scheduled, increasing the total amount of incoming resources saved in the resource information record; The using a preset second scheduling rule to change the total amount of outgoing resources and the total amount of target resources saved in the resource information record includes: Based on the resource scheduling quantity, reduce the total quantity of the target resources saved in the resource information record, and based on the resource scheduling quantity, increase the total quantity of the resources to be released saved in the resource information record.
5. The method according to any one of claims 1-4, characterized in that, After changing the resource information record saved by the target object for the target scenario by using the target scheduling rule, it further includes: Generate and record a resource scheduling voucher for the current resource scheduling based on the resource scheduling quantity and the resource scheduling type in the resource scheduling request.
6. The method according to any one of claims 1-4, characterized in that, Determining the resource scheduling processing result obtained by the management platform for resource scheduling in the target scenario based on the resource scheduling request includes: Track the resource scheduling performed by the management platform in the target scenario based on the resource scheduling request, and record the corresponding tracking duration until the management platform determines that the current resource scheduling ends; If the tracking duration is less than the preset duration threshold, determine that the resource scheduling processing result is a successful resource scheduling; If the tracking duration is not less than the preset duration threshold, determine that the resource scheduling processing result is a failed resource scheduling.
7. The method according to claim 6, wherein Based on the resource scheduling processing result, determining the target correction rule for the resource scheduling processing result from a preset set of correction rules includes: Based on the resource scheduling processing result and the resource scheduling type recorded in the resource scheduling voucher, determine the corresponding target correction rule from a preset set of correction rules.
8. The method according to claim 7, wherein The resource scheduling processing result further includes: the target scheduling quantity finally scheduled by the management platform during resource scheduling in the target scenario, Then, using the target correction rule to correct the resource information record includes: Based on the target scheduling quantity and the resource scheduling type recorded in the resource scheduling voucher, use the corresponding target correction rule to correct the resource information record.
9. A resource scheduling and management device, characterized in that, It includes: A communication module, configured to receive a resource scheduling request sent by a target object, where the resource scheduling request at least includes the resource scheduling type of the target scenario where the target object is currently located, and the resource scheduling request is a scheduling request for the funds of the target object under the corresponding account; A scheduling module, configured to determine the target scheduling rule corresponding to the target scenario from a preset set of scheduling rules based on the resource scheduling type, and use the target scheduling rule to change the resource information record saved by the target object for the target scenario, where the resource information record at least includes: the total quantity of resources to be received in the target scenario, the total quantity of resources to be released in the target scenario, and the total quantity of the target resources of the target object; A tracking module, configured to send the resource scheduling request to a specified management platform, and determine the resource scheduling processing result obtained by the management platform for resource scheduling in the target scenario; A correction module, configured to determine a target correction rule for the resource scheduling processing result from a preset set of correction rules based on the resource scheduling processing result, and use the target correction rule to correct the resource information record.
10. The device according to claim 9, characterized in that, The resource scheduling types at least include: incoming resource scheduling and outgoing resource scheduling. Before receiving the resource scheduling request initiated by the target object, it further includes: Sending a scenario scheduling voucher corresponding to the target scenario to the target object; Receiving first indication information responded by the target object based on the scenario scheduling voucher, where the first indication information at least includes: the object identifier of the target object and the total target resources of the target object; Generating and saving a resource information record carrying the object identifier in the target scenario.
11. The device according to claim 10, characterized in that, Based on the resource scheduling type, determining a target scheduling rule corresponding to the target scenario from a preset set of scheduling rules, and using the target scheduling rule to change the resource information record saved by the target object for the target scenario, includes: If it is determined that the resource scheduling type is incoming resource scheduling, determining that the total incoming resources saved in the resource information record need to be changed, and using a preset first scheduling rule to change the total incoming resources; If it is determined that the resource scheduling type is outgoing resource scheduling, determining that the total outgoing resources and the total target resources saved in the resource information record need to be changed, and using a preset second scheduling rule to change the total outgoing resources and the total target resources.
12. The device according to claim 11, characterized in that, The resource scheduling request further includes: the number of resources scheduled requested by the target object. Using the preset first scheduling rule to change the total incoming resources saved in the resource information record, includes: Based on the number of resources scheduled, increasing the total incoming resources saved in the resource information record; Using the preset second scheduling rule to change the total outgoing resources and the total target resources saved in the resource information record, includes: Based on the number of resources scheduled, decreasing the total target resources saved in the resource information record, and based on the number of resources scheduled, increasing the total outgoing resources saved in the resource information record.
13. The device according to any one of claims 9-12, characterized in that After using the target scheduling rule to change the resource information record saved by the target object for the target scenario, it further includes: Generating and recording a resource scheduling voucher for the current resource scheduling based on the number of resources scheduled and the resource scheduling type in the resource scheduling request.
14. The device according to any one of claims 9-12, characterized in that, Determining the resource scheduling processing result obtained by the management platform for resource scheduling in the target scenario based on the resource scheduling request, includes: Tracking the resource scheduling performed by the management platform in the target scenario based on the resource scheduling request, and recording the corresponding tracking duration until the management platform determines that the current resource scheduling ends; If the tracking duration is less than a preset duration threshold, determining that the resource scheduling processing result is a successful resource scheduling; If the tracking duration is not less than a preset duration threshold, determine that the resource scheduling processing result is a resource scheduling failure.
15. The device according to claim 14, characterized in that, The determining, from a preset set of correction rules, a target correction rule for the resource scheduling processing result based on the resource scheduling processing result includes: Based on the resource scheduling processing result and the resource scheduling type recorded in the resource scheduling certificate, determine a corresponding target correction rule from a preset set of correction rules.
16. The device according to claim 15, characterized in that, The resource scheduling processing result further includes: the target scheduling number finally scheduled by the management platform when performing resource scheduling in the target scenario, then the correcting of the resource information record by using the target correction rule includes: Based on the target scheduling number and the resource scheduling type recorded in the resource scheduling certificate, correct the resource information record by using the corresponding target correction rule.
17. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the resource scheduling management method according to any one of claims 1-8.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1-8.
19. A computer program product, characterized in that, When the computer program product is called by a computer, the computer is caused to execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
Resource adjustment method, apparatus, and system
WO2018036521A1