Search

CN-122022423-A - Method and device for executing planning task and computer storage medium

CN122022423ACN 122022423 ACN122022423 ACN 122022423ACN-122022423-A

Abstract

The application provides a method for executing a planning task, a device for executing the planning task and a computer storage medium. The method for executing the planning task comprises the steps of determining a user set, traversing the user set, executing the following steps for each user, generating corresponding execution instructions of a target user based on the planning task when any one user meets a first execution condition of the planning task, and sending the execution instructions to a server to execute the planning task of the target user. The method for executing the planning task executes the planning task, so that decoupling of specific business logic and general execution flow is realized, a set of general execution flow can be prevented from being redeveloped for each new business, and the business development efficiency is improved.

Inventors

  • ZHOU QINWEI
  • LIN ZEHUAN
  • ZHANG LONGTAI
  • QU TONG
  • Sun Zhiran

Assignees

  • 富途网络科技(深圳)有限公司

Dates

Publication Date
20260512
Application Date
20251210

Claims (11)

  1. 1. A method of executing a scheduled task, the method comprising: Determining a user set; Traversing the user set, performing the following steps for each user: When any one user meets a first execution condition of the planning task, generating a corresponding execution instruction of a target user based on the planning task; and sending the execution instruction to a server to execute the planning task of the target user.
  2. 2. The method for performing a scheduled task according to claim 1, wherein, The determining a set of users includes: According to the first paging cursor of the planning task, a candidate user list and a second paging cursor are obtained from a preset user data source of the planning task; adding the candidate list of users to the set of users; And when the user data source identification of the second page splitting cursor is equal to the preset user data source identification, continuously acquiring a candidate user list according to the second page splitting cursor, and updating the user set.
  3. 3. The method for performing a scheduled task according to claim 2, wherein, The paging cursor comprises a user data source identifier and a starting position of the candidate user list obtained from the user data source.
  4. 4. The method for performing a scheduled task according to claim 3, wherein, And when the user data source identification of the second page splitting cursor is not equal to the preset user data source identification, acquiring the candidate user list from the corresponding user data source according to the user data source identification of the second page splitting cursor.
  5. 5. The method for performing a scheduled task according to claim 2, wherein, The adding the candidate list of users to the set of users includes: judging whether the candidate users in the candidate user list meet a second execution condition of the planning task or not; if yes, adding the candidate users to the user set; wherein the second execution condition includes the candidate user passing an investment suitability check.
  6. 6. The method for performing a scheduled task according to claim 1, wherein, When any one user meets the first execution condition of the planning task, generating a corresponding execution instruction of the target user based on the planning task, wherein the corresponding execution instruction comprises the following steps: determining account content of the user about the planning task according to corresponding calculation rules based on the user data of the user and the task requirements of the planning task; And when the account content meets the first execution condition, generating a corresponding execution instruction of the target user based on the planning task.
  7. 7. The method for performing a scheduled task according to claim 6, wherein, The determining the account content of the user about the planning task according to the corresponding calculation rule based on the user data of the user and the task requirement of the planning task comprises the following steps: Determining the account available fund sum of the user about the planning task according to the account available fund sum calculation rule of the user based on the user data of the user and the task requirement of the automatic buying planning task; When any one user meets the first execution condition of the planning task, generating a corresponding execution instruction of the target user based on the planning task, wherein the corresponding execution instruction comprises the following steps: when the sum of available funds of the account of the user is larger than a preset balance threshold value, determining that the user is the target user; generating corresponding execution instructions of the target user based on the automatic purchase requisition plan task; Wherein the execution instruction includes an execution time for executing the automatic purchase requisition plan task, so that the server executes the automatic purchase requisition plan task according to the execution time.
  8. 8. The method for performing a scheduled task according to claim 6, wherein, The determining the account content of the user about the planning task according to the corresponding calculation rule based on the user data of the user and the task requirement of the planning task comprises the following steps: Determining a redeemable amount of the user for the scheduled mission based on user data of the user and mission requirements of the automated redemption of the scheduled mission according to redemption amount calculation rules of the user; When any one user meets the first execution condition of the planning task, generating a corresponding execution instruction of the target user based on the planning task, wherein the corresponding execution instruction comprises the following steps: Determining the user as the target user when the redeemable amount of the user is not less than the arrearage amount of the user; Generating respective execution instructions for the target user based on the automatic redemption planning task; Wherein the execution instructions include an execution time to execute the automatic redemption planning task, such that the server executes the automatic redemption planning task in accordance with the execution time.
  9. 9. The method for performing a scheduled task according to claim 1, wherein, After the execution instruction is sent to a server to execute the planning task of the target user, the method further comprises the following steps: acquiring an execution result of the planning task returned by the server; and updating the user data of the target user based on the execution result.
  10. 10. A scheduled task execution device, comprising a memory and a processor, wherein the memory is coupled to the processor; Wherein the memory is for storing program data and the processor is for executing the program data to implement the scheduled task execution method of any one of claims 1 to 9.
  11. 11. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for performing a scheduled task according to any one of claims 1 to 9.

