CN117785413A - Task forwarding method, device, equipment and storage medium - Google Patents

Task forwarding method, device, equipment and storage medium Download PDF

Info

Publication number
CN117785413A
CN117785413A CN202311808494.1A CN202311808494A CN117785413A CN 117785413 A CN117785413 A CN 117785413A CN 202311808494 A CN202311808494 A CN 202311808494A CN 117785413 A CN117785413 A CN 117785413A
Authority
CN
China
Prior art keywords
task
forwarding
target access
target
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
CN202311808494.1A
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.)
Daguan Intelligent Shenzhen Co ltd
Original Assignee
Daguan Intelligent Shenzhen 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 Daguan Intelligent Shenzhen Co ltd filed Critical Daguan Intelligent Shenzhen Co ltd
Priority to CN202311808494.1A priority Critical patent/CN117785413A/en
Publication of CN117785413A publication Critical patent/CN117785413A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a task forwarding method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a target access task of a transmitting end; analyzing the target access task and determining task information of the target access task; and matching the task information of the target access task with a preset forwarding condition, and forwarding the target access task according to a matching result, wherein the preset forwarding condition comprises a limit condition and a type condition, and the limit condition is used for characterizing the task limit requirement for completing the target access task. The technical scheme provided by the invention can solve the problem that a single user uploads a plurality of tasks and occupies a large amount of system resources, and improves the forwarding and completion efficiency of the tasks.

Description

