Task triggering method and device, computer storage medium, and electronic device

By receiving task execution requests, generating authentication messages, and verifying permissions, the task pipeline is triggered only when permissions are complete. This solves the problems of low execution efficiency and high manpower costs of task platforms, and achieves efficient and secure task execution.

CN118449739BActive Publication Date: 2025-12-09INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410532151.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2025-12-09
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

During the task development process, there are problems of low execution efficiency and high manpower costs when using different task platforms to execute tasks.

Method used

By receiving the task execution request from the target user, generating and verifying the authentication message, obtaining the target function permissions, and triggering the task pipeline only when the permissions are complete, the detection thread performs real-time detection and permission management to ensure the efficient execution of the task pipeline.

Benefits of technology

It improves task execution efficiency, reduces labor costs, and ensures the safety and integrity of the task pipeline.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118449739B_ABST
    Figure CN118449739B_ABST
Patent Text Reader

Abstract

The application discloses a task triggering method and device, a computer storage medium and an electronic device. Relating to the field of financial technology or other related fields, the method comprises the following steps: receiving a task execution request sent by a target user through a client; identifying the task execution request to obtain task execution information, wherein the task execution information is associated with target function permissions involved when a target task is executed; generating an authentication message according to the task execution information; checking the authentication message to obtain a checking result, wherein the checking result is obtained after the authentication interface checks the authentication message; in the case that the checking result represents that there is no missing function permission in the task execution information, obtaining the target function permission from the task execution information, and triggering a task pipeline of the target task according to the target function permission. Through the application, the problems of low execution efficiency and high labor cost in the related art when different task platforms are used to execute tasks are solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of financial technology or other related fields, in particular, to a task triggering method and device, computer storage medium and electronic equipment. BACKGROUND

[0002] With the continuous improvement of the task development process, the staff can use different platforms for automated task development, that is, through the use of timing tasks or automated pipelines of various platforms, automated verification, automated data processing, and automated version installation can be achieved.

[0003] However, the above technology requires operation on different platforms during task development. When a development process involves different platforms and different product businesses (applications), the user needs to apply for the permission of each product business (application) on each involved development platform, and manually execute the pipeline of each platform in order and verify the results. This development method has the problems of more manual operation and low efficiency.

[0004] In view of the problem of low execution efficiency and high labor cost in the related art when different task platforms are used to execute tasks, an effective solution has not yet been proposed. SUMMARY

[0005] The main purpose of the present application is to provide a task triggering method, device, computer storage medium and electronic equipment to solve the problem of low execution efficiency and high labor cost in the related art when different task platforms are used to execute tasks.

[0006] In order to achieve the above purpose, according to one aspect of the present application, a task triggering method is provided. The method comprises: receiving a task execution request sent by a target user through a client, identifying the task execution request to obtain task execution information, wherein the task execution request is used to request to execute a target task, and the target function permission involved in executing the target task is associated with the task execution information; generating an authentication message according to the task execution information, verifying the authentication message to obtain a verification result, wherein the verification result is obtained after the authentication interface verifies the authentication message; in the case that the verification result represents that there is no missing function permission in the task execution information, obtaining the target function permission from the task execution information, and triggering the task pipeline of the target task according to the target function permission.

[0007] Further, the authentication message is checked to obtain a checking result, including: in the case that the authentication interface receives the authentication message, extracting a platform name from the authentication message, and screening a preset function permission from a platform permission table of the database according to the platform name, wherein the platform permission table stores function permissions associated with a plurality of task platforms, the platform name is the name of a target task platform used when performing a target task, and the preset function permission is the function permission possessed by the target user in the role of the target task platform; extracting a platform permission code from the authentication message, determining a target function permission according to the platform permission code, and comparing the target function permission with the preset function permission; in the case that the target function permission is the same as the preset function permission, performing the step of obtaining the target function permission from the task execution information, and triggering the task pipeline of the target task according to the target function permission, wherein the target function permission being the same as the preset function permission means that there is no missing function permission in the task execution information; in the case that the target function permission is different from the preset function permission, obtaining the missing function permission between the target function permission and the preset function permission, generating a prompt information according to the missing function permission, generating a checking result of authentication failure according to the prompt information, and returning the checking result of authentication failure to the client.

[0008] Further, before receiving the task execution request sent by the target user through the client, the method further includes: obtaining M platform codes uploaded by the target user, wherein M is a positive integer; determining M task platforms according to the M platform codes, and obtaining M sets of function permissions associated with the target user from the M task platforms, wherein each set of function permissions includes the function permission possessed by the target user in a role of a task platform; adding the M sets of function permissions to the platform permission table, and storing the platform permission table in the database.

[0009] Further, generating the authentication message according to the task execution information includes: obtaining user account information of the target user, and extracting a platform name and a platform permission code of the target task platform from the task execution information; generating the authentication message according to the user account information, the platform name and the platform permission code, and sending the authentication message to the authentication interface.