Description

Method and device for executing planning task and computer storage medium Technical Field The present application relates to the field of computer application, and in particular, to a method for executing a scheduled task, an apparatus for executing a scheduled task, and a computer storage medium. Background In the current enterprise informatization process, more and more businesses are turning to the automatic processing of a system so as to reduce manual intervention and improve the business execution efficiency. Typical application scenarios include financial transactions, fee payments, and the like. The application of the automation technology not only optimizes the business process, but also provides a powerful support for enterprises to realize efficient and stable operation. Taking financial transaction business as an example, with the increasing degree of intellectualization of financial services, tasks that need to be executed periodically and automatically, such as automatic buying, fund posting, etc., have been fully undertaken by the background system. However, existing system implementations typically develop a complete set of processes for each individual business function individually, i.e., the automatic redemption function is a set of individual codes, and the fund posting function is another highly similar set of individual codes. The coupling flow structure of one service and one set of codes causes repeated construction of the system, so that the development efficiency is low. When repairing public logic loopholes or carrying out general flow optimization, the common logic loopholes are repeatedly modified in a plurality of sets of codes, the workload is large, the mistakes are extremely easy to occur, and the overall maintenance cost of the system is high. Disclosure of Invention In order to solve the technical problems, the application provides a method for executing a planning task, a device for executing the planning task and a computer storage medium. In order to solve the technical problems, the present application provides a method for executing a scheduled task, the method for executing a scheduled task comprising: Determining a user set; Traversing the user set, performing the following steps for each user: When any one user meets a first execution condition of the planning task, generating a corresponding execution instruction of a target user based on the planning task; and sending the execution instruction to a server to execute the planning task of the target user. Wherein the determining the user set includes: According to the first paging cursor of the planning task, a candidate user list and a second paging cursor are obtained from a preset user data source of the planning task; adding the candidate list of users to the set of users; And when the user data source identification of the second page splitting cursor is equal to the preset user data source identification, continuously acquiring a candidate user list according to the second page splitting cursor, and updating the user set. The paging cursor comprises a user data source identifier and a starting position of the candidate user list obtained from the user data source. And when the user data source identifier of the second page splitting cursor is not equal to the preset user data source identifier, acquiring the candidate user list from the corresponding user data source according to the user data source identifier of the second page splitting cursor. Wherein said adding the candidate list of users to the user set comprises: judging whether the candidate users in the candidate user list meet a second execution condition of the planning task or not; if yes, adding the candidate users to the user set; wherein the second execution condition includes the candidate user passing an investment suitability check. When any one user meets the first execution condition of the planning task, generating a corresponding execution instruction of the target user based on the planning task, wherein the corresponding execution instruction comprises the following steps: determining account content of the user about the planning task according to corresponding calculation rules based on the user data of the user and the task requirements of the planning task; And when the account content meets the first execution condition, generating a corresponding execution instruction of the target user based on the planning task. The determining the account content of the user about the planning task according to the corresponding calculation rule based on the user data of the user and the task requirement of the planning task comprises the following steps: Determining the account available fund sum of the user about the planning task according to the account available fund sum calculation rule of the user based on the user data of the user and the task requirement of the automatic buying planning task; When any one user meets the first executi