WO2019062020A1 - Procédé de traitement unifié de tâche asynchrone et appareil, et support d'informations - Google Patents

Procédé de traitement unifié de tâche asynchrone et appareil, et support d'informations Download PDF

Info

Publication number
WO2019062020A1
WO2019062020A1 PCT/CN2018/077672 CN2018077672W WO2019062020A1 WO 2019062020 A1 WO2019062020 A1 WO 2019062020A1 CN 2018077672 W CN2018077672 W CN 2018077672W WO 2019062020 A1 WO2019062020 A1 WO 2019062020A1
Authority
WO
WIPO (PCT)
Prior art keywords
asynchronous task
type
asynchronous
task
service type
Prior art date
Application number
PCT/CN2018/077672
Other languages
English (en)
Chinese (zh)
Inventor
孙强
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019062020A1 publication Critical patent/WO2019062020A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work

Definitions

  • the present application relates to the field of asynchronous processing technologies, and in particular, to a method, an apparatus, and a computer readable storage medium for a unified processing of asynchronous tasks.
  • the present application provides a method, a device, and a computer readable storage medium for asynchronous task processing, which can effectively shorten development time and improve work efficiency.
  • the present application provides a unified processing method for asynchronous tasks, including:
  • Database initialization step generate a script of the asynchronous task according to the basic information of the asynchronous task, and add the script to the database;
  • Code initialization step Add the configuration information of the asynchronous task and the asynchronous task class in the development code, add the business type involved in the asynchronous task in the asynchronous task class, set the processing type involved in each business type, and set the corresponding processing type for each processing type.
  • Business logic
  • Receiving step receiving an asynchronous task from the client, and storing the received asynchronous tasks in a chronological order to the task list;
  • Reading step reading the earliest received asynchronous task from the task list
  • the first determining step is: determining whether the service type of the asynchronous task is a defined service type in the asynchronous task class, and if the service type of the asynchronous task is not a defined service type in the asynchronous task class, determining the asynchronous task The service type is an unknown service type, and the execution fails. If the service type of the asynchronous task is a defined service type in the asynchronous task class, the second determining step is performed;
  • a second determining step determining whether the processing type of the asynchronous task is a processing type defined in the service type, and if the processing type of the asynchronous task is not a processing type defined in the service type, determining the asynchronous task The processing type is an unknown processing type, indicating that the execution fails. If the processing type of the asynchronous task is a defined processing type in the business type, the corresponding business logic is executed.
  • the method further comprises:
  • the third determining step is: determining whether the corresponding business logic is successfully executed. If the execution is successful, the execution is successful; otherwise, the execution is failed.
  • the first determining step further includes:
  • the service type of the asynchronous task is not the defined service type in the asynchronous task class, the service type of the asynchronous task is prompted to be an unknown service type, and the corresponding service type is added in the asynchronous task class.
  • the second determining step further comprises:
  • the processing type of the read asynchronous task is not the processing type defined in the service type, the processing type of the asynchronous task is prompted to be an unknown processing type, and a corresponding processing type is added to the service type.
  • the method further comprises:
  • Recording step record the execution result of each asynchronous task and the reason for the failure of the execution, and count the number of times the asynchronous task fails to execute, record it in the same asynchronous task execution result list in a unified format, and feed back to the relevant personnel in a preset manner.
  • the method further comprises:
  • the fourth determining step is: determining whether the number of times the asynchronous task fails is greater than a preset value
  • the asynchronous task is restarted.
  • the present application further provides an electronic device, including: a memory, a processor, and an asynchronous task unified processing system stored on the memory and operable on the processor, the asynchronous task unified processing system Executed by the processor, the following steps can be implemented:
  • Database initialization step generate a script of the asynchronous task according to the basic information of the asynchronous task, and add the script to the database;
  • Code initialization step Add the configuration information of the asynchronous task and the asynchronous task class in the development code, add the business type involved in the asynchronous task in the asynchronous task class, set the processing type involved in each business type, and set the corresponding processing type for each processing type.
  • Business logic
  • Receiving step receiving an asynchronous task from the client, and storing the received asynchronous tasks in a chronological order to the task list;
  • Reading step reading the earliest received asynchronous task from the task list
  • the first determining step is: determining whether the service type of the asynchronous task is a defined service type in the asynchronous task class, and if the service type of the asynchronous task is not a defined service type in the asynchronous task class, determining the asynchronous task The service type is an unknown service type, and the execution fails. If the service type of the asynchronous task is a defined service type in the asynchronous task class, the second determining step is performed;
  • a second determining step determining whether the processing type of the asynchronous task is a processing type defined in the service type, and if the processing type of the asynchronous task is not a processing type defined in the service type, determining the asynchronous task The processing type is an unknown processing type, indicating that the execution fails. If the processing type of the asynchronous task is a defined processing type in the business type, the corresponding business logic is executed.
  • the first determining step further includes:
  • the service type of the asynchronous task is not the defined service type in the asynchronous task class, the service type of the asynchronous task is prompted to be an unknown service type, and the corresponding service type is added in the asynchronous task class.
  • the second determining step further comprises:
  • the processing type of the read asynchronous task is not the processing type defined in the service type, the processing type of the asynchronous task is prompted to be an unknown processing type, and a corresponding processing type is added to the service type.
  • the present application further provides a computer readable storage medium, which includes an asynchronous task unified processing system, and when the asynchronous task unified processing system is executed by a processor, The asynchronous task unifies any step in the method.
  • the asynchronous task unified processing method, the electronic device and the computer readable storage medium proposed by the application add a script generated by the basic information of the asynchronous task to the database according to the needs of the client, and add configuration information of the asynchronous task in the development code.
  • FIG. 1 is a schematic diagram of a preferred embodiment of an electronic device of the present application.
  • FIG. 2 is a functional block diagram of a preferred embodiment of the asynchronous task unified processing system of FIG. 1;
  • FIG. 3 is a flowchart of a first embodiment of a method for uniformly processing an asynchronous task according to the present application
  • FIG. 4 is a flowchart of a second embodiment of a method for uniformly processing an asynchronous task according to the present application
  • FIG. 5 is a setting frame diagram of an asynchronous task class of the present application.
  • FIG. 1 is a schematic diagram of a preferred embodiment of an electronic device 1 of the present application.
  • the electronic device 1 may be a server, a smart phone, a tablet computer, a personal computer, a portable computer, and other electronic devices having computing functions.
  • the electronic device 1 includes a memory 11, a processor 12, a display 13, and an asynchronous task unified processing system 10 stored on the memory 11 and operable on the processor 12.
  • the electronic device 1 connects one or more clients 3 through the network 2, receives the asynchronous tasks of the client from the client 3, and stores the received tasks into the task list in the order of receiving time.
  • the electronic device 1 can also be connected to a database 4.
  • the database 4 stores a script for generating basic information of an asynchronous task.
  • the network 2 may be a network of a local area network, a wide area network, a metropolitan area network, or the like, and may be a wired network or a wireless network.
  • the client 3 can be a desktop computer, a notebook, a tablet, a mobile phone, or other terminal device that can communicate with an electronic device through a network.
  • the memory 11 includes at least one type of readable storage medium.
  • the at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card type memory, or the like.
  • the memory 11 may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1.
  • the memory 11 may also be an external storage unit of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), and security. Digital (Secure Digital, SD) card, flash card (Flash Card), etc.
  • the memory 11 can be used not only for storing application software and various types of data installed in the electronic device 1, such as an asynchronous task unified processing system 10, a task list, and an asynchronous task execution result list, and can also be used. Temporarily storing data that has been output or is about to be output.
  • the processor 12 in some embodiments, may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as performing asynchronous task unification.
  • CPU Central Processing Unit
  • microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as performing asynchronous task unification.
  • Display 13 can be referred to as a display screen or display unit.
  • the display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display 13 is used to display information processed in the electronic device 1 and a work interface for displaying visualization, such as displaying the result of the task execution (execution failure or execution success), the number of task failures, and the reason for the task failure.
  • the electronic device 1 may further include a user interface
  • the user interface may include an input unit such as a keyboard, a voice output device such as an audio, a headphone, etc.
  • the user interface may further include a standard wired interface and a wireless interface.
  • the program code of the asynchronous task unified processing system 10 is stored in the memory 11 as a computer storage medium, and the processor 12 executes the program code of the asynchronous task unified processing system 10 to implement the following functions:
  • FIG. 2 it is a functional block diagram of a preferred embodiment of the asynchronous task unified processing system 10 of FIG.
  • a module as referred to in this application refers to a series of computer program instructions that are capable of performing a particular function.
  • the asynchronous task unified processing system 10 includes a database initialization module 110, a code initialization module 120, a receiving module 130, a reading module 140, a determining module 150, a recording module 160, and a failure number determining module 170.
  • the database initialization module 110 is configured to generate a script of the asynchronous task according to the basic information of the asynchronous task, and add the script to the database.
  • the basic information includes the task execution frequency, preset values, business name, and business processor.
  • the database initialization module 110 adds a script for generating an asynchronous task, such as a task execution frequency, a preset value, a service name, and a service processor, to the database 4.
  • the task execution frequency (such as the task is fixed every 30 seconds), the preset value (such as the preset value is 20), and the service name includes the service type name and the processing type name; the service processor refers to the service processing corresponding to each processing type. people.
  • the code initialization module 120 is configured to add the configuration information of the asynchronous task and the asynchronous task class in the development code, add the business type involved in the asynchronous task in the asynchronous task class, set the processing type involved in each business type, and perform each processing for each service type.
  • the type sets the corresponding business logic.
  • Set the asynchronous task class add all the business types corresponding to the asynchronous task in the asynchronous task class, set all the corresponding processing types in different business types, and set the corresponding business logic codes in different processing types.
  • the service type is used to roughly distinguish different business logics, and the processing type is used to subdivide different business logics under the same business type. For example, set up an asynchronous task class for a developed asynchronous task, as shown in Figure 5.
  • All the service types of the asynchronous task are added to the asynchronous task class.
  • the service types include service type A 1 , service type A 2, and service type A 3 .
  • All processing type traffic type A 1 provided according to the service type A processing type 1 comprises processing type B 11, type of processing B 12 and the process type B 13 and the like; provided the corresponding business logic code in a different type of processing, such as
  • the corresponding business logic for processing type B 11 is business logic C 11 .
  • the number of processing types of different service types may be different. For example, the number of processing types of the service type A 1 is different from the number of processing types of the service type A 2 .
  • the configuration information of the asynchronous task is set in the development code, and the configuration information includes the task code and the task group.
  • the task code is used to standardize and quickly query the service type, processing type, and business logic of an asynchronous task. For example, if the service type of an asynchronous task is the service type A 1 and the corresponding processing type is the processing type B 12 , the asynchronous The tasks of the task are coded as A 1 -B 12 ; the task group is used to store the business logic in groups for the business type and processing type.
  • the receiving module 130 is configured to receive an asynchronous task from the client, and store the received asynchronous task in a chronological order to the task list.
  • the receiving module 130 receives the asynchronous task of the client 3 through the network 2, and stores the received asynchronous tasks in the task list in the order of receiving time.
  • the receiving module 130 receives the asynchronous task a, the asynchronous task b, the asynchronous task c, and the asynchronous task d from the client 3, and the asynchronous task a, the asynchronous task b, the asynchronous task c, and the asynchronous task d are in accordance with the receiving time.
  • the order is stored in the task list of the memory 11.
  • the reading module 140 is configured to read the earliest received asynchronous task from the task list. For example, the read module 140 reads the earliest received asynchronous task a in the task list.
  • the determining module 150 is configured to determine whether the service type and the processing type of the asynchronous task are the defined service type and processing type in the asynchronous task class, and if the service type of the asynchronous task is not the defined service type in the asynchronous task class Or the processing type determines that the service type or processing type of the asynchronous task is an unknown service type or an unknown processing type. Otherwise, the corresponding business logic is executed and whether the execution is successful.
  • the determining module 150 determines whether the service type of the asynchronous task a read by the reading module 140 is a defined service type in the asynchronous task class. Assume that the business type of asynchronous task a is not the defined business type in the asynchronous task class, then the prompt: execution fails.
  • the service type of the asynchronous task a is a defined service type in the asynchronous task class
  • the prompt the execution fails.
  • the processing type of the asynchronous task a is the processing type defined in the service type
  • the corresponding business logic is executed and it is determined whether the corresponding business logic is successfully executed. Assume that the execution is successful, then the prompt: the execution is successful; if the execution fails, the prompt: the execution fails.
  • the recording module 160 is configured to record the execution result of each asynchronous task and the reason for the failure of the execution, and count the number of times the asynchronous task fails to be executed, and record it in the same asynchronous task execution result list in a unified format, and feed back in a preset manner. Related personnel.
  • the recording module 160 records the execution result of the asynchronous task a and the reason why the asynchronous task a fails to execute, and counts the number of times the asynchronous task a fails to execute, and finally records it in the same asynchronous task execution result list in a unified format, and displays it on the display 13
  • the software development engineer processes the failure reason of the asynchronous task a in the asynchronous task execution result list. For example, if the service type of the asynchronous task a is not the defined service type in the asynchronous task class, the software development engineer only needs to be in the asynchronous task class. Add the appropriate business type without having to add the basic and configuration information again
  • the number of failures determining module 170 is configured to determine whether the number of failed asynchronous tasks is greater than a preset value; if the number of failed asynchronous tasks is greater than a preset value, the number of failed asynchronous tasks exceeds a preset value, and the task is no longer executed. If the number of times the asynchronous task fails is less than or equal to the preset value, the asynchronous task is restarted. The failure number determination module 170 determines whether the number of times the asynchronous task a fails to execute is greater than 20 times.
  • the asynchronous task a fails more than 20 times, it is prompted that the asynchronous task a fails more than 20 times and the asynchronous task is no longer executed; if the asynchronous task a fails less than or equal to 20 times, the asynchronous Task a is reloaded into the new task list and the asynchronous task a is re-executed.
  • FIG. 3 it is a flowchart of the first embodiment of the unified processing method for asynchronous tasks of the present application.
  • the database initialization module 110 generates a script of the asynchronous task according to the basic information of the asynchronous task, and adds the script to the database.
  • the basic information includes the task execution frequency, preset values, business name, and business processor.
  • the database initialization module 110 defines a basic generation information such as a task execution frequency, a preset value, a service name, and a service processor to generate a script, which is added to the database 4.
  • the task execution frequency (such as the task is fixed every 30 seconds), the preset value (such as the preset value is 20), and the service name includes the service type name and the processing type name; the service processor refers to the service processing corresponding to each processing type. people.
  • Step S20 the code initialization module 120 adds the configuration information of the asynchronous task and the asynchronous task class in the development code, adds the business type involved in the asynchronous task in the asynchronous task class, sets the processing type involved in each service type, and performs for each processing
  • the type sets the corresponding business logic.
  • Set the asynchronous task class add all the business types corresponding to the asynchronous task in the asynchronous task class, set all the corresponding processing types in different business types, and set the corresponding business logic codes in different processing types.
  • the service type is used to roughly distinguish different business logics, and the processing type is used to subdivide different business logics under the same business type.
  • an asynchronous task class of an insurance company claims system is set, and an service type of adding an asynchronous task in an asynchronous task class includes an accident insurance class A 1 , a travel insurance class A 2 , a health insurance class A 3 , a corporate insurance class A 4 , Property insurance class A 5 and other business types.
  • the types of treatment corresponding to accident insurance class A 1 include one-year traffic accident insurance B 11 , short-term traffic accident insurance B 12 , aviation accident insurance B 13 , one-year personal accident insurance B 14 and short-term personal accident insurance B 15 Types of.
  • the configuration information of the asynchronous task is set in the development code, and the configuration information includes the task code and the task group.
  • tasks and encoding specification for a quick reference asynchronous tasks corresponding to the service type, service type, and processing logic, e.g., a service type of asynchronous tasks accident insurance A 1, corresponding to the processing type is the short-term traffic accident insurance B 12, Then the task of the asynchronous task is coded as A 1 -B 12 ; the task group is used to store the business logic in groups for the service type and the processing type.
  • step S30 the receiving module 130 receives the asynchronous task from the client, and stores the received asynchronous task in the chronological order to the task list.
  • the receiving module 130 receives the asynchronous task of the client 3 through the network 2, and stores the received asynchronous tasks in the task list in the order of receiving time.
  • the receiving module 130 receives the asynchronous tasks of the Bank of Communications: the Bank of Communications flight delay case, the Bank of Communications accidental death/disability case, the Bank of Communications overseas travel case, and the Bank of Communications flight delay case, the Bank of Communications flight accidental death
  • the asynchronous tasks of the disability case and the overseas travel case of the Bank of Communications are stored in the task list in the order of receiving time.
  • step S40 the reading module 140 reads the earliest received asynchronous task from the task list.
  • the reading module 140 reads the earliest received asynchronous task in the task list as a Bank of Communications flight delay case.
  • step S50 the determining module 150 determines whether the service type of the asynchronous task is a defined service type in the asynchronous task class. If the service type of the asynchronous task is not a defined service type in the asynchronous task class, the asynchronous task is determined. The service type is an unknown service type, and step S100 is performed. If the service type of the asynchronous task is a defined service type in the asynchronous task class, step S60 is performed. The determining module 150 determines whether the service type of the read asynchronous task is a defined service type in the asynchronous task class.
  • step S100 is performed; if the service type of the asynchronous task is the defined service type in the asynchronous task class, step S60 is performed. For example, if the judgment module 150 determines that the business type of the read traffic bank flight delay case is the accident insurance class A 1 defined in the asynchronous task class, step S60 is performed.
  • step S60 the determining module 150 determines whether the processing type of the asynchronous task is a processing type defined in the service type. If the processing type of the asynchronous task is not the processing type defined in the service type, determining the asynchronous task If the processing type of the asynchronous task is the processing type defined in the service type, step S70 is performed. The determining module 150 determines whether the processing type of the read asynchronous task is a processing type defined in the task type. Assuming that the processing type of the asynchronous task is not the processing type defined in the service type, step S100 is performed; if the processing type of the asynchronous task is the processing type defined in the service type, step S70 is performed. For example, the type of processing Bank of flights judgment module 150 judges read delay case for accident insurance as defined in A 1-year traffic accident insurance B 11, proceed to step S70.
  • Step S70 When the processing type of the read service type is a processing type defined in the service type, execute corresponding business logic.
  • the judging module 150 judges that the processing type of the read traffic bank flight delay case is the one-year traffic accident insurance B 11 defined in the task type, and executes the one-year traffic accident insurance business logic.
  • step S100 if the corresponding judgment is negative, the execution failure is prompted. If the judgment module 150 performs the corresponding judgment to be no, the prompt: the execution fails.
  • the asynchronous task unified processing method proposed in this embodiment adds a script for defining the basic information of the asynchronous task in the database; then sets all the business logics corresponding to the business type, the processing type, and the processing type in the asynchronous task class, and simultaneously develops the code.
  • the configuration information of the asynchronous task is set; the first determining step and the second determining step are performed to make different asynchronous tasks processed in the corresponding business logic, thereby shortening the development time and improving the working efficiency.
  • FIG. 4 it is a flowchart of the second embodiment of the method for uniformly processing asynchronous tasks of the present application.
  • the asynchronous task unified processing method includes: Step S10 - Step S140.
  • the steps S10 to S70 and the step S100 are substantially the same as those in the first embodiment, and details are not described herein again.
  • step S80 the determining module 150 determines whether the corresponding business logic is successfully executed. If the execution is successful, the execution is successful; otherwise, the execution fails. For example, the determination module 150 determines whether the execution of the one-year traffic accident insurance business logic is successful. Assuming that the execution is successful, step S90 is performed; if the execution fails, step S100 is performed.
  • step S90 if the execution of the corresponding business logic is successful, the execution is prompted to be successful. If the judgment module 150 performs the business logic execution of the one-year traffic accident insurance successfully, it prompts: the execution is successful.
  • step S110 the recording module 160 records the execution result of each asynchronous task and the reason for the failure of the execution, and counts the number of times the asynchronous task fails to execute, and records it in the same asynchronous task execution result list in a unified format, and feeds back in a preset manner.
  • the recording module 160 records the execution result of the asynchronous task and the reason for the asynchronous task execution failure, and counts the number of times the asynchronous task fails to execute, and finally records in the same asynchronous task execution result list in a unified format, and provides feedback in the manner displayed by the display 13. To a software development engineer.
  • the record module 160 records the name of the asynchronous task: the Bank of Communications flight delay case, the reason for the failure (for example, the service type of the Bank of Communications flight delay case is not the defined service type in the asynchronous task class) and The number of execution failures is increased by one. (If the number of failures is 2 before the task is processed, the number of failures after the task is 3). After all the asynchronous tasks have been processed, the results are recorded in a unified format in the same asynchronous task execution result list, and fed back to the software development engineer in the manner displayed by the display 13.
  • the preset manner further includes a mail or a short message.
  • step S120 the failure number determination module 170 determines whether the number of times the asynchronous task fails is greater than a preset value; if the number of failed asynchronous tasks is greater than a preset value, step S130 is performed; if the number of failed asynchronous tasks is less than or equal to a preset For the value, step S140 is performed.
  • the number of failures determining module 170 determines whether the number of times the asynchronous task fails is greater than a preset value; if the number of failed asynchronous tasks is greater than a preset value, step S130 is performed; and if the number of failed asynchronous tasks is less than or equal to a preset value, Step S140 is performed. For example, if the number-of-failure determination module 170 determines that the number of times the bankruptcy flight delay case has failed to be processed is greater than 20 times, step S130 is performed.
  • Step S130 If the number of failures of the asynchronous task is greater than a preset value, the prompting: the number of failed asynchronous tasks exceeds a preset value, and the asynchronous task is no longer executed. For example, if the Bank of Communications flight delay case fails to process more than 20 times, it indicates that the Bank of Communications flight delay case has failed more than 20 times and the task is no longer executed.
  • step S140 if the number of failures of the asynchronous task is less than or equal to the preset value, the determining module 150 processes the failure reason and restarts the execution of the asynchronous task. For example, if the number of failures of the Bank of Communications flight delay case is less than or equal to 20 times, the software development engineer adds the corresponding service type or processing type according to the failure reason of the asynchronous task in the asynchronous task execution result list and puts the Bank of Communications flight delay case to Restart the asynchronous task in the new task list.
  • the asynchronous task unified processing method proposed in this embodiment adds a script defined by the basic information of the asynchronous task in the database; then sets all the service types, processing types, and processing types in the asynchronous task class.
  • Corresponding business logic at the same time, setting configuration information of the asynchronous task in the development code; and processing the different asynchronous tasks in the corresponding business logic by using the first determining step, the second determining step, the third determining step, and the fourth determining step, It also counts the number of failures and the reasons for the failure of asynchronous tasks. It is convenient for software development engineers to solve problems for failure reasons, shorten development time, and improve work efficiency.
  • the embodiment of the present application further provides a computer readable storage medium, which includes an asynchronous task unified processing system 10, and when the asynchronous task unified processing system 10 is executed by the processor, the following operations are implemented:
  • Database initialization step generate a script of the asynchronous task according to the basic information of the asynchronous task, and add the script to the database;
  • Code initialization step Add the configuration information of the asynchronous task and the asynchronous task class in the development code, add the business type involved in the asynchronous task in the asynchronous task class, set the processing type involved in each business type, and set the corresponding processing type for each processing type.
  • Business logic
  • Receiving step receiving an asynchronous task from the client, and storing the received asynchronous tasks in a chronological order to the task list;
  • Reading step reading the earliest received asynchronous task from the task list
  • the first determining step is: determining whether the service type of the asynchronous task is a defined service type in the asynchronous task class, and if the service type of the asynchronous task is not a defined service type in the asynchronous task class, determining the asynchronous task The service type is an unknown service type, and the execution fails. If the service type of the asynchronous task is a defined service type in the asynchronous task class, the second determining step is performed;
  • a second determining step determining whether the processing type of the asynchronous task is a processing type defined in the service type, and if the processing type of the asynchronous task is not a processing type defined in the service type, determining the asynchronous task The processing type is an unknown processing type, indicating that the execution fails. If the processing type of the asynchronous task is a defined processing type in the business type, the corresponding business logic is executed.
  • the method further comprises:
  • the third determining step is: determining whether the corresponding business logic is successfully executed. If the execution is successful, the execution is successful; otherwise, the execution is failed.
  • the first determining step further includes:
  • the service type of the asynchronous task is not the defined service type in the asynchronous task class, the service type of the asynchronous task is prompted to be an unknown service type, and the corresponding service type is added in the asynchronous task class.
  • the second determining step further comprises:
  • the processing type of the read asynchronous task is not the processing type defined in the service type, the processing type of the asynchronous task is prompted to be an unknown processing type, and a corresponding processing type is added to the service type.
  • the method further comprises:
  • Recording step record the execution result of each asynchronous task and the reason for the failure, and count the number of failed asynchronous task executions, record them in the same asynchronous task execution result list in a unified format, and feed back to relevant personnel in a preset manner.
  • the method further comprises:
  • the fourth determining step is: determining whether the number of times the asynchronous task fails is greater than a preset value
  • the asynchronous task is restarted.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