[0010] Further, triggering the task pipeline of the target task according to the target function permission includes: receiving pipeline editing information set by the target user, generating an initial task pipeline according to the pipeline editing information; creating a detection thread, and using the detection thread to detect the execution of the initial task pipeline in real time to obtain real-time detection information, wherein the detection thread is associated with an encrypted pass, the encrypted pass is generated in the case that the target function permission is the same as the preset function permission, and the encrypted pass is used to store the target function permission; adding the target function permission in the encrypted pass to the initial task pipeline according to the real-time detection information to obtain the task pipeline.

[0011] Further, the target function permission in the encrypted pass is added to the initial task pipeline according to the real-time detection information, to obtain the task pipeline, comprising: in the case that the real-time detection information represents that N authorized function permissions are to be added in the execution process of the initial task pipeline, obtaining the permission codes of the N authorized function permissions, to obtain N authorized permission codes, wherein N is a positive integer; obtaining the N authorized function permissions from the encrypted pass according to the N authorized permission codes, and adding the N authorized function permissions to the initial task pipeline to obtain the task pipeline.

[0012] Further, after triggering the task pipeline of the target task according to the target function permission, the method further comprises: obtaining the real-time execution result of the task pipeline, and judging whether the task pipeline is executed successfully according to the real-time execution result; in the case that the real-time execution result represents that the task pipeline is executed successfully, controlling the detection thread to delete the encrypted pass, and returning an execution result representing successful execution, wherein the encrypted pass is generated in the case that the target function permission is the same as the preset function permission, and the encrypted pass is used to store the target function permission; in the case that the real-time execution result represents that the task pipeline is executed unsuccessfully, controlling the detection thread to end the execution of the task pipeline, and controlling the detection thread to delete the encrypted pass, and returning an execution result representing unsuccessful execution.

