CN114331347A - Task processing method and device, electronic equipment and medium - Google Patents

Task processing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN114331347A
CN114331347A CN202111602029.3A CN202111602029A CN114331347A CN 114331347 A CN114331347 A CN 114331347A CN 202111602029 A CN202111602029 A CN 202111602029A CN 114331347 A CN114331347 A CN 114331347A
Authority
CN
China
Prior art keywords
resource
task
subtask
compensation
transfer amount
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
CN202111602029.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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111602029.3A priority Critical patent/CN114331347A/en
Publication of CN114331347A publication Critical patent/CN114331347A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present disclosure relates to a task processing method, a task processing apparatus, an electronic device, and a medium, where the task processing method includes: responding to a request for processing at least one subtask in a task initiated by a user, and acquiring a first resource, a second resource and a third resource; judging whether the task continuously meets a trigger condition of task compensation according to the first resource, the second resource and the third resource; under the condition that the task is determined to no longer meet the triggering condition of the task compensation, acquiring a resource transfer amount corresponding to the at least one subtask; and processing the at least one subtask according to the resource corresponding to the at least one subtask and the resource transfer amount. According to the task processing method, the task processing device, the electronic equipment and the task processing medium, the utilization rate of resources can be improved under the condition that the experience of the object corresponding to the target account is not influenced.

Description