La présente invention concerne un procédé de traitement unifié de tâche asynchrone et un appareil, et un support d'informations. Le procédé consiste : à générer des scripts de tâches asynchrones conformément aux informations de base des tâches asynchrones, et à ajouter les scripts dans une base de données ; à ajouter des informations de configuration et des classes de tâche asynchrone des tâches asynchrones dans un code de développement, à ajouter des types de services impliqués dans les tâches asynchrones dans des classes de tâches asynchrones, à définir des types de traitement impliqués dans les types de services, et à définir une logique de service correspondante pour les types de traitement ; à recevoir les tâches asynchrones provenant d'un client, et à stocker les tâches asynchrones reçues dans une liste de tâches conformément à une séquence temporelle ; à lire, à partir de la liste de tâches, une tâche asynchrone reçue en premier ; et à déterminer le type de service et le type de traitement de la tâche asynchrone au moyen d'une première étape de détermination et d'une seconde étape de détermination. Le temps de développement est raccourci et l'efficacité de fonctionnement est améliorée.
PCT/CN2018/077672 2017-09-30 2018-02-28 Procédé de traitement unifié de tâche asynchrone et appareil, et support d'informations WO2019062020A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710916221.7 2017-09-30
CN201710916221.7A CN108427599A (zh) 2017-09-30 2017-09-30 异步任务统一处理方法、装置及存储介质