Task forwarding method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a task forwarding method, device, equipment, and storage medium.
Background
With the development of artificial intelligence technology, many enterprises now purchase multiple intelligent systems to perform intelligent efficiency improvement on work, including scanned text recognition, scanned form recognition, text named entity extraction, document comparison, financial report auditing, intelligent writing and the like. These intelligent services require a large amount of computing resources and therefore occupy a large amount of system resources, such as interface resources or traffic resources, while processing a large number of tasks results in a long time.
The prior art has the problems that a single user continuously creates a large number of tasks, the computing resources or the flow resources of a server are occupied, the tasks created by subsequent users are forced to wait for a long time, and important tasks can not be executed, so that the task completion efficiency of the users is low.
Disclosure of Invention
The embodiment of the invention provides a task forwarding method, a device, equipment and a storage medium, which can solve the problem that a single user occupies system resources for a long time and improve task forwarding efficiency and completion efficiency.
In a first aspect, an embodiment of the present invention provides a task forwarding method, including:
acquiring a target access task of a transmitting end;
analyzing the target access task and determining task information of the target access task;
and matching the task information of the target access task with a preset forwarding condition, and forwarding the target access task according to a matching result, wherein the preset forwarding condition comprises a limit condition and a type condition, and the limit condition is used for characterizing the task limit requirement for completing the target access task.
In a second aspect, an embodiment of the present invention provides a task forwarding device, including:
the task acquisition module is used for acquiring a target access task of the transmitting end;
the task analysis module is used for analyzing the target access task and determining task information of the target access task;
and the task forwarding module is used for matching the task information of the target access task with a preset forwarding condition and forwarding the target access task according to a matching result, wherein the preset forwarding condition comprises a limit condition and a type condition, and the limit condition is used for representing the task limit requirement for completing the target access task.
In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the task forwarding method according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium comprising:
the computer readable storage medium stores computer instructions for causing a processor to implement the task forwarding method according to any one of the embodiments of the present invention when executed.
The embodiment of the invention provides a task forwarding method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a target access task of a transmitting end, and further determining task information of the target access task by analyzing the target access task; and matching the task information of the target access task with a preset forwarding condition, and forwarding the target access task according to a matching result. The method is characterized in that task information of the target access task is matched with the limit condition and the type condition, so that a forwarding method corresponding to the target access task is determined, specifically, the target access task can be forwarded to a corresponding system according to the task limit and the task type, so that the number of tasks forwarded by a user is guaranteed to be limited, namely, the occupied amount of system resources is limited, and further, the system resources occupied by a single user for a long time through uploading a large number of access tasks are reduced, and further, the task completion efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a task forwarding method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a task forwarding method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a task forwarding method according to a third embodiment of the present invention;
FIG. 3a is a schematic flow chart of updating a task record table according to a polling task according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a task forwarding device according to a fourth embodiment of the present invention;
fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a task forwarding method according to a first embodiment of the present invention, where the method may be applied to task forwarding, and prevent a situation that a single user occupies system resources for a long time, for example, forwarding a task through a server, and the method may be performed by a task forwarding device, where the device may be implemented in a hardware and/or software form and configured in various computers or servers.
Step 110, obtaining a target access task of the transmitting end.
The sending end can characterize various applications, systems, sending ports or sending users and the like for sending access tasks, the target access task is an access task or an access request and the like, the access task can be forwarded to a corresponding system and completed through a corresponding module in the system, and the task can be specifically text recognition, scanned form recognition, text named entity extraction, document comparison, financial report verification or intelligent writing and the like.
And 120, analyzing the target access task and determining task information of the target access task.
Optionally, the task information includes: the method comprises the steps of calculating the task amount required by completing a target access task, wherein the task type is a creation type or a view type.
The user identifier may represent information of a corresponding user of the transmitting end, such as a user account number, a user name, and the like; the number of files is used for calculating the task amount required for completing the target access task, and the target access task is exemplified by uploading 10 files to a specified system, so that 10 task amounts are required for completing the target access task; the target access task is to compare the difference between 2 files, and then 1 task unit is needed to complete the target access task. Specifically, different line consumption can be preset for the access tasks of different work contents, and if the ratio of the line consumption of the uploading task to the number of files is 1:1; the ratio of the file comparison task amount consumption to the file number is 1:2, and the embodiment of the invention only enumerates the two preset modes, and the embodiment does not limit the preset consumption ratio or the preset amount required to be consumed by different tasks.
The forwarding path of the target access task may be understood as a path required when forwarding the target access task to a required destination system or a corresponding functional module, where the forwarding path may include a forwarding address, a forwarding IP, a forwarding interface, or a line, and the target access task may be correctly forwarded to the corresponding destination system or functional module through the forwarding path of the target access task.
The creation type can be understood as that when the target access task is the creation type, the target access task is indicated to need to create a new task, such as an uploading task or a file comparison task, so as to consume or occupy system resources, the uploading task occupies system interface resources, and the comparison task occupies system computing resources, so that the creation type is used for representing the target access task which is preset to consume or occupy system resources; the view type can be understood as that when the target access task is the view type, it indicates that the target access task is to view the task progress or the task result of the corresponding system, and the like, without consuming system resources, so that the view task is used for characterizing the target access task which is preset and does not need to consume or occupy system resources, and further, the target access task of the view type can also be used for viewing the task progress state of a certain task.
Specifically, the target access task can be forwarded in a corresponding form according to the task information content.
And 130, matching task information of the target access task with a preset forwarding condition, and forwarding the target access task according to a matching result, wherein the preset forwarding condition comprises a limit condition and a type condition, and the limit condition is used for representing task limit requirements for completing the target access task.
The preset forwarding conditions are used for determining a specific forwarding mode of the target access task according to task information of the target access task, the preset forwarding conditions comprise a limit condition and a type condition, the limit condition is used for characterizing task limit requirements for completing the target access task, a part of target access tasks need to consume a certain amount of system resources, such as creating type target access tasks, therefore, the task limit is used for characterizing resource limit required for completing the target access task, the total amount of the task limit of a user can be initially preset, corresponding deduction is carried out on the forwarding target access task according to the task information, if the residual task limit of a user at a sending end is insufficient, limit resources required by the target access task cannot be met, further, the required system resources can be uploading channel resources/comparison computing resources required by a file uploading task or a file comparison task and the like.
Optionally, under the condition that the task type of the target access task is a creation type, determining a target task amount required for completing the target access task according to the number of files of the target access task, and querying a residual task amount corresponding to the user identification in a preset forwarding log according to the user identification of a transmitting end of the target access task;
and if the residual task amount is larger than the target task amount, forwarding the target access task according to a forwarding path of the target access task, and updating the residual task amount of the transmitting end in the preset forwarding log according to the target task amount.
The method comprises the steps of presetting a forwarding log, recording the consumption relation of the line of different access tasks, the residual line of different system modules corresponding to different users, historical forwarding records of different users and the like. Because different users have a certain limit on the use of system resources, the remaining task amount is used for characterizing the available task amount currently remaining for the user, and the remaining task amount is consumed when forwarding the creation type target access task.
Specifically, when the task type of the target access task is the creation type, the task amount required to be consumed by the task in this time, namely the target task amount, can be determined through the file quantity calculation in the task information; determining the address of a target system or a functional module to be forwarded through a forwarding path of a target access task; and determining the user identification of the transmitting end through the task information, and further determining the residual task amount of the user by inquiring the user identification in a preset forwarding log. Further, if the remaining task amount is greater than the target task amount, the forwarding request may be forwarded according to the forwarding path of the target access task, and the remaining task amount of the user in the preset forwarding log may be updated, and specifically, a difference between the remaining task amount and the target task amount may be used as the updated remaining task amount.
Optionally, if the remaining task amount is smaller than the target task amount, suspending forwarding the target access task, and waiting for the remaining task amount to be larger than the target task amount, and continuing forwarding.
Specifically, if the residual task amount is smaller and the requirement of the target task amount cannot be met, the user is indicated to be likely to consume the task amount continuously for multiple times, that is, a great amount of system resources are occupied, in order to prevent the follow-up user from being unable to complete the access task due to the occupation of the system resources by the user, the forwarding task of the user can be temporarily stopped, and the forwarding is continued after the residual task amount is recovered.
Optionally, if the task type of the target access task is the view type, forwarding the target access task according to a forwarding path of the target access task.
Because the task is checked, system resources in the corresponding system function module are not required to be consumed, and therefore, the target access task of the checking type can be directly forwarded according to the forwarding path.
The embodiment of the invention provides a task forwarding method, which comprises the steps of obtaining a target access task of a sending end, analyzing the target access task, determining task information of the target access task, matching the task information of the target access task with preset forwarding conditions, and forwarding the target access task according to a matching result. Specifically, when the task type of the target access task is the creation type, the required target task amount for forwarding the task at this time can be determined through the file quantity calculation in the task information; determining the address of a target system or a functional module to be forwarded through a forwarding path of a target access task; and determining a user identification of a transmitting end through task information, further determining the residual task amount of the user by inquiring the user identification in a preset forwarding log, and further, if the residual task amount is larger than a target task amount, indicating that the forwarding limit condition is met, forwarding the target access task according to a forwarding path of the target access task. The method provided by the embodiment of the invention determines whether the user creates a large number of tasks in a short time by judging the residual task amount of the user at the transmitting end, occupies a large number of system resources, pauses the forwarding of the access task when the residual task amount of the user is insufficient, further ensures the use of the system resources by the subsequent user, and improves the completion efficiency of the task.
Example two
Fig. 2 is a flowchart of a task forwarding method according to a second embodiment of the present invention, where the embodiment is optimized based on the foregoing embodiments, and may be applied to the foregoing embodiments.
Step 210, acquiring a target access task of a transmitting end;
step 220, analyzing the target access task and determining task information of the target access task;
step 230, matching the task information of the target access task with a preset forwarding condition, and forwarding the target access task according to a matching result, wherein the preset forwarding condition comprises a limit condition and a type condition, and the limit condition is used for characterizing a task limit requirement for completing the target access task.
Step 240, obtaining a target forwarding response corresponding to the target access task, and updating a preset forwarding log according to the target forwarding response and task information of the target access task.
The target forwarding response is a response returned after the target access task is forwarded, and the response content comprises the completion condition or the completion result of the work task corresponding to the target access task, such as that the target access task has been successfully created, the target access task has not been completed, or the target access task has been completed.
Specifically, when a certain target access task is forwarded, a certain task amount of a user is consumed, and a certain time is required for completing the target access task, so that the task amount of the user can be recycled, the residual task amount of the user needs to be updated in time, specifically, whether the target access task is completed or not is judged, and if the target access task is completed, the sum of the task amount occupied by the completed task and the current residual task amount is used as the updated residual task amount.
Optionally, in the task forwarding method of the embodiment of the present invention, updating the remaining task unit of the user by looking up the type of the target access task includes:
if the type of the target access task is a view type, that is, the target access task is a view of the progress status of a task, the content of the corresponding target forwarding response may be the task execution status of the viewed task. If the checked task is executed, all information of the user can be determined in a preset forwarding log through the user identification of the target access task, and then the sum of the task amount occupied by the checked task and the residual task amount of the user is used as the updated residual task amount.
Optionally, the task forwarding method further includes updating the remaining task unit of the user by polling the view task, specifically:
querying a preset forwarding log, determining an incomplete task in the preset forwarding log, determining the incomplete task as a target checking task, and determining a forwarding path and a user identifier of the target checking task; generating a polling check task with a task type of check type, and forwarding the polling check task according to a forwarding path of the target check task; and receiving a polling check result of the polling check task, and if the polling check result is characterized in that the target check task is completed, updating the residual task amount corresponding to the user identification of the target check task according to the task amount occupied by the target check task, wherein the polling check result is used for representing the state of the task.
The polling check task can be automatically generated periodically through the system and used for checking the state of the task which is not completed, such as that the task is not completed or the task is completed.
Specifically, because the transmitting end user may not be able to transmit the target access task of the view type for various reasons, the task state of the viewed task cannot be actively determined, so that the user residual task amount cannot be updated in time, so that in order to ensure the user residual task amount to be updated in time, the polling view task can be automatically generated by the system, and then the residual task amount is updated according to the polling view result, specifically: the task completion status of the target checking task is corresponding to the task execution status of the target checking task, and when the target checking task is completed, the residual task amount corresponding to the user identification of the target checking task can be updated according to the task amount occupied by the target checking task.
According to the embodiment of the invention, the target access task can be correspondingly forwarded according to the task information of the target access task, meanwhile, the target forwarding response corresponding to the target access task can be obtained, the preset forwarding log can be updated according to the target forwarding response and the task information of the target access task, specifically, the progress state and the completion result of the target access task can be determined according to the target forwarding response, further, in order to update the residual task amount of a user in real time, the incomplete task in the preset forwarding log can be determined by inquiring the preset forwarding log, the incomplete task is determined to be the target checking task, and the forwarding path and the user identification of the target checking task are determined; generating a polling check task with a task type of check type, and forwarding the polling check task according to a forwarding path of the target check task; and receiving a polling check result of the polling check task, and if the polling check result is characterized in that the target check task is completed, updating the residual task amount corresponding to the user identification of the target check task according to the task amount occupied by the target check task. The method of the embodiment of the invention can improve the efficiency of task forwarding, prevent the preset task quota, prevent a single user from occupying system resources for a long time, further automatically update the state of the task by periodically generating the polling check task, and immediately update the residual task quota of the user, thereby improving the working efficiency.
Example III
Fig. 3 is a flowchart of a task forwarding method provided in the third embodiment of the present invention, which specifically defines a specific manner of task forwarding, and may be combined with the foregoing embodiments, as shown in fig. 3, including:
step 301, intercepting a target access task.
Specifically, the forwarding task sent by the user can be received by configuring rules at unified inlets of various systems.
And 302, performing system analysis on the target access task.
And 303, analyzing the file of the target access task.
And 304, carrying out user analysis on the target access task.
And 305, carrying out module analysis and type analysis on the target access task.
Specifically, a system and a corresponding forwarding path for forwarding the target access task can be determined through system analysis, file content and number of files in the target access task can be determined through file analysis, user identification such as a user name and a user account number for sending the target access task can be determined through user analysis, and a functional module required for completing the target access task can be determined through module analysis, such as a file uploading module, a file comparison module and the like; type parsing of the target access task may determine the type of target access task, such as a creation type or a view type.
Step 306, whether the task requires a quota.
Specifically, if the target access task requires a quota, step 307 is executed, otherwise step 310 is executed to forward the task.
Specifically, the user who designates the task to be sent, the system that the task needs to send, and the corresponding forwarding path may be determined by analyzing the target access task, if the target access task is not limited, the task that is not limited may be directly forwarded according to the forwarding path, and if the target access task is limited, step 307 is executed.
Step 307, whether the task type is a creation type.
Specifically, if the type of the target access task is the creation type, step 308 is executed, otherwise step 310 is executed.
Specifically, if the type of the target access task is the creation type, it can be considered that the completion of the target access task needs to occupy a certain system resource, namely, occupy a certain task amount, then it needs to be subjected to amount analysis, and the remaining task amount of the sending user of the target access task is determined, otherwise, the target access task is considered as the viewing type, and the system resource is not required to be occupied and is directly forwarded, wherein the system resource can be a channel resource required by uploading a file, a computing resource required by a comparison file, and the like.
Step 308, analyzing the quota.
Step 309, deducting the credit.
Specifically, if the type of the target access task is the creation type, the remaining task amount of the user can be determined in the task record table according to the user identification for sending the target access task, further, the task amount required by the task is determined according to the number of files of the target access task, and further, the remaining task amount of the user in the task record table is deducted from the task amount required for completing the target access task.
Step 310, forwarding the task.
Specifically, forwarding the target access task to a functional module in the corresponding system according to the forwarding path of the target access task.
Step 311, creating a task record.
Step 312, update task record.
Specifically, if the sending user of the target access task is the first sending user, a task record of the sending user can be created in the task record, and if the task record of the user already exists, the task record table can be updated according to the task information of the target access task and the target access response of the target access task.
Further, fig. 3a is a schematic flow chart of updating a task record table according to a polling task, specifically, a task record table may be used to determine an incomplete task in the task record table, and then a polling check task of a check type may be generated, and then the polling check task may be forwarded to a corresponding system according to a forwarding path of the incomplete task in the task record table, and the task record table may be updated according to a received polling check response, specifically, if the checked task is completed, a sum of a task amount occupied by the checked task and a remaining task amount of a user may be used as an updated remaining task amount.
The embodiment of the invention provides a task forwarding method, which can analyze a target access task by acquiring the target access task, further analyze the target access task, determine task information of the target access task, forward the target access task according to the task information of the target access task, specifically, if the target access task is of a creation type, deduct a required task amount for completing the target access task from the residual task amount of a user, and forward the target access task according to a forwarding path of the target access task. The task forwarding method provided by the invention can ensure that the number of the tasks forwarded by the user is limited, namely the occupied amount of the system resources is limited, so that the system resources are occupied for a long time by a single user through uploading a large number of access tasks, and further the task forwarding and completing efficiency is improved.
Example IV
Fig. 4 is a schematic structural diagram of a task forwarding device according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus includes: task acquisition module 410, task parsing module 420 and task forwarding module 430.
A task obtaining module 410, configured to obtain a target access task of a sender;
the task analysis module 420 is configured to analyze the target access task and determine task information of the target access task;
the task forwarding module 430 is configured to match task information of the target access task with a preset forwarding condition, and forward the target access task according to a matching result, where the preset forwarding condition includes a quota condition and a type condition, and the quota condition is used to characterize a task quota requirement for completing the target access task.
The embodiment provides a task forwarding device, which can execute any task forwarding method in the embodiment of the invention, and the method comprises the following steps: acquiring a target access task of a transmitting end, and further determining task information of the target access task by analyzing the target access task; and matching the task information of the target access task with a preset forwarding condition, and forwarding the target access task according to a matching result. The method is characterized in that task information of the target access task is matched with the limit condition and the type condition, so that a forwarding method corresponding to the target access task is determined, specifically, the target access task can be forwarded to a corresponding system according to the task limit and the task type, so that a certain limit on the number of tasks forwarded by a user is ensured, namely, the occupied amount of system resources is limited, further, the system resources occupied by a single user for a long time through uploading a large number of access tasks are reduced, and further, the task forwarding and completing efficiency is improved.
Optionally, the task information includes:
the method comprises the steps of calculating the task amount required by completing a target access task, wherein the task type is a creation type or a view type.
Optionally, the task forwarding module 430 includes:
the residual task amount acquisition unit is used for determining a target task amount required for completing the target access task according to the number of files of the target access task under the condition that the task type of the target access task is a creation type, and inquiring a residual task amount corresponding to the user identification in a preset forwarding log according to the user identification of a transmitting end of the target access task;
and the first forwarding unit is used for forwarding the target access task according to a forwarding path of the target access task if the residual task amount is larger than the target task amount, and updating the residual task amount of the transmitting end in the preset forwarding log according to the target task amount.
The task forwarding module 430 further includes:
and the second forwarding unit is used for suspending forwarding the target access task if the residual task amount is smaller than the target task amount, and continuing forwarding when the residual task amount is larger than the target task amount.
The device of the embodiment of the invention further comprises:
and the view type forwarding module is used for forwarding the target access task according to the forwarding path of the target access task if the task type of the target access task is the view type.
And the response receiving unit is used for acquiring the target forwarding response corresponding to the target access task and updating a preset forwarding log according to the target forwarding response and the task information of the target access task.
The device of the embodiment of the invention also comprises a polling module, which comprises:
query unit: the method comprises the steps of inquiring a preset forwarding log, determining incomplete tasks in the preset forwarding log, determining the incomplete tasks as target checking tasks, and determining forwarding paths and user identifications of the target checking tasks;
the generating unit is used for generating a polling check task with a task type of check type and forwarding the polling check task according to a forwarding path of the target check task;
the receiving unit is used for receiving a polling check result of the polling check task, if the polling check result is characterized in that the target check task is completed, the residual task line corresponding to the user identification of the target check task is updated according to the task line occupied by the target check task, wherein the polling check result is used for representing the state of the task.
The task forwarding device provided by the embodiment of the invention can execute the task forwarding method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the task forwarding method provided by embodiments of the present invention.
In some embodiments, the task forwarding method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the task forwarding method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the task forwarding method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for forwarding tasks, comprising:
acquiring a target access task of a transmitting end;
analyzing the target access task and determining task information of the target access task;
and matching the task information of the target access task with a preset forwarding condition, and forwarding the target access task according to a matching result, wherein the preset forwarding condition comprises a limit condition and a type condition, and the limit condition is used for characterizing the task limit requirement for completing the target access task.
2. The method of claim 1, wherein the task information comprises:
the method comprises the steps of calculating the task amount required by completing a target access task, wherein the task type is a creation type or a view type.
3. The method according to claim 2, wherein the matching the task information of the target access task with a preset forwarding condition, forwarding the target access task according to the matching result, includes:
under the condition that the task type of the target access task is the creation type, determining a target task amount required for completing the target access task according to the number of files of the target access task, and inquiring a residual task amount corresponding to the user identification in a preset forwarding log according to the user identification of a transmitting end of the target access task;
and if the residual task amount is larger than the target task amount, forwarding the target access task according to a forwarding path of the target access task, and updating the residual task amount of the transmitting end in the preset forwarding log according to the target task amount.
4. A method according to claim 3, further comprising:
if the residual task amount is smaller than the target task amount, suspending forwarding the target access task, and continuing forwarding when the residual task amount is larger than the target task amount.
5. The method as recited in claim 2, further comprising:
and if the task type of the target access task is the view type, forwarding the target access task according to a forwarding path of the target access task.
6. The method as recited in claim 1, further comprising:
and acquiring a target forwarding response corresponding to the target access task, and updating a preset forwarding log according to the target forwarding response and task information of the target access task.
7. The method as recited in claim 1, further comprising:
querying a preset forwarding log, determining an incomplete task in the preset forwarding log, determining the incomplete task as a target checking task, and determining a forwarding path and a user identifier of the target checking task;
generating a polling check task with a task type of check type, and forwarding the polling check task according to a forwarding path of the target check task;
and receiving a polling check result of the polling check task, and if the polling check result is characterized in that the target check task is completed, updating the residual task amount corresponding to the user identification of the target check task according to the task amount occupied by the target check task, wherein the polling check result is used for representing the state of the task.
8. A task forwarding device, comprising:
the task acquisition module is used for acquiring a target access task of the transmitting end;
the task analysis module is used for analyzing the target access task and determining task information of the target access task;
and the task forwarding module is used for matching the task information of the target access task with a preset forwarding condition and forwarding the target access task according to a matching result, wherein the preset forwarding condition comprises a limit condition and a type condition, and the limit condition is used for representing the task limit requirement for completing the target access task.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the task forwarding method of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the task forwarding method of any of claims 1-7 when executed.
CN202311808494.1A 2023-12-25 2023-12-25 Task forwarding method, device, equipment and storage medium Pending CN117785413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311808494.1A CN117785413A (en) 2023-12-25 2023-12-25 Task forwarding method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311808494.1A CN117785413A (en) 2023-12-25 2023-12-25 Task forwarding method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117785413A true CN117785413A (en) 2024-03-29