[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a task triggering device is provided. The device comprises: a receiving unit configured to receive a task execution request sent by a target user through a client, identify the task execution request, and obtain task execution information, wherein the task execution request is used to request execution of a target task, and the task execution information is associated with target function permissions involved in the execution of the target task; a generating unit configured to generate an authentication message according to the task execution information, and verify the authentication message to obtain a verification result, wherein the verification result is obtained after the authentication interface verifies the authentication message; and a first obtaining unit configured to obtain the target function permissions from the task execution information in the case that the verification result represents that there is no missing function permission in the task execution information, and trigger a task pipeline of the target task according to the target function permissions.

[0014] According to another aspect of the embodiment of the present application, a computer storage medium is also provided, which is used to store a program, wherein the program controls the device where the computer storage medium is located to execute a task triggering method when the program is running.

[0015] According to another aspect of the embodiment of the present application, an electronic device is also provided, which comprises one or more processors and a memory; the memory stores computer readable instructions, and the processor is configured to run the computer readable instructions, wherein the computer readable instructions execute a task triggering method when running.

[0016] According to another aspect of the embodiments of the present application, there is also provided a computer program product comprising a computer program which, when executed by a processor, performs a triggering method of a task.

[0017] According to the present application, the following steps are adopted: receiving a task execution request sent by a target user through a client, identifying the task execution request to obtain task execution information, wherein the task execution request is used to request execution of a target task, and the task execution information is associated with target function permissions involved in execution of the target task; generating an authentication message according to the task execution information, checking the authentication message to obtain a checking result, wherein the checking result is obtained after the authentication message is checked by an authentication interface; and in a case where the checking result indicates that there is no missing function permission in the task execution information, obtaining the target function permissions from the task execution information, and triggering a task pipeline of the target task according to the target function permissions. The present application solves the problems of low execution efficiency and high labor cost in execution of tasks by different task platforms in the related art, and achieves the effects of improving task execution efficiency and reducing labor cost by receiving a task execution request sent by a target user, obtaining task execution information therefrom, generating an authentication message according to the task execution information, checking the authentication message to obtain a checking result, and finally triggering a task pipeline of a target task according to the target function permissions in the task execution information according to the checking result. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings, which form a part of the present application, are intended to provide further understanding of the present application and are incorporated herein for illustrative purposes. The illustrative embodiments of the present application and their description serve to explain the present application. In the drawings:

[0019] Figure 1 is a flowchart of a triggering method of a task according to an embodiment of the present application;

[0020] Figure 2 is a schematic diagram of a checking method of an authentication interface according to an embodiment of the present application;

[0021] Figure 3 is a correspondence diagram of permissions according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of a triggering method of a task pipeline according to an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of an optional triggering method of a task according to an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of a triggering device of a task according to an embodiment of the present application;

[0025] Figure 7 is a schematic view of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.

[0029] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, analyzed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties. For example, an interface is provided between the system and the relevant user or institution. Before obtaining the relevant information, the interface needs to send a request to the aforementioned user or institution, and after receiving the consent information feedback from the aforementioned user or institution, the relevant information is obtained.

[0030] It should be noted that the information collected in the present application is information and data authorized by the user or authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with relevant laws, regulations and standards in the relevant region, necessary security measures are taken, do not violate public order and good customs, and provide corresponding operation portal for users to choose to authorize use or refuse to use.

[0031] The application will be described in the following with reference to the preferred embodiments, Figure 1 is a flow chart of a task triggering method provided according to an embodiment of the application, as shown in the figure, the method comprises the following steps: Figure 1

[0032] In step S101, a task execution request sent by a target user through a client is received, and the task execution request is identified to obtain task execution information, wherein the task execution request is used to request execution of a target task, and the task execution information is associated with a target function permission involved in execution of the target task.

[0033] It should be noted that when a user needs to develop a product service, different task platforms can be used for operation, and if a product service development process involves the use of multiple task platforms, the user needs to manually apply for use permission from each task platform and sequentially execute the task pipeline executed by each task platform in a set order, which may cause problems such as high labor cost and low development efficiency. Therefore, in order to solve the above problems, a task development system that can centralize the permissions of different task platforms can be set up, and the function permissions allowed by different task platforms can be obtained through the system to improve processing efficiency.

[0034] Specifically, the above target task can be a certain project task to be developed, and the target function permission refers to the permission of a function that a target user can use when using a certain task platform. For example, the target function permission can be a location information permission, a document and file recognition permission, etc. When a user needs to use the above system to execute a certain task, the user can first send a task execution request representing a request for the system to execute a certain task to the system, and then identify the request after the system receives the request to obtain task execution information including multiple pieces of information representing target task related information.

[0035] In step S102, an authentication message is generated according to the task execution information, and the authentication message is checked to obtain a checking result, wherein the checking result is obtained after the authentication interface checks the authentication message.

[0036] Specifically, after obtaining the task execution information from the received task execution request, the authentication message used to check whether the permission that the user can use is complete can be composed of the related information in the task execution information, and then the authentication message is sent to the authentication interface associated with the above task development system. The authentication interface decodes the authentication message and performs permission checking, and finally generates a checking result, wherein the authentication interface can be an API interface.

[0037] ​In the case that the check result represents that the function authority contained in the task execution information does not have a missing part, the target function authority is obtained from the task execution information, and a task pipeline of the target task is triggered according to the target function authority.

[0038] Specifically, when the check result output by the authentication interface represents that the function authority contained in the task execution information does not have a missing part, at this time, the development process of the target task in the task development system can be started based on the function authority in the task execution information, that is, the task pipeline is triggered.

[0039] The task triggering method provided by the embodiments of the present application receives a task execution request sent by a target user through a client, identifies the task execution request, and obtains task execution information, wherein the task execution request is used to request to execute a target task, and the task execution information is associated with a target function authority involved when the target task is executed; an authentication message is generated according to the task execution information, the authentication message is checked, and a check result is obtained, wherein the check result is obtained after the authentication message is checked by an authentication interface; in the case that the check result represents that the function authority contained in the task execution information does not have a missing part, the target function authority is obtained from the task execution information, and a task pipeline of the target task is triggered according to the target function authority, thereby solving the problem of low execution efficiency and high labor cost in the related art when different task platforms are used to execute tasks. The task execution request sent by the target user is received, the task execution information is obtained therefrom, the authentication message is generated according to the task execution information, the authentication message is checked, the check result is obtained, and finally the target function authority in the task execution information is used to trigger the task pipeline of the target task according to the check result, thereby achieving the effects of improving the task execution efficiency and reducing the labor cost.

[0040] In order to improve the execution efficiency, the function authority in the authentication message needs to be checked. Optionally, in the task triggering method provided in the embodiments of the present application, the authentication message is checked to obtain a checking result, including: in the case that the authentication interface receives an authentication message, extracting a platform name from the authentication message, and screening a preset function authority from a platform authority table in the database according to the platform name, wherein the platform authority table stores function authorities associated with multiple task platforms, the platform name is the name of a target task platform used when a target task is executed, and the preset function authority refers to the function authority possessed by a target user in a role of the target task platform; extracting a platform authority code from the authentication message, determining a target function authority according to the platform authority code, and comparing the target function authority with the preset function authority; in the case that the target function authority is the same as the preset function authority, executing the step of obtaining the target function authority from the task execution information, and triggering the task pipeline of the target task according to the target function authority, wherein the target function authority being the same as the preset function authority means that there is no missing function authority in the task execution information; in the case that the target function authority is different from the preset function authority, obtaining the missing function authority between the target function authority and the preset function authority, generating a prompt information according to the missing function authority, generating a checking result of authentication failure according to the prompt information, and returning the checking result of authentication failure to the client.

[0041] Specifically, Figure 2 is a schematic diagram of the checking method of the authentication interface provided in the embodiments of the present application, as shown in Figure 2 When the function authority is verified by using the authentication interface, the authentication interface needs to be called first, and the authentication message obtained is decoded by using the authentication interface, and it is judged whether the function authority extracted from the authentication message is correct. At this time, the platform name of the target task platform used when the target task is executed can be extracted from the authentication message, and the function authority of the task platform is screened from the platform authority table stored in the database according to the name, that is, the preset function authority is obtained. The platform authority table stores the preset function authorities associated with multiple task platforms, that is, the platform authority table stores the function authorities possessed by the target user in a certain role of each task platform. Then, the platform authority code sent by the target user needs to be extracted from the authentication message, and the corresponding function authority is determined according to the platform authority code, that is, the target function authority is obtained, and then it is compared with the preset function authority.

[0042] When the target function authority is the same as the preset function authority, that is, the task execution information of the task execution request sent by the target user does not exist the missing function authority, at this time, the target function authority can be directly obtained from the task execution information, the encrypted pass is generated by using the target function authority, and the task pipeline of the target task is triggered by using the encrypted pass; on the contrary, when the target function authority is different from the preset function authority, that is, the task execution information of the task execution request sent by the target user exists the missing function authority, the missing function authority needs to be extracted, and the prompt information is generated according to the missing function authority, and the verification result of the authentication failure is generated, and the information is sent to the target user. The embodiment can trigger the task pipeline based on the verified function authority, thereby improving the execution efficiency of the task.

[0043] Optionally, in the task triggering method provided in the embodiment of the application, before receiving the task execution request sent by the target user through the client, the method further includes: obtaining M platform codes uploaded by the target user, wherein M is a positive integer; determining M task platforms according to the M platform codes, and obtaining M sets of function authorities associated with the target user from the M task platforms, wherein each set of function authorities includes function authorities possessed by a role assumed by the target user in a task platform; adding the M sets of function authorities to a platform authority table, and storing the platform authority table in a database.

[0044] Specifically, before the task development is performed by using the task development system, the function authorities possessed by other task platforms can be configured with the task development system. First, the platform codes of all task platforms used by the target user can be obtained, at this time, the task development system can determine the task platforms according to the platform codes, and establish a communication connection with the platforms.

[0045] Further, after the connection, the function authorities possessed by a role assumed by the target user in different task platforms are extracted from each task platform, and the authorities are added to the platform authority table, and then the platform authority table is stored in the database, so as to facilitate the system to manage and control the user authorities, wherein the platform authority table can include fields such as user ID, platform code, role ID and function authority.

[0046] It should be noted that, Figure 3 is a corresponding relationship diagram of the authorities according to the embodiment of the application, as shown in Figure 3As shown, the target user associated permissions can include a plurality of, can contain the user's account permissions (for example, the target user's username and user password), secondly, when the target user logs in the task platform, it will contain the platform permissions (for example, the platform name, the platform permission code and the platform permission name), and it will also match a role, at this time the permissions also include the role corresponding role code, platform name and role name, at the same time, if the target user also uses a certain application of the task platform, at this time it will also have application permissions (for example, application code and application name). The embodiment stores the platform permissions to the database, which can ensure the security of the permission data, and provides support for checking the function permissions.