Publications (1)

Publication Number Publication Date
WO2019062020A1 true WO2019062020A1 (fr) 2019-04-04

Family

ID=63155653

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077672 WO2019062020A1 (fr) 2017-09-30 2018-02-28 Procédé de traitement unifié de tâche asynchrone et appareil, et support d'informations

Country Status (2)

Country Link
CN (1) CN108427599A (fr)
WO (1) WO2019062020A1 (fr)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309712B (zh) * 2018-09-07 2022-06-17 平安科技(深圳)有限公司 基于接口异步调用的数据传输方法、服务器及存储介质
CN113011907A (zh) * 2020-12-18 2021-06-22 腾讯科技(深圳)有限公司 数据处理方法、装置、存储介质及设备
CN116775314A (zh) * 2023-08-18 2023-09-19 国能日新科技股份有限公司 异步处理方法、装置和设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100198908A1 (en) * 2009-01-30 2010-08-05 Oracle International Corporation Implementing Asynchronous Processes on a Mobile Client
CN106293922A (zh) * 2016-08-16 2017-01-04 天津西瑞尔信息工程有限公司 异步任务处理方法及系统
CN106648847A (zh) * 2016-10-14 2017-05-10 郑州云海信息技术有限公司 一种云计算操作系统中异步任务管理方法及装置
CN106980546A (zh) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 一种任务异步执行方法、装置及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8713571B2 (en) * 2010-02-17 2014-04-29 Microsoft Corporation Asynchronous task execution
US9170798B2 (en) * 2012-03-02 2015-10-27 Vmware, Inc. System and method for customizing a deployment plan for a multi-tier application in a cloud infrastructure
CN105389209B (zh) * 2015-12-25 2019-04-26 中国建设银行股份有限公司 一种异步批量任务处理方法及系统
CN105700937A (zh) * 2016-01-04 2016-06-22 北京百度网讯科技有限公司 多线程任务处理方法和装置
CN107135188B (zh) * 2016-02-29 2020-09-25 阿里巴巴集团控股有限公司 金融信息交换fix协议的业务实现方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100198908A1 (en) * 2009-01-30 2010-08-05 Oracle International Corporation Implementing Asynchronous Processes on a Mobile Client
CN106980546A (zh) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 一种任务异步执行方法、装置及系统
CN106293922A (zh) * 2016-08-16 2017-01-04 天津西瑞尔信息工程有限公司 异步任务处理方法及系统
CN106648847A (zh) * 2016-10-14 2017-05-10 郑州云海信息技术有限公司 一种云计算操作系统中异步任务管理方法及装置