Task processing method and device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a task processing method and apparatus, an electronic device, and a medium.
Background
With the increasing maturity and rapid development of internet technology, more and more scenes are involved in task processing in the network, such as online transactions, online service experiences, and the like. Currently, in these scenarios, the platform may provide certain compensation resources for the target account executing the target operation event to improve the activity of the platform. However, when the target account stops executing or withdraws the target operation event, the compensation resource is wasted, and the utilization efficiency of the platform on the compensation resource is affected.
Disclosure of Invention
The present disclosure provides a task processing method, apparatus, electronic device, and medium to at least solve the problems in the related art described above.
According to a first aspect of the embodiments of the present disclosure, there is provided a task processing method, including: responding to a request for processing at least one subtask in a task, and acquiring a first resource, a second resource and a third resource, wherein the first resource is a total resource corresponding to the task when the task is generated, the second resource is a resource corresponding to the task when task compensation is triggered, and the third resource is an accumulated resource corresponding to both the processed subtask in the task and the at least one subtask; judging whether the task continuously meets the triggering condition of task compensation according to the first resource, the second resource and the third resource; under the condition that the task is determined to no longer meet the triggering condition of the task compensation, acquiring a resource transfer amount corresponding to the at least one subtask; and processing the at least one subtask according to the resource corresponding to the at least one subtask and the resource transfer amount.
Optionally, the method further comprises: and under the condition that the task continuously meets the triggering condition of the task compensation, processing the at least one subtask according to the resource corresponding to the at least one subtask.
Optionally, the determining, according to the first resource, the second resource, and the third resource, whether the task continuously satisfies the trigger condition for task compensation includes: determining an upper limit processing resource of the task according to the first resource and the second resource; and when the accumulated resource is larger than the upper limit processing resource, determining that the task no longer meets the triggering condition of task compensation.
Optionally, the task compensation is to transfer a preset resource from a total resource corresponding to the task.
Optionally, the obtaining the resource transfer amount corresponding to the at least one subtask includes: and acquiring the resource transfer amount corresponding to the at least one subtask through the first resource, the second resource, the third resource and the preset resource.
Optionally, the obtaining, by the first resource, the second resource, the third resource, and the preset resource, a resource transfer amount corresponding to the at least one sub-task includes: acquiring a first difference value between the first resource and the third resource, and acquiring a second difference value between the second resource and the first difference value; performing quotient calculation on the second difference value and the second resource, and performing product calculation on a quotient calculation result and the preset resource to obtain a total resource transfer amount corresponding to the task; and obtaining the resource transfer amount corresponding to at least one subtask by making a difference between the total resource transfer amount and the historical resource transfer amount corresponding to the subtask which is processed in the task.
Optionally, the processing the at least one subtask according to the resource corresponding to the at least one subtask and the resource transfer amount includes: and transferring the resource transfer amount from the resource corresponding to the at least one subtask to process the at least one subtask.
According to a second aspect of the embodiments of the present disclosure, there is provided a task processing device including: a first acquisition unit configured to: responding to a request for processing at least one subtask in a task, and acquiring a first resource, a second resource and a third resource, wherein the first resource is a total resource corresponding to the task when the task is generated, the second resource is a resource corresponding to the task when task compensation is triggered, and the third resource is an accumulated resource corresponding to both the processed subtask in the task and the at least one subtask; a condition determination unit configured to: judging whether the task continuously meets the triggering condition of task compensation according to the first resource, the second resource and the third resource; a second acquisition unit configured to: under the condition that the task is determined to no longer meet the triggering condition of the task compensation, acquiring a resource transfer amount corresponding to the at least one subtask; a first processing unit configured to: and processing the at least one subtask according to the resource corresponding to the at least one subtask and the resource transfer amount.
Optionally, the task processing device further includes a second processing unit configured to: and under the condition that the task continuously meets the triggering condition of the task compensation, processing the at least one subtask according to the resource corresponding to the at least one subtask.
Optionally, the condition judging unit is configured to: determining an upper limit processing resource of the task according to the first resource and the second resource; and when the accumulated resource is larger than the upper limit processing resource, determining that the task no longer meets the triggering condition of task compensation.
Optionally, the task compensation is to transfer a preset resource from a total resource corresponding to the task.
Optionally, the second obtaining unit is configured to: and acquiring the resource transfer amount corresponding to the at least one subtask through the first resource, the second resource, the third resource and the preset resource.
Optionally, the second obtaining unit is configured to: acquiring a first difference value between the first resource and the third resource, and acquiring a second difference value between the second resource and the first difference value; performing quotient calculation on the second difference value and the second resource, and performing product calculation on a quotient calculation result and the preset resource to obtain a total resource transfer amount corresponding to the task; and obtaining the resource transfer amount corresponding to at least one subtask by making a difference between the total resource transfer amount and the historical resource transfer amount corresponding to the subtask which is processed in the task.
Optionally, the first processing unit is configured to: and transferring the resource transfer amount from the resource corresponding to the at least one subtask to process the at least one subtask.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to perform a method of task processing according to the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions, which when executed by at least one processor, cause the at least one processor to perform a task processing method according to the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, instructions in which are executable by a processor of a computer device to perform a task processing method according to the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the task processing method, the task processing device, the electronic equipment and the medium, when a target account requests to process at least one subtask in a task, whether the task continuously meets a trigger condition of task compensation is judged, and if the task continuously meets the trigger condition of task compensation, resources corresponding to the at least one subtask are transferred to the target account; if the triggering condition of task compensation is not met, transferring part of resources from the resources corresponding to at least one subtask, and transferring the rest resources to the target account, so that the utilization rate of the resources can be improved under the condition of not influencing the experience of the object corresponding to the target account.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a block diagram illustrating an exemplary system architecture 100 to which exemplary embodiments of the present disclosure may be applied.
Fig. 2 is a flowchart illustrating a task processing method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a schematic diagram illustrating an order 300 according to an example embodiment of the present disclosure.
Fig. 4 is a block diagram illustrating a task processing device according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating an electronic device 500 according to an example embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The embodiments described in the following examples do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In this case, the expression "at least one of the items" in the present disclosure means a case where three types of parallel expressions "any one of the items", "a combination of any plural ones of the items", and "the entirety of the items" are included. For example, "include at least one of a and B" includes the following three cases in parallel: (1) comprises A; (2) comprises B; (3) including a and B. For another example, "at least one of the first step and the second step is performed", which means that the following three cases are juxtaposed: (1) executing the step one; (2) executing the step two; (3) and executing the step one and the step two.
In the related art, when the target account withdraws the target operation event (for example, applies for returning goods in an online transaction), compensation resources provided for the target account are not transferred, and at this time, the compensation resources are wasted, or the compensation resources are transferred in proportion according to the specific situation that the target account withdraws the target operation event, but the experience of an object corresponding to the target account is poor.
In order to avoid resource waste and give consideration to the experience of an object, the disclosure provides a task processing method, a device, an electronic device and a medium, specifically, when a target account requests to process at least one subtask in a task, firstly, judging whether the task continuously meets a preset compensation condition, if so, transferring the resource corresponding to the at least one subtask to the target account; if the preset compensation condition is not met any more, transferring part of resources from the resources corresponding to at least one subtask, and transferring the rest resources to the target account, so that the utilization rate of the resources can be improved under the condition of not influencing the experience of the object corresponding to the target account. Hereinafter, a task processing method, apparatus, electronic device, and medium according to exemplary embodiments of the present disclosure will be described in detail with reference to fig. 1 to 5.
It should be noted that, the data referred to in the present disclosure are data authorized by the user or fully authorized by each party.
Fig. 1 is a block diagram illustrating an exemplary system architecture 100 to which exemplary embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. The user may use the terminal devices 101, 102, 103 to interact with the server 105 over the network 104 to receive or send messages (e.g., for sending task processing requests or receiving task processing information), and so on. Various applications related to resource processing, such as a game APP, a shopping APP, or a live APP, may be installed on the terminal devices 101, 102, 103. The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and capable of resource processing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal device 101, 102, 103 is software, it may be installed in the electronic devices listed above, it may be implemented as a plurality of software or software modules (for example, to provide distributed services), or it may be implemented as a single software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for multimedia applications installed on the terminal devices 101, 102, 103. The background server can analyze and store the received data such as the task processing request.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
Fig. 2 is a flowchart illustrating a task processing method according to an exemplary embodiment of the present disclosure.
Referring to fig. 2, in step 201, in response to a request for processing at least one sub-task in a task, a first resource, a second resource, and a third resource are obtained, where the first resource is a total resource corresponding to the task when the task is generated, the second resource is a resource corresponding to the task when task compensation is triggered, and the third resource is an accumulated resource corresponding to both the processed sub-task and the at least one sub-task of the task.
Here, the task is a target operation event (e.g., purchasing a game prop, a video resource, traffic, goods, etc.) generated by the target account in a platform (e.g., a game platform, a video platform, a shopping platform, etc.), the task processing stops executing or revokes the target operation event (e.g., initiating a prop return application, a video resource return application, a goods return application, etc.) for the target account, and the task includes at least one subtask. The resources may be virtual resources that exist in the form of data in the network. Task compensation is the transfer of a preset resource from the total resource corresponding to the task.
In some embodiments, the task may be an order and the task process may be a resource return for the order. For example, fig. 3 is a schematic diagram illustrating an order 300 according to an exemplary embodiment of the present disclosure, and referring to fig. 3, when the task is an order, the order 300 may include a plurality of sub-orders 301, and a return of goods request may be initiated for one or more sub-orders 301 at a time, in consideration of convenience of payment. When responding to the received merchandise return request, the total order amount (i.e., the first resource) of the order 300, the order amount of the returned sub-order and the order amount of the currently to-be-returned sub-order (i.e., the third resource), and the threshold amount (i.e., the second resource) that the platform sets to be reached by the order 300 when triggering the resource compensation can be obtained. In a trading scenario, the platform typically provides a virtual resource or resource voucher having a certain denomination, and when the order amount of the order 300 reaches a threshold amount, the virtual resource or resource voucher is selected to cover a portion of the order amount. Certainly, when the total amount of the order reaches the threshold amount, a part of amount can be directly deducted from the total amount of the order, so as to avoid the loss of the target account caused by forgetting to use the virtual resource or the resource voucher.
In step 202, it is determined whether the task continuously satisfies the triggering condition of resource compensation according to the first resource, the second resource and the third resource.
According to the exemplary embodiment of the disclosure, the upper limit processing resource of the task may be determined according to the first resource and the second resource, and when the accumulated resource corresponding to the processed sub-task and the at least one currently-to-be-processed sub-task together is greater than the upper limit resource, it is determined that the task no longer satisfies the triggering condition of resource compensation. For example, in a scenario where a return of merchandise is made for order 300, the upper limit return amount (i.e., the upper limit resource) may be obtained by subtracting the total order amount from the threshold amount. When the accumulated return line is less than or equal to the upper limit return line, the total order line of the remaining sub-orders can still reach the threshold line, at this time, it is determined that the order 300 still meets the triggering condition of the resource compensation, otherwise, it is determined that the order 300 no longer meets the triggering condition of the resource compensation. Here, when the accumulated return amount is less than or equal to the upper limit return amount, the order amount of the at least one sub-order to be returned at this time may be returned to the target account, that is, under the condition that it is determined that the task continuously satisfies the trigger condition of task compensation, at least one sub-task is processed according to the resource corresponding to the at least one sub-task, so as to take account of the experience of the object corresponding to the target account to a certain extent.
In step 203, in a case that it is determined that the task no longer satisfies the triggering condition of the resource compensation, the resource transfer amount corresponding to the at least one subtask is obtained.
According to the exemplary embodiment of the disclosure, when the task no longer satisfies the triggering condition of the resource compensation, if the task is still processed according to the resource corresponding to the subtask, the compensation resource may be lost, and at this time, the resource transfer amount corresponding to the at least one subtask may be obtained through the first resource, the second resource, the third resource, and the preset resource. Specifically, a first difference value of the first resource and the third resource may be obtained first, and a second difference value of the second resource and the first difference value may be obtained; and finally, the total resource transfer amount and the historical resource transfer amount corresponding to the sub-tasks which are processed in the tasks are differentiated to obtain the resource transfer amount corresponding to the at least one sub-task. For example, in a scenario of returning to the order 300, when the order 300 no longer satisfies the triggering condition of resource compensation, if the order quota of the sub-order is continuously returned to the target account, the platform cannot transfer the compensation resource provided to the order 300, which results in resource waste. At this time, a first difference between the total order amount of the order 300 and the accumulated total returned amount is obtained, and a second difference between the threshold amount and the first difference is obtained; then, the second difference value and the threshold amount are subjected to quotient calculation, and the quotient calculation result and the amount corresponding to the compensation resource are subjected to product calculation to obtain the total transfer amount for the order 300, and the total transfer amount is subtracted from the transferred amount corresponding to the returned sub-order to obtain the transfer amount corresponding to the currently to-be-returned sub-order (i.e., the resource transfer amount corresponding to the at least one sub-task).
In step 204, the at least one subtask is processed according to the resource corresponding to the at least one subtask and the resource transfer amount. Specifically, the resource transfer amount may be transferred from the resource corresponding to the at least one subtask, and the remaining resource may be delivered to the target account, for example, in a scenario of returning the item for the order 300, after obtaining the amount to be transferred of the to-be-returned sub order, the amount obtained by deducting the amount to be transferred from the order amount of the to-be-returned sub order is returned to the target account.
In order to clearly show the scheme of the present disclosure, the scheme of the present disclosure is described below with reference to a specific implementation scenario example.
In a trading scene, the first resource is an order total amount, the second resource is a threshold amount which needs to be reached when an order triggers resource compensation, the third resource is an accumulated amount of an order amount of a returned sub-order and an order amount of a current to-be-returned sub-order, the preset resource is an amount withholding ticket provided by the platform, the threshold amount set by the platform is 1000, and the amount withholding ticket is 100. Currently, the total amount of orders is 1200, there are 4 sub-orders A, B, C, D in the order, each sub-order may include multiple commodities, wherein the order amount of each sub-order is 300, and the upper limit return amount (i.e. the upper limit processing resources) of the order is 1200-1000-200.
Firstly, initiating a return request for a sub-order A, wherein the return amount is 200 and is equal to the upper limit return amount, so that the triggering condition of resource compensation is still met, and the target account is directly returned to 200;
when the return request to the order A is continuously initiated, and the return limit is 100, the accumulated return limit is 300, which is larger than the upper limit return limit, and the triggering condition of resource compensation is no longer satisfied, at this time, the total transfer limit of the order to be returned is (1000- (1200-300)). times 100/1000 is 10, and the current limit returned to the target account is 100-10-90;
when a return request for the order B is initiated again, and the return amount is 300, the accumulated return amount is 600, and the triggering condition of resource compensation is not met, at this time, the total transfer amount of the order to be returned is (1000- (1200-600)). 100/1000-40, which can be calculated by the formula, then the current transfer amount is 40-10-30, and the amount returned to the target account is 300-30-270;
by analogy, when the return requests for the order C and the order D are initiated again, the amount returned to the target account is 270 for the order C and the order D, the experience of the object corresponding to the target account is guaranteed, the provided amount withholding ticket can be transferred, the transferred amount withholding ticket can be provided for other orders for use for the second time, and the transfer efficiency and the utilization rate of the amount withholding ticket are improved.
In another scenario of task processing, a task to be processed includes multiple subtasks, and each subtask corresponds to a certain virtual resource. At this time, the first resource is the total virtual resource quantity of the task, the second resource is the virtual resource quantity which needs to be reached when triggering resource compensation, the third resource is the accumulated virtual resource quantity of the processed sub-task and the virtual resource quantity of the current sub-task to be processed, the preset resource is the deduction virtual resource quantity configured by the platform as the target account, the total virtual resource quantity of the task is 150, and the triggering condition of the resource compensation set by the platform is that the total virtual resource quantity of the task reaches 100 and the deduction virtual resource quantity is 10. The task comprises 5 subtasks, and the number of virtual resources of each subtask is 30. The upper limit delivery virtual resource amount of the task is 150-.
When the first subtask is processed, the task still meets the triggering condition of resource compensation, and the quantity of the virtual resources transferred to the target account is 30; when the second subtask is processed, the number of virtual resources to be transferred is accumulated twice and is 60, and the triggering condition of resource compensation is no longer met, the number of virtual resources to be transferred is (100- (150-60)). 10/100 is 1, and the number of virtual resources to be handed to the target account is 30-1. 29. By analogy, after that, every time one subtask is processed, the number of transferable virtual resources is 3, and the number of virtual resources handed to the target account is 27. The method and the device have the advantages that the experience of the object corresponding to the target account is guaranteed, the configured deduction virtual resources can be transferred, and the transfer efficiency and the utilization rate of the virtual resources are improved.
Fig. 4 is a block diagram illustrating a task processing device according to an exemplary embodiment of the present disclosure.
Referring to fig. 4, a task processing device 400 according to an exemplary embodiment of the present disclosure may include a first acquisition unit 401, a condition determination unit 402, a second acquisition unit 403, and a first processing unit 404.
The first obtaining unit 401 may obtain, in response to a request for processing at least one sub-task in a task, a first resource, a second resource, and a third resource, where the first resource is a total resource corresponding to the task when the task is generated, the second resource is a resource corresponding to the task when resource compensation is triggered, and the third resource is an accumulated resource corresponding to both the sub-task that has been processed in the task and the at least one sub-task.
The condition determining unit 402 may determine whether the task continuously satisfies the triggering condition for task compensation according to the first resource, the second resource, and the third resource.
According to an exemplary embodiment of the disclosure, the condition determining unit 402 may determine an upper limit processing resource of the task according to the first resource and the second resource, and when an accumulated resource corresponding to the processed sub-task and the at least one sub-task together is greater than the upper limit processing resource, determine that the task no longer satisfies the triggering condition for task compensation.
According to an exemplary embodiment of the disclosure, task compensation is to transfer a preset resource from a total resource corresponding to a task.
The second obtaining unit 403 may obtain the resource transfer amount corresponding to at least one sub-task when it is determined that the task no longer satisfies the triggering condition for task compensation.
According to an exemplary embodiment of the disclosure, the second obtaining unit 403 may obtain the resource transfer amount corresponding to the at least one sub task through the first resource, the second resource, the third resource and the preset resource, specifically, first obtain a first difference between the first resource and the third resource, obtain a second difference between the second resource and the first difference, then perform a quotient on the second difference and the second resource, and perform a product on the quotient result and the preset resource to obtain the resource transfer amount corresponding to the at least one sub task.
The first processing unit 404 may process the at least one sub-task according to the resource corresponding to the at least one sub-task and the resource transfer amount.
According to an exemplary embodiment of the disclosure, the first processing unit 404 may shift the resource shift amount from the resource corresponding to the at least one sub-task to process the at least one sub-task, and in addition, the task processing apparatus 400 may further include a second processing unit 405, and the second processing unit 405 may process the at least one sub-task according to the resource corresponding to the at least one sub-task when it is determined that the task continuously satisfies the trigger condition of task compensation.
Fig. 5 is a block diagram of an electronic device 500 according to an example embodiment of the present disclosure.
Referring to fig. 5, the electronic device 500 includes at least one memory 501 and at least one processor 502, the at least one memory 501 having stored therein a set of computer-executable instructions that, when executed by the at least one processor 502, perform a task processing method according to an exemplary embodiment of the present disclosure.
By way of example, the electronic device 500 may be a PC computer, tablet device, personal digital assistant, smartphone, or other device capable of executing the set of instructions described above. Here, the electronic device 500 need not be a single electronic device, but can be any collection of devices or circuits that can execute the above instructions (or sets of instructions) individually or in combination. The electronic device 500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with local or remote (e.g., via wireless transmission).
In the electronic device 500, the processor 502 may include a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a programmable logic device, a special-purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
The processor 502 may execute instructions or code stored in the memory 501, wherein the memory 501 may also store data. The instructions and data may also be transmitted or received over a network via a network interface device, which may employ any known transmission protocol.
The memory 501 may be integrated with the processor 502, for example, by having RAM or flash memory disposed within an integrated circuit microprocessor or the like. Further, memory 501 may comprise a stand-alone device, such as an external disk drive, storage array, or any other storage device usable by a database system. The memory 501 and the processor 502 may be operatively coupled or may communicate with each other, e.g., through I/O ports, network connections, etc., such that the processor 502 is able to read files stored in the memory.
In addition, the electronic device 500 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 500 may be connected to each other via a bus and/or a network.
According to an exemplary embodiment of the present disclosure, there may also be provided a computer-readable storage medium storing instructions, which when executed by at least one processor, cause the at least one processor to perform a task processing method according to the present disclosure. Examples of the computer-readable storage medium herein include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD + R, CD-RW, CD + RW, DVD-ROM, DVD-R, DVD + R, DVD-RW, DVD + RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or compact disc memory, Hard Disk Drive (HDD), solid-state drive (SSD), card-type memory (such as a multimedia card, a Secure Digital (SD) card or a extreme digital (XD) card), magnetic tape, a floppy disk, a magneto-optical data storage device, an optical data storage device, a hard disk, a magnetic tape, a magneto-optical data storage device, a hard disk, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, A solid state disk, and any other device configured to store and provide a computer program and any associated data, data files, and data structures to a processor or computer in a non-transitory manner such that the processor or computer can execute the computer program. The computer program in the computer-readable storage medium described above can be run in an environment deployed in a computer apparatus, such as a client, a host, a proxy device, a server, and the like, and further, in one example, the computer program and any associated data, data files, and data structures are distributed across a networked computer system such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by one or more processors or computers.
According to an exemplary embodiment of the present disclosure, there may also be provided a computer program product in which instructions are executable by a processor of a computer device to perform a task processing method according to an exemplary embodiment of the present disclosure.
According to the task processing method, the task processing device, the electronic equipment and the medium, when a target account requests to process at least one subtask in a task, whether the task continuously meets a trigger condition of task compensation is judged, and if the task continuously meets the trigger condition of task compensation, resources corresponding to the at least one subtask are transferred to the target account; if the triggering condition of task compensation is not met, transferring part of resources from the resources corresponding to at least one subtask, and transferring the rest resources to the target account, so that the utilization rate of the resources can be improved under the condition of not influencing the experience of the object corresponding to the target account.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A task processing method, comprising:
responding to a request for processing at least one subtask in a task, and acquiring a first resource, a second resource and a third resource, wherein the first resource is a total resource corresponding to the task when the task is generated, the second resource is a resource corresponding to the task when task compensation is triggered, and the third resource is an accumulated resource corresponding to both the processed subtask in the task and the at least one subtask;
judging whether the task continuously meets the triggering condition of task compensation according to the first resource, the second resource and the third resource;
under the condition that the task is determined to no longer meet the triggering condition of the task compensation, acquiring a resource transfer amount corresponding to the at least one subtask;
and processing the at least one subtask according to the resource corresponding to the at least one subtask and the resource transfer amount.
2. The task processing method according to claim 1, further comprising:
and under the condition that the task continuously meets the triggering condition of the task compensation, processing the at least one subtask according to the resource corresponding to the at least one subtask.
3. The task processing method according to claim 1, wherein the determining whether the task continuously satisfies the triggering condition for task compensation according to the first resource, the second resource, and the third resource includes:
determining an upper limit processing resource of the task according to the first resource and the second resource;
and when the accumulated resource is larger than the upper limit processing resource, determining that the task no longer meets the triggering condition of task compensation.
4. The task processing method according to claim 1, wherein the task compensation is a transfer of a preset resource from a total resource corresponding to the task.
5. The task processing method according to claim 4, wherein the obtaining of the resource transfer amount corresponding to the at least one subtask comprises:
and acquiring the resource transfer amount corresponding to the at least one subtask through the first resource, the second resource, the third resource and the preset resource.
6. The task processing method according to claim 5, wherein the obtaining of the resource transfer amount corresponding to the at least one subtask through the first resource, the second resource, the third resource, and the preset resource includes:
acquiring a first difference value between the first resource and the third resource, and acquiring a second difference value between the second resource and the first difference value;
performing quotient calculation on the second difference value and the second resource, and performing product calculation on a quotient calculation result and the preset resource to obtain a total resource transfer amount corresponding to the task;
and obtaining the resource transfer amount corresponding to at least one subtask by making a difference between the total resource transfer amount and the historical resource transfer amount corresponding to the subtask which is processed in the task.
7. A task processing apparatus, comprising:
a first acquisition unit configured to: responding to a request for processing at least one subtask in a task, and acquiring a first resource, a second resource and a third resource, wherein the first resource is a total resource corresponding to the task when the task is generated, the second resource is a resource corresponding to the task when the task triggers pre-task compensation, and the third resource is an accumulated resource corresponding to the processed subtask and the at least one subtask in the task;
a condition determination unit configured to: judging whether the task continuously meets the triggering condition of task compensation according to the first resource, the second resource and the third resource;
a second acquisition unit configured to: under the condition that the task is determined to no longer meet the triggering condition of the task compensation, acquiring a resource transfer amount corresponding to the at least one subtask;
a first processing unit configured to: and processing the at least one subtask according to the resource corresponding to the at least one subtask and the resource transfer amount.
8. An electronic device, comprising:
at least one processor;
at least one memory storing computer-executable instructions,
wherein the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to perform the task processing method of any of claims 1 to 6.
9. A computer-readable storage medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform a task processing method as claimed in any one of claims 1 to 6.
10. A computer program product comprising computer instructions, characterized in that the computer instructions, when executed by at least one processor, implement a task processing method according to any one of claims 1 to 6.
CN202111602029.3A 2021-12-24 2021-12-24 Task processing method and device, electronic equipment and medium Pending CN114331347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111602029.3A CN114331347A (en) 2021-12-24 2021-12-24 Task processing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111602029.3A CN114331347A (en) 2021-12-24 2021-12-24 Task processing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114331347A true CN114331347A (en) 2022-04-12