[0047] The authentication message is obtained according to the task execution information. Optionally, in the task triggering method provided in the embodiment of the application, the authentication message is generated according to the task execution information, including: obtaining the user account information of the target user, and extracting the platform name and platform permission code of the target task platform from the task execution information; generating the authentication message according to the user account information, the platform name and the platform permission code, and sending the authentication message to the authentication interface.

[0048] Specifically, when the task execution information is obtained, the authentication message needs to be generated from the task execution information, and the function permission is checked by using the authentication message. The authentication message can contain the username, user password, application permission, platform name and platform permission code. The username and user password can be determined according to the user's account information, and the above information can be extracted therefrom. Meanwhile, the platform name and platform permission code of the target task platform can be extracted from the task execution information. Then, according to the obtained user account information, platform name and platform permission code, a specific encryption algorithm can be combined to generate an authentication message containing user identity authentication information, and the authentication message can be sent to the authentication interface to verify the user's identity and permissions. The embodiment can provide support for the user to normally perform task development operations by generating the authentication message from the task execution information.

[0049] In order to efficiently implement the triggering operation of the task pipeline, optionally, in the task triggering method provided in the embodiment of the application, the task pipeline of the target task is triggered according to the target function permission, including: receiving the pipeline editing information set by the target user, generating an initial task pipeline according to the pipeline editing information; creating a detection thread, and using the detection thread to detect the execution of the initial task pipeline in real time to obtain real-time detection information, wherein the detection thread is associated with an encrypted pass, and the encrypted pass is generated in the case that the target function permission is the same as the preset function permission. The encrypted pass is used to store the target function permission; and the target function permission in the encrypted pass is added to the initial task pipeline according to the real-time detection information, to obtain the task pipeline.

[0050] Specifically, after the task execution information is checked and it is determined that no required function permission is missing in the task execution information, the task pipeline can be triggered according to the function permission in the task execution information. Figure 4 is a schematic diagram of a task pipeline triggering method provided by an embodiment of the present application. As shown in Figure 4 If a user needs to execute a target task by using the A platform, when the user logs in, the user permission of the user and the construction permission for constructing the pipeline are first checked. If the check passes, an encrypted pass 1 is generated, and after the encrypted pass 1 is stored, pipeline editing information is generated according to the information of the user executing the target task on the A platform, and then an initial task pipeline A is generated according to the pipeline editing information. When the initial task pipeline A is executed, the platform permission and the application permission associated with the initial task pipeline A can be obtained, and the above permissions are sent to the authentication interface for permission checking. If the check passes, an encrypted pass 2 is generated, and the encrypted pass 2 is stored. Then, the initial task pipeline A is executed based on the encrypted pass 2, and a detection thread for detecting the execution process is created in the initial task pipeline A. During the execution of the initial task pipeline A, the detection thread accepts the execution of the pipeline by polling, that is, real-time detection information is obtained.