Family

ID=90382910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311808494.1A Pending CN117785413A (en) 2023-12-25 2023-12-25 Task forwarding method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117785413A (en)

Similar Documents

Publication Publication Date Title
CN112613964A (en) Account checking method, account checking device, account checking equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN114706610A (en) Business flow chart generation method, device, equipment and storage medium
CN117785413A (en) Task forwarding method, device, equipment and storage medium
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN113360672A (en) Methods, apparatus, devices, media and products for generating a knowledge graph
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN114584605B (en) Service distribution method and device, electronic equipment and storage medium
CN113313196B (en) Labeling data processing method, related device and computer program product
CN115529271B (en) Service request distribution method, device, equipment and medium
US11849006B2 (en) Method for reporting asynchronous data, electronic device and storage medium
CN112560462B (en) Event extraction service generation method, device, server and medium
CN115599573A (en) Event processing method, device, equipment and storage medium
CN118605974A (en) Application program starting method, device, storage medium and program product
CN116225568A (en) Management method, device and equipment of application system interface and storage medium
CN114328224A (en) Method and device for reproducing exception request, electronic equipment and storage medium
CN117670236A (en) Mobile-terminal-based to-be-handled flow approval method, device, equipment and medium
CN117081939A (en) Traffic data processing method, device, equipment and storage medium
CN117076427A (en) Server data management method, device, equipment and storage medium
CN117709902A (en) Material input method, device, equipment and medium based on BOM file
CN117635073A (en) Data processing method, device, equipment and storage medium

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