Family

ID=81012622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111602029.3A Pending CN114331347A (en) 2021-12-24 2021-12-24 Task processing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114331347A (en)

Similar Documents

Publication Publication Date Title
US10884810B1 (en) Workload management using blockchain-based transaction deferrals
RU2591651C2 (en) Method and system for programming service initialisation
US20190317888A1 (en) Application testing for security vulnerabilities
CN113034233B (en) Method, apparatus, medium and program product for allocating resources in a reading application
US20120323821A1 (en) Methods for billing for data storage in a tiered data storage system
US10984474B1 (en) Systems and methods for IT supply chain management on a distributed platform
US20160034883A1 (en) Multi-destination routing of transactions
CN113765820A (en) Token bucket-based current limiting method, token bucket-based current limiting device, token bucket-based computing equipment and token bucket-based current limiting medium
US20220198538A1 (en) Systems and methods for controlling access to resources
CN110928594A (en) Service development method and platform
US20170249697A1 (en) System and method for machine learning based line assignment
CN114331347A (en) Task processing method and device, electronic equipment and medium
US20170193534A1 (en) System and method for transaction volume determination
CN108876339B (en) E-pet transaction method and device based on certificate
US20170161713A1 (en) Selecting an electronic payment account to maximize rewards
CN114327887A (en) Resource processing method, device, electronic equipment and medium
CN114022136A (en) Method, equipment and system for computing power transaction
US8682787B1 (en) Trade-in program with advance payment
US9232388B2 (en) Initiation of wireless service
CN115204918A (en) Reward resource distribution method, device, equipment and medium
CN111523927A (en) Resource sending method, device, equipment and storage medium
CN107967549B (en) Multi-process task processing device and method
KR101709594B1 (en) Method for managing online shopping mall through server
CN110827009B (en) Fund transfer method and device based on account balance limit
US20240135281A1 (en) Information technology automation based on job return on investment

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