[0051] If the real-time detection information indicates that a function permission needs to be obtained during the current execution process, the target function permission in the stored encrypted pass 2 can be added to the initial task pipeline A, and then the task is continued to be executed and the detection information is updated in real time during the execution process, so as to realize the execution steps of the task pipeline and ensure the efficient execution of the task pipeline.

[0052] It should be noted that the detection thread contains the encrypted pass 2 generated by the authentication interface after checking, and the encrypted pass is generated in the case that the target function permission is the same as the preset function permission, and stores all target function permissions required by the task pipeline, which can ensure the legal execution of the task pipeline, and then the detection thread can use the target function permission in the encrypted pass to detect and control the task execution.

[0053] It should be noted that after the encrypted pass 2 is stored, the task pipeline A can be executed, and during the execution, if there is an execution error, an execution result is generated; if the execution can be normally executed, the task pipeline A is ended, and the encrypted pass is destroyed after the execution, and the execution result is returned, wherein during the execution of the task pipeline A, the encrypted pass 2 can be first sent to the A platform, and after the corresponding authorization is obtained through the file sending platform, the corresponding application is executed by the A platform and a file is generated, and then the file is sent to the file server of the application through the file sending platform, and the application imports the file into the database after receiving the file, and further verifies whether the result of the application database import is correct, if the import is correct, the task pipeline A is ended; if an error occurs in the above process, the task pipeline A is directly ended to generate an error execution result. The embodiment can ensure that the task pipeline is executed as expected, and can ensure the security and integrity of the task, efficiently execute various tasks, and timely feedback the execution situation, to provide timely and effective task execution result for the user, and provide reliable guarantee and support for the operation of the task pipeline.

[0054] The task pipeline is processed by the detection thread to the initial task pipeline. Optionally, in the task triggering method provided in the embodiment of the application, the target function authority in the encrypted pass is added to the initial task pipeline according to the real-time detection information to obtain the task pipeline, including: in the case that the real-time detection information represents that N authorization function authorities need to be added in the execution process of the initial task pipeline, obtaining the authority code of the N authorization function authorities to obtain N authorization authority codes, wherein N is a positive integer; obtaining the N authorization function authorities from the encrypted pass according to the N authorization authority codes, and adding the N authorization function authorities to the initial task pipeline to obtain the task pipeline.

[0055] Specifically, when the real-time detection information generated by the detection thread represents that a certain function authority needs to be added in the execution process of the initial task pipeline when triggering the task pipeline, the authority code of the function authority is first obtained, the corresponding function authority is obtained from the stored encrypted pass according to the authority code, and the function authority is added to the initial task pipeline, so as to obtain the updated task pipeline, that is, to obtain the task pipeline, and this process can ensure that the task pipeline can be executed smoothly and obtain the required authorization function authority.

[0056] To accurately grasp the execution process of the task pipeline, optionally, in the task triggering method provided in the embodiments of the present application, after triggering the task pipeline of the target task according to the target function authority, the method further comprises: obtaining a real-time execution result of the task pipeline, and judging whether the task pipeline is executed successfully according to the real-time execution result; in the case that the real-time execution result indicates that the task pipeline is executed successfully, controlling the detection thread to delete the encrypted pass, and returning an execution result indicating that the execution is successful, wherein the encrypted pass is generated in the case that the target function authority is the same as the preset function authority, and the encrypted pass is used to store the target function authority; in the case that the real-time execution result indicates that the task pipeline is executed unsuccessfully, controlling the detection thread to end the execution of the task pipeline, and controlling the detection thread to delete the encrypted pass, and returning an execution result indicating that the execution is unsuccessful.

[0057] Specifically, after triggering the task pipeline and executing the task pipeline, the real-time execution result of the task pipeline can be obtained, and whether the task pipeline is executed successfully can be judged according to the result. If the real-time execution result indicates that the task pipeline is executed successfully, in order to reduce the memory pressure, the detection thread can be controlled to delete the encrypted pass, and an execution result indicating that the execution is successful is returned to the target user.

[0058] On the other hand, if the real-time execution result indicates that the task pipeline is executed unsuccessfully, it indicates that the function authority may be abnormal, at this time, not only the detection thread needs to be controlled to end the execution of the task pipeline, but also the encrypted pass needs to be deleted, and then an execution result indicating that the execution is unsuccessful is returned to the target user, so that the target user can make corresponding processing in time to avoid possible problems or risks. The embodiments ensure that the task pipeline can be executed smoothly and achieve the expected effect by processing the task pipeline and the encrypted pass by the detection thread.

[0059] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.

[0060] The embodiment of the application further provides a task development system, which comprises: an authority management module and an automation process module, wherein the authority management module is used for centrally managing platform and function authority used by a target user, the user can obtain different platforms and involved function authority through application, in addition, the module further provides a unified authentication interface (namely, an authentication interface), which can receive an authentication message containing encryption sent by the automation process module and return a corresponding authentication result; the automation process module can provide a customizable automation pipeline function, the target user can construct an automation pipeline, and before constructing the pipeline and executing the pipeline, the authentication interface of the authority management module is called to obtain user authority of all platforms involved in the pipeline, and if there is missing authority, corresponding function authority can be uniformly applied.