Also Published As

Publication number Publication date
CN108427599A (zh) 2018-08-21

Similar Documents

Publication Publication Date Title
US10241848B2 (en) Personalized diagnostics, troubleshooting, recovery, and notification based on application state
US9350747B2 (en) Methods and systems for malware analysis
US10033600B2 (en) Client application integration for workflows
US11503070B2 (en) Techniques for classifying a web page based upon functions used to render the web page
US11620444B2 (en) Providing action associated with event detected within communication
US10175954B2 (en) Method of processing big data, including arranging icons in a workflow GUI by a user, checking process availability and syntax, converting the workflow into execution code, monitoring the workflow, and displaying associated information
US10394633B2 (en) On-demand or dynamic diagnostic and recovery operations in conjunction with a support service
US10956309B2 (en) Source code management systems and methods
CN111880967A (zh) 云场景下的文件备份方法、装置、介质和电子设备
WO2019062020A1 (fr) Procédé de traitement unifié de tâche asynchrone et appareil, et support d'informations
WO2019061998A1 (fr) Procédé de distribution intelligente de points d'arrêt, dispositif électronique et support d'informations lisible par ordinateur
US10185613B2 (en) Error determination from logs
WO2019136813A1 (fr) Procédé de gestion de fichiers d'api, serveur, et support de stockage
US9785724B2 (en) Secondary queue for index process
CN116661936A (zh) 页面数据的处理方法、装置、计算机设备及存储介质
US11023479B2 (en) Managing asynchronous analytics operation based on communication exchange
US10171687B2 (en) Providing content and attachment printing for communication
CN113515265B (zh) 站点配置方法、装置、设备及计算机可读存储介质
US9921901B2 (en) Alerting service desk users of business services outages
CN112818204A (zh) 一种业务的处理方法、装置、设备及存储介质
JP2023553587A (ja) 第三者ライブラリ開発システムによる使用のためのアプリケーションエラーデータの提供
CN110958243A (zh) 一种网络漏洞提交方法、装置、存储介质及电子设备
US8935343B2 (en) Instant messaging network resource validation
US20180089450A1 (en) Taxonomy-facilitated actions for content
US11614993B1 (en) System and method for restoring deleted objects and their assignments to other objects based on any deletion of the other objects

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18860474

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18860474

Country of ref document: EP

Kind code of ref document: A1