[0061] The above system can realize triggering operation of a task, Figure 5 is a schematic diagram of an optional task triggering method provided by the embodiment of the application, as Figure 5 shown, the method comprises:

[0062] When a user needs to develop product business, a task execution request can be sent to the task development system through a client, the authority management module of the task development system receives the task execution request, identifies the task execution request, obtains task execution information, forms an authentication message used for verifying whether the authority that the user can use is complete from relevant information in the task execution information, and then sends the authentication message to the authentication interface associated with the task development system, the authentication interface decodes the authentication message and performs authority verification, for example, the user authority can be verified, or the application authority and the platform authority can be verified, and finally a verification result is generated.

[0063] In the case that the verification result represents that the authentication passes, the automation process module receives pipeline editing information set by the target user, generates an initial task pipeline according to the pipeline editing information, creates a detection thread used for detecting an execution process in the initial task pipeline, and in the execution process of the initial task pipeline, the detection thread accepts the execution situation of the pipeline through polling, and continuously adds function authority in the stored encrypted passkey to the initial task pipeline, and then continues to schedule and execute the task, so as to realize the execution step of the task pipeline and ensure efficient execution of the task pipeline.

[0064] The embodiment receives a task execution request sent by a target user, obtains task execution information from the task execution request, generates an authentication message according to the task execution information, verifies the authentication message, obtains a verification result, and finally triggers a task pipeline of a target task by using target function authority in the task execution information according to the verification result, thereby achieving the effects of improving task execution efficiency and reducing labor cost.

[0065] The embodiment of the present application further provides a task triggering device, and it needs to be explained that the task triggering device of the embodiment of the present application can be used to execute the task triggering method provided by the embodiment of the present application. The task triggering device provided by the embodiment of the present application is introduced as follows.

[0066] Figure 6 is a schematic diagram of the task triggering device provided by the embodiment of the present application, as shown in the figure, the device comprises a receiving unit 60, a generating unit 61 and a first obtaining unit 62. Figure 6

[0067] The receiving unit 60 is used to receive a task execution request sent by a target user through a client, identify the task execution request, and obtain task execution information, wherein the task execution request is used to request to execute a target task, and the task execution information is associated with a target function permission involved when the target task is executed;

[0068] The generating unit 61 is used to generate an authentication message according to the task execution information, check the authentication message, and obtain a check result, wherein the check result is obtained after the authentication message is checked by an authentication interface;

[0069] The first obtaining unit 62 is used to obtain the target function permission from the task execution information and trigger a task pipeline of the target task according to the target function permission in the case that the check result represents that there is no missing function permission in the task execution information.

[0070] The task triggering device provided by the embodiment of the present application receives a task execution request sent by a target user through a client by the receiving unit 60, identifies the task execution request, and obtains task execution information, wherein the task execution request is used to request to execute a target task, and the task execution information is associated with a target function permission involved when the target task is executed; the generating unit 61 generates an authentication message according to the task execution information, checks the authentication message, and obtains a check result, wherein the check result is obtained after the authentication message is checked by an authentication interface; and the first obtaining unit 62 obtains the target function permission from the task execution information and triggers a task pipeline of the target task according to the target function permission in the case that the check result represents that there is no missing function permission in the task execution information, thereby solving the problems of low execution efficiency and high labor cost in executing tasks by using different task platforms in the related art, obtaining task execution information from a task execution request sent by a target user, generating an authentication message according to the task execution information, checking the authentication message, obtaining a check result, and finally triggering a task pipeline of a target task by using a target function permission in the task execution information according to the check result, thereby achieving the effects of improving task execution efficiency and reducing labor cost. ​

[0071] Optionally, in the task triggering apparatus provided by the embodiment of the present application, the generating unit 61 comprises: a first extraction module configured to extract a platform name from the authentication message when the authentication interface receives the authentication message, and filter the preset function authority from a platform authority table of the database according to the platform name, wherein the platform authority table stores function authorities associated with a plurality of task platforms, the platform name is the name of a target task platform used when a target task is executed, and the preset function authority is the function authority possessed by a target user in a role of the target task platform; a second extraction module configured to extract a platform authority code from the authentication message, determine a target function authority according to the platform authority code, and compare the target function authority with the preset function authority; an execution module configured to execute the target function authority from the task execution information and trigger the task pipeline of the target task according to the target function authority when the target function authority is the same as the preset function authority, wherein the target function authority being the same as the preset function authority means that there is no missing function authority in the task execution information; and a first acquisition module configured to acquire the missing function authority between the target function authority and the preset function authority when the target function authority is different from the preset function authority, generate a prompt message according to the missing function authority, generate a verification result of authentication failure according to the prompt message, and return the verification result of authentication failure to the client.

[0072] Optionally, in the task triggering apparatus provided by the embodiment of the present application, the apparatus further comprises: a second acquisition unit configured to acquire M platform codes uploaded by a target user before receiving a task execution request sent by the target user through the client, wherein M is a positive integer; a determination unit configured to determine M task platforms according to the M platform codes, and acquire M sets of function authorities associated with the target user from the M task platforms, wherein each set of function authorities comprises a function authority possessed by a role of the target user in one task platform; and an adding unit configured to add the M sets of function authorities to the platform authority table, and store the platform authority table in the database.

[0073] Optionally, in the task triggering apparatus provided by the embodiment of the present application, the generating unit 61 comprises: a second acquisition module configured to acquire user account information of a target user, and extract a platform name and a platform authority code of a target task platform from the task execution information; and a generating module configured to generate an authentication message according to the user account information, the platform name, and the platform authority code, and send the authentication message to the authentication interface.

[0074] Optionally, in the task triggering apparatus provided by the embodiment of the present application, the first obtaining unit 62 comprises: a receiving module, configured to receive pipeline editing information set by a target user, and generate an initial task pipeline according to the pipeline editing information; a creating module, configured to create a detection thread, and utilize the detection thread to detect the execution of the initial task pipeline in real time to obtain real-time detection information, wherein the detection thread is associated with an encrypted pass, and the encrypted pass is generated in a case where the target function authority is the same as the preset function authority, and the encrypted pass is used to store the target function authority; and an adding module, configured to add the target function authority in the encrypted pass to the initial task pipeline according to the real-time detection information to obtain the task pipeline.

[0075] Optionally, in the task triggering apparatus provided by the embodiment of the present application, the first obtaining unit 62 comprises: a third obtaining module, configured to, in a case where the real-time detection information indicates that N authorized function authorities are to be added in the execution process of the initial task pipeline, obtain authority codes of the N authorized function authorities to obtain N authorized authority codes, wherein N is a positive integer; and a fourth obtaining module, configured to obtain the N authorized function authorities from the encrypted pass according to the N authorized authority codes, and add the N authorized function authorities to the initial task pipeline to obtain the task pipeline.

[0076] Optionally, in the task triggering apparatus provided by the embodiment of the present application, the apparatus further comprises: a third obtaining unit, configured to, after triggering the task pipeline of the target task according to the target function authority, obtain a real-time execution result of the task pipeline, and determine whether the task pipeline is executed successfully according to the real-time execution result; a first control unit, configured to, in a case where the real-time execution result indicates that the task pipeline is executed successfully, control the detection thread to delete the encrypted pass, and return an execution result indicating that the execution is successful, wherein the encrypted pass is generated in a case where the target function authority is the same as the preset function authority, and the encrypted pass is used to store the target function authority; and a second control unit, configured to, in a case where the real-time execution result indicates that the task pipeline is executed unsuccessfully, control the detection thread to end the execution of the task pipeline, control the detection thread to delete the encrypted pass, and return an execution result indicating that the execution is unsuccessful.

[0077] The task triggering apparatus comprises a processor and a memory, and the receiving unit 60, the generating unit 61, the first obtaining unit 62 and the like are all stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory.

[0078] The processor comprises a core, and the core retrieves the corresponding program units from the memory. One or more than one core can be set, and the execution efficiency is low and the labor cost is large when different task platforms are used to execute tasks in the related art, which can be solved by adjusting the core parameters.

[0079] The memory can include non-persistent memory in a computer readable medium, forms of random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory, among others, including at least one memory chip.

[0080] The embodiment of the present application provides a computer storage medium, and the computer storage medium is used for storing a program, wherein the program controls a device where the computer storage medium is located to execute a triggering method of a task when the program is executed.

[0081] Figure 7 is a schematic diagram of an electronic device provided by the embodiment of the present application, as shown in Figure 7 The embodiment of the present application provides an electronic device, and the electronic device 70 comprises a processor, a memory, and a program stored in the memory and executable on the processor, the processor is used for executing computer readable instructions, wherein the computer readable instructions execute a triggering method of a task when the computer readable instructions are executed. The device in the present application can be a server, a PC, a PAD, a mobile phone, and the like.

[0082] The present application further provides a computer program product, comprising a computer program, the computer program is executed by the processor to realize the steps of the triggering method of a task in the embodiments of the present application.

[0083] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt a computer program product in the form of one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.

[0084] The present application is described with reference to the flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one flow or multiple flows and / or blocks

[0085] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.

[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.

[0087] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0088] The memory can include non-persistent memory and / or volatile memory, such as a random access memory (RAM) including a cache area for the temporary storage of data. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), flash memory, or a combination of non-volatile memories in different forms. The memory is an example of computer readable storage media.

[0089] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.

[0090] It should also be noted that the terms "comprising", "comprises" or other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus.

[0091] The above embodiments are only used to illustrate the present application, but not to limit it. Instead of the above, various modifications and changes can be made to the application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall fall into the scope of the claims of the application.

Claims

1. A method for triggering a task, characterized in that, include: Receive a task execution request sent by a target user through a client, identify the task execution request, and obtain task execution information, wherein the task execution request is used to request the execution of a target task, and the task execution information is associated with the target function permissions involved in executing the target task; An authentication message is generated based on the task execution information. The authentication message is then verified to obtain a verification result. The verification result is obtained by the authentication interface after verifying the authentication message. The authentication message is verified to obtain the verification result, including: when the authentication interface receives the authentication message, extracting the platform name from the authentication message, and filtering the preset function permissions from the platform permission table in the database according to the platform name, wherein the platform permission table stores function permissions associated with multiple task platforms, the platform name is the name of the target task platform used when executing the target task, and the preset function permissions refer to the function permissions that the target user has when playing a role on the target task platform; extracting the platform permission code from the authentication message, determining the target function permission according to the platform permission code, and comparing the target function permission with the preset function permission; if the target function permission is the same as the preset function permission, obtaining the target function permission from the task execution information, and triggering the task pipeline of the target task according to the target function permission, wherein the target function permission is the same as the preset function permission means that there are no missing function permissions in the task execution information.

2. The method according to claim 1, characterized in that, The authentication message is verified, and the verification results include: If the target function permission differs from the preset function permission, obtain the missing function permission between the target function permission and the preset function permission, generate a prompt message based on the missing function permission, generate an authentication failure verification result based on the prompt message, and return the authentication failure verification result to the client.

3. The method according to claim 2, characterized in that, Before receiving a task execution request sent by the target user through the client, the method further includes: Obtain M platform codes uploaded by the target user, where M is a positive integer; Based on the M platform codes, M task platforms are determined, and M sets of functional permissions associated with the target user are obtained from the M task platforms. Each set of functional permissions includes the functional permissions that the target user has in a role on a task platform. Add the M group of function permissions to the platform permission table, and store the platform permission table in the database.

4. The method according to claim 2, characterized in that, The authentication message generated based on the task execution information includes: Obtain the user account information of the target user, and extract the platform name and platform permission code of the target task platform from the task execution information; The authentication message is generated based on the user account information, the platform name, and the platform permission code, and then sent to the authentication interface.

5. The method according to claim 1, characterized in that, The task pipeline that triggers the target task based on the target function permissions includes: Receive pipeline editing information set by the target user, and generate an initial task pipeline based on the pipeline editing information; A detection thread is created to monitor the execution status of the initial task pipeline in real time and obtain real-time detection information. The detection thread is associated with an encrypted pass, which is generated when the target function permission is the same as the preset function permission. The encrypted pass is used to store the target function permission. Based on the real-time detection information, the target function permissions in the encrypted pass are added to the initial task pipeline to obtain the task pipeline.

6. The method according to claim 5, characterized in that, Based on the real-time detection information, the target function permissions in the encrypted pass are added to the initial task pipeline, resulting in a task pipeline comprising: When the real-time detection information indicates that N authorized function permissions need to be added during the execution of the initial task pipeline, the permission codes of the N authorized function permissions are obtained, resulting in N authorization permission codes, where N is a positive integer; The N authorized function permissions are obtained from the encrypted pass according to the N authorized permission codes, and the N authorized function permissions are added to the initial task pipeline to obtain the task pipeline.

7. The method according to claim 1, characterized in that, After triggering the task pipeline of the target task according to the target function permissions, the method further includes: Obtain the real-time execution results of the task pipeline, and determine whether the task pipeline has been executed successfully based on the real-time execution results; If the real-time execution result indicates that the task pipeline has been successfully executed, the control detection thread deletes the encrypted pass and returns the execution result indicating successful execution. The encrypted pass is generated when the target function permission is the same as the preset function permission, and the encrypted pass is used to store the target function permission. If the real-time execution result indicates that the task pipeline has failed, the detection thread is controlled to terminate the execution of the task pipeline and delete the encrypted pass, and the execution result indicating failure is returned.

8. A task triggering device, characterized in that, include: The receiving unit is used to receive a task execution request sent by a target user through a client, identify the task execution request, and obtain task execution information, wherein the task execution request is used to request the execution of a target task, and the task execution information is associated with the target function permissions involved in executing the target task; The generation unit is used to generate an authentication message based on the task execution information, verify the authentication message, and obtain a verification result, wherein the verification result is obtained by the authentication interface after verifying the authentication message. The generation unit includes: a first extraction module, configured to extract the platform name from the authentication message when the authentication interface receives the authentication message, and filter the preset function permissions from the platform permission table in the database according to the platform name, wherein the platform permission table stores function permissions associated with multiple task platforms, the platform name is the name of the target task platform used when executing the target task, and the preset function permissions refer to the function permissions that the target user has when playing a role on the target task platform; a second extraction module, configured to extract the platform permission code from the authentication message, determine the target function permission according to the platform permission code, and compare the target function permission with the preset function permissions; and an execution module, configured to obtain the target function permission from the task execution information when the target function permission is the same as the preset function permission, and trigger the task pipeline of the target task according to the target function permission, wherein the target function permission is the same as the preset function permission means that there are no missing function permissions in the task execution information.

9. A computer storage medium, characterized in that, The computer storage medium is used to store a program, wherein the program, when running, controls the device where the computer storage medium is located to execute the triggering method of the task according to any one of claims 1 to 7.

10. An electronic device, characterized in that, It includes one or more processors and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the triggering method of the task according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Block chain-based test method and device, storage medium and computer equipment

    CN110598446A

  • Storage method and system based on hybrid cloud computing platform

    CN112579296A