Method, device and equipment for processing asynchronous task and computer readable medium

By constructing the operation configuration of asynchronous tasks and monitoring business data sources in the warehouse management system, asynchronous tasks are automatically processed, which solves the problem of low efficiency of asynchronous task processing in the existing technology and realizes efficient automated processing of asynchronous tasks.

CN118552123APending Publication Date: 2024-08-27BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410612355.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

After the asynchronous task execution fails in the existing warehouse management system, manual processing is required, resulting in low processing efficiency.

Method used

By building the operation configuration of the asynchronous task, monitoring the current business data of the business data source, filtering out the data that meets the operating conditions, and generating processing messages to start the asynchronous task, realizing automated processing.

Benefits of technology

It improves the processing efficiency of asynchronous tasks, reduces manual intervention, can process asynchronous tasks in a timely manner, and improves the automated processing capabilities of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552123A
    Figure CN118552123A
Patent Text Reader

Abstract

The invention discloses a method, a device and equipment for processing an asynchronous task and a computer readable medium, and relates to the technical field of warehouse storage. A specific embodiment of the method comprises the following steps: after execution of an asynchronous task fails, constructing operation configuration of the asynchronous task according to a business data source of the asynchronous task and an operation condition of the asynchronous task; in response to an output message of the operation configuration, monitoring current service data of the asynchronous task according to the service data source in the operation configuration, and screening out the current service data of the service data source to determine that the current service data meets the operation condition in the operation configuration; and generating a processing message of the asynchronous task based on the current service data, and starting the asynchronous task through the processing message. According to the embodiment, the asynchronous task can be processed in time, and the processing efficiency of the asynchronous task is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of warehouse storage technology, and in particular to a method, device, equipment and computer-readable medium for processing asynchronous tasks. Background Art

[0002] Warehouse Management System (WMS) is a real-time computer software system that can better manage information, resources, behaviors, inventory and distribution operations and improve efficiency according to business rules and operating principles.

[0003] At present, there are some asynchronous tasks in the WMS system, such as order initialization, item positioning and package calculation. When an asynchronous task fails to execute, it will be automatically retried. However, when the number of retries exceeds a certain number, it will no longer be retried and will enter the task exception processing center.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: asynchronous tasks entering the task exception processing center can only be processed manually, resulting in low processing efficiency. Summary of the invention

[0005] In view of this, embodiments of the present invention provide a method, apparatus, device and computer-readable medium for processing asynchronous tasks, which can process asynchronous tasks in a timely manner and improve the processing efficiency of asynchronous tasks.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing an asynchronous task is provided, comprising:

[0007] After the asynchronous task fails to execute, constructing the operation configuration of the asynchronous task according to the business data source of the asynchronous task and the operation condition of the asynchronous task;

[0008] In response to the output message of the operation configuration, monitoring the current business data of the asynchronous task according to the business data source in the operation configuration, and filtering out the current business data of the business data source to determine that the current business data meets the operation condition in the operation configuration;

[0009] A processing message of the asynchronous task is generated based on the current business data, and the asynchronous task is started through the processing message.

[0010] After the asynchronous task fails to execute, the operation configuration of the asynchronous task is constructed according to the business data source of the asynchronous task and the operation condition of the asynchronous task, including:

[0011] After the asynchronous task fails to execute, the asynchronous task is filtered out according to the processing time of the asynchronous task in the task exception processing center;

[0012] Identify the business data source of the asynchronous task and the operation condition of the asynchronous task;

[0013] The operation configuration of the asynchronous task is constructed and stored according to the business data source of the asynchronous task and the operation condition of the asynchronous task.

[0014] The business data source identifying the asynchronous task and the operation condition of the asynchronous task include:

[0015] In the publish-subscribe page, receiving an instruction for processing an asynchronous task to identify a business data source of the asynchronous task and an operation condition of the asynchronous task;

[0016] or,

[0017] In the publish-subscribe page, the task template of the asynchronous task is used to identify the business data source of the asynchronous task and the operation condition of the asynchronous task.

[0018] The monitoring the current business data of the asynchronous task according to the business data source in the operation configuration includes:

[0019] The current business data of the asynchronous task is monitored according to the business data source in the operation configuration through a plug-in or middleware.

[0020] The determining that the current service data satisfies the operation condition in the operation configuration includes:

[0021] The operation condition includes a business data table and / or a business database, and a monitoring field in the business data table and / or the business database is used as the current business data;

[0022] It is determined that each monitoring field of the current service data satisfies the corresponding execution parameter in the operation condition.

[0023] The starting the asynchronous task by processing the message comprises:

[0024] The asynchronous task is started by triggering the processing message using a user interface framework, middleware or network service.

[0025] The starting of the asynchronous task comprises:

[0026] The asynchronous task is started in the warehouse management system.

[0027] According to a second aspect of an embodiment of the present invention, there is provided an apparatus for processing an asynchronous task, comprising:

[0028] A configuration module, used for constructing an operation configuration of the asynchronous task according to a business data source of the asynchronous task and an operation condition of the asynchronous task after the asynchronous task fails to execute;

[0029] A monitoring module, configured to respond to an output message of the operation configuration, monitor the current business data of the asynchronous task according to the business data source in the operation configuration, and filter out the current business data of the business data source to determine that the current business data meets the operation condition in the operation configuration;

[0030] The task module is used to generate a processing message of the asynchronous task based on the current business data, and start the asynchronous task through the processing message.

[0031] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for processing an asynchronous task, comprising:

[0032] one or more processors;

[0033] a storage device for storing one or more programs,

[0034] When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.

[0035] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described above is implemented.

[0036] One embodiment of the above invention has the following advantages or beneficial effects: after the asynchronous task fails to execute, the operation configuration of the asynchronous task is constructed according to the business data source of the asynchronous task and the operation condition of the asynchronous task; in response to the output message of the operation configuration, the current business data of the asynchronous task is monitored according to the business data source in the operation configuration, and the current business data of the business data source is screened to determine whether the current business data meets the operation condition in the operation configuration; a processing message of the asynchronous task is generated based on the current business data, and the asynchronous task is started through the processing message. By monitoring the current business data of the asynchronous task, when the current business data meets the operation condition, the asynchronous task can be started in time, so that the asynchronous task can be processed in time, and the processing efficiency of the asynchronous task is improved.

[0037] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0039] Figure 1 is a schematic diagram of the main flow of a method for processing asynchronous tasks according to an embodiment of the present invention;

[0040] Figure 2 is a schematic diagram of a flow chart of an operation configuration for constructing an asynchronous task according to an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram of identifying a business data source of an asynchronous task in a publish-subscribe page according to an embodiment of the present invention;

[0042] Figure 4 is a schematic diagram of identifying an operation condition of an asynchronous task in a publish-subscribe page according to an embodiment of the present invention;

[0043] Figure 5 is a class diagram of middleware according to an embodiment of the present invention;

[0044] Figure 6 is a schematic diagram of a process for determining whether current business data satisfies an operation condition in an operation configuration according to an embodiment of the present invention;

[0045] Figure 7 is a class diagram of processing messages of an asynchronous task according to an embodiment of the present invention;

[0046] Figure 8 is an application schematic diagram of a device for processing asynchronous tasks according to an embodiment of the present invention;

[0047] Fig. 9 is a schematic diagram of the main structure of a device for processing asynchronous tasks according to an embodiment of the present invention;

[0048] Fig.10 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0049] Fig.11 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0051] When a failed asynchronous task enters the task exception processing center, the staff will reset the asynchronous task at regular intervals or when notified that the task needs to be reset. As an example, through the asynchronous task displayed in the operation interface, the staff implements the reset of the asynchronous task in the operation interface.

[0052] Asynchronous tasks entering the task exception processing center can only be reset manually, but the timing of manual reset is uncertain. Reset is required on-site or after communication and confirmation with other personnel. The reasons are as follows:

[0053] (1) There are many reasons for the failure of asynchronous tasks, such as missing basic data configuration, insufficient inventory or document abnormalities. The handling of the above reasons depends on the operations of other warehouse personnel. However, after the operations are completed, other warehouse personnel will not actively notify the asynchronous task exception handler. Therefore, the asynchronous task exception handler can only handle failed asynchronous tasks at regular intervals.

[0054] (2) The retry mechanism of asynchronous tasks is to actively retry a certain number of times. If the task is abnormal due to missing basic data configuration, insufficient inventory, or document abnormality, there is a high probability that the retry will fail even if it is retried a certain number of times, and the retry will increase the pressure on the system to a certain extent.

[0055] In addition, when the number of failed asynchronous tasks is large, it takes time and effort to reset them, resulting in low processing efficiency.

[0056] In order to improve the processing efficiency of asynchronous tasks, the following technical solutions in the embodiments of the present invention may be adopted.

[0057] See also Figure 1 , Figure 1 It is a main flow chart of a method for processing an asynchronous task according to an embodiment of the present invention, which starts the asynchronous task in a timely manner by monitoring the current business data of the asynchronous task.

[0058] like Figure 1 As shown, the specific steps include:

[0059] S101. After the asynchronous task fails to execute, an operation configuration of the asynchronous task is constructed according to the business data source of the asynchronous task and the operation condition of the asynchronous task.

[0060] In an embodiment of the present invention, it is necessary to process asynchronous tasks. As an example, asynchronous tasks in a warehouse management system are processed. Asynchronous tasks include order initialization, item location, and package calculation. It can be understood that asynchronous tasks are time-consuming tasks in a warehouse management system, and asynchronous tasks involve orders and items.

[0061] After an asynchronous task fails to execute, the asynchronous task enters the task exception processing center. There is a corresponding operation configuration for each asynchronous task. The operation configuration is the basis for processing the asynchronous task. The operation configuration of the asynchronous task can be constructed according to the business data source of the asynchronous task and the operation conditions of the asynchronous task.

[0062] See also Figure 2 , Figure 2 This is a flow chart of the operation configuration of constructing an asynchronous task according to an embodiment of the present invention. Specifically, it includes the following steps:

[0063] S201, when an asynchronous task fails to execute, the asynchronous task is screened out according to the processing time of the asynchronous task in the task exception processing center.

[0064] After the asynchronous task execution in the warehouse management system fails, the asynchronous task needs to be sent to the task exception processing center to realize manual processing of the asynchronous task. Considering that there are many reasons for the failure of asynchronous tasks, the efficiency of manual processing of asynchronous tasks is low. Asynchronous tasks can be screened out according to the processing time point of asynchronous tasks in the task exception processing center.

[0065] The processing time point of the asynchronous task is the starting time point of processing the asynchronous task. As an example, the processing time point of the asynchronous task includes the time point when the asynchronous task enters the task exception processing center. As another example, the processing time point of the asynchronous task includes the time point when the task exception processing center presets the start of processing the asynchronous task.

[0066] In the embodiment of the present invention, one or more asynchronous tasks may be screened out at one time. S202 and S203 are performed for each asynchronous task.

[0067] S202: In the publish-subscribe page, identify the business data source of the asynchronous task and the operation conditions of the asynchronous task.

[0068] For asynchronous tasks, active processing of tasks needs to be implemented according to the operation configuration. In the embodiment of the present invention, the business data source of the asynchronous task and the operation condition of the asynchronous task can be identified by publishing and subscribing pages.

[0069] The publish and subscribe page is a front-end page where interaction with users is achieved.

[0070] In one embodiment of the present invention, in the publish and subscribe page, an instruction for processing an asynchronous task is received to identify the business data source of the asynchronous task and the operating conditions of the asynchronous task; or, in the publish and subscribe page, a task template of the asynchronous task is used to identify the business data source of the asynchronous task and the operating conditions of the asynchronous task.

[0071] Specifically, in the publish-subscribe page, the business data source of the asynchronous task and the operation condition of the asynchronous task are identified by receiving the instruction for processing the asynchronous task. The data in the instruction for processing the asynchronous task includes the business data source and the operation condition.

[0072] As an example, the business data source includes: a uniform resource locator (URL) of the business data source, a user ID, and a password. The operation condition includes an execution parameter. As an example, the execution parameter includes: a monitoring field in a business data table, a monitoring field of a business database, and a preset monitoring field.

[0073] See also Figure 3 , Figure 3 It is a schematic diagram of identifying the business data source of an asynchronous task in a publish-subscribe page according to an embodiment of the present invention.

[0074] Figure 3 The publish and subscribe page in includes: data source name, data source type, data source URL, connection parameters, user ID and password. As an example, data source types include MySQL, middleware and Elasticsearch. It can be understood that the technical solution in the embodiment of the present invention is applicable to a variety of data source types. Receive instructions for processing asynchronous tasks, and use the data of the instructions to fill in the data source name, data source type, data source URL, connection parameters, user ID and password. The above filling process is to identify the business data source of the asynchronous task and the operating conditions of the asynchronous task in the publish and subscribe page.

[0075] See also Figure 4 , Figure 4 It is a schematic diagram of identifying the operation conditions of an asynchronous task in a publish-subscribe page according to an embodiment of the present invention.

[0076] Figure 4 The publish and subscribe page in includes: monitoring type, monitoring content, monitoring method, notification method, notification address and notification failure handling. The monitoring type involves business data tables and / or business databases. The monitoring content involves monitoring fields. The publish and subscribe page also includes Figure 4 The execution parameters are not shown in the figure. The execution parameters include a trigger field for the asynchronous task to be executed again.

[0077] Figure 4The monitoring methods include canal monitoring or trigger monitoring. Canal is a tool based on incremental log parsing of MySQL database. You can also preset the notification method, notification address and notification failure processing. The notification method is the way to send the monitoring results. As an example, the notification method includes email or system message. The notification address is the address for receiving emails or system messages of the monitoring results. The notification failure processing includes timed retry or no processing.

[0078] In addition, in the publish and subscribe page, the task template of the asynchronous task is used to identify the business data source of the asynchronous task and the operating conditions of the asynchronous task. The task template of the asynchronous task records the business data source of the asynchronous task and the operating conditions of the asynchronous task. Therefore, the task template of the asynchronous task can be directly used to identify the business data source of the asynchronous task and the operating conditions of the asynchronous task. It can be understood that in the publish and subscribe page, the process of obtaining the business data source and the operating conditions of the asynchronous task from the task template of the asynchronous task is to identify the business data source of the asynchronous task and the operating conditions of the asynchronous task.

[0079] S203: Construct and store the operation configuration of the asynchronous task according to the business data source of the asynchronous task and the operation condition of the asynchronous task.

[0080] After determining the business data source of the asynchronous task and the operation conditions of the asynchronous task, the operation configuration of the asynchronous task can be constructed based on the above business data source and operation conditions. For each asynchronous task, the operation configuration is different due to different business data sources or operation conditions. As an example, a data table is established based on the business data source and operation conditions. The data table is used as the operation configuration of the asynchronous task. For example, the corresponding relationship between the data table and the asynchronous task is established in advance. In this way, the asynchronous task is processed using the operation configuration in the data table.

[0081] The operation configuration may be stored in the database based on the identifier of the asynchronous task. As an example, the operation configuration may include: monitoring type, monitoring content, monitoring method, notification method, notification address, notification failure processing, execution parameters, creator, creation time, updater and update time.

[0082] exist Figure 2 In the embodiment, the operation configuration of the asynchronous task is constructed by identifying the business data source of the asynchronous task and the operation condition of the asynchronous task on the publish-subscribe page.

[0083] S102 . In response to an output message of the operation configuration, the current business data of the asynchronous task is monitored according to the business data source in the operation configuration, and the current business data of the business data source is filtered out to determine that the current business data meets the operation conditions in the operation configuration.

[0084] The function of the operation configuration is to monitor the current business data of the asynchronous task. For the asynchronous task, the current business data is the monitoring object. The trigger condition for monitoring the current business data is the input message of the operation configuration. The output message of the operation configuration is the message output after the operation configuration is built. The output message of the operation configuration means that the operation configuration has been built and can be used to implement monitoring. According to the business data source in the operation configuration, the current business data of the asynchronous task is monitored, and the current business data belonging to the business data source is filtered out. Then, in the current business data of the business data source, it is determined whether the current business data meets the operation conditions in the operation configuration.

[0085] In one embodiment of the present invention, the current business data of the asynchronous task is monitored according to the business data source in the operation configuration through a plug-in or middleware. As an example, the middleware includes a canal and / or a message queue listener (MQListener).

[0086] See also Figure 5 , Figure 5 It is an implementation class diagram of the middleware according to an embodiment of the present invention. Figure 5 The middleware in includes canal and MQListener.

[0087] Figure 5 In the example, the DateChangeLiltener interface is used to execute the processDateChange() method. Specifically, the CanalDateChangeListener() method in canal can be called to listen to the current business data of the asynchronous task according to the business data source in the operation configuration. The MQDateChangeListener method in MQListener can also be called to listen to the current business data of the asynchronous task according to the business data source in the operation configuration.

[0088] Use canal and MQListener to monitor the current business data of the asynchronous task according to the business data source in the operation configuration.

[0089] See also Figure 6 , Figure 6 This is a flow chart of determining that current business data meets the operation conditions in the operation configuration according to an embodiment of the present invention. Specifically, the following steps are included:

[0090] S601. The operation condition includes a business data table and / or a business database, and a monitoring field in the business data table and / or the business database is used as current business data.

[0091] The business data table and / or business database included in the operation conditions stores data related to the asynchronous task. By monitoring the data in the business data table and / or business database, the state of the asynchronous task can be known in a timely manner.

[0092] The monitoring field of the execution parameter in the operation condition can represent the state of the asynchronous task, so the monitoring field in the business data table and / or business database is used as the current business data. As an example, the asynchronous task includes: order positioning. The item inventory in the business data table is used as the monitoring field.

[0093] S602: Determine whether each monitoring field in the current business data satisfies the corresponding execution parameter in the operation condition.

[0094] Based on the current business data and the execution parameters in the operation configuration, determine whether each monitoring field in the current business data meets the execution parameters in the operation configuration. As an example, the asynchronous task includes: order positioning. Order positioning is to determine the storage location of the items in the order. Specifically, the item inventory in the business data table is used as the monitoring field. The execution parameters include: item identification and the number of items in the order is less than or equal to the number of items in the item inventory. If the item identification in the order is the same as the item identification in the execution parameters, and the item quantity is less than the item quantity in the item inventory, it is determined that the current business data meets the execution parameters in the operation conditions.

[0095] exist Figure 6 In the embodiment, by monitoring the current business data, it is determined whether the corresponding execution parameters in the operation conditions are met to decide whether to start the asynchronous task.

[0096] S103: Generate a processing message for the asynchronous task based on the current business data, and start the asynchronous task by processing the message.

[0097] If the current business data meets the operation conditions in the operation configuration, the asynchronous task can be started. Specifically, a processing message of the asynchronous task is generated based on the current business data. The processing message of the asynchronous task includes the current business data of the asynchronous task, and the asynchronous task is started by processing the message. As an example, the processing message of the asynchronous task is pushed to the task exception processing center to start the asynchronous task.

[0098] The processing message of an asynchronous task includes business data, and its purpose is that the task exception processing center needs to use the current business data when processing an asynchronous task. This allows more accurate processing of asynchronous tasks. In addition, in addition to the current business data of the asynchronous task, the processing message of the asynchronous task can also include the historical business data of the asynchronous task. As an example, the business data includes the inventory quantity of an item. The historical business data includes the historical inventory quantity of an item. The current business data includes the current inventory quantity of an item. Using the historical business data and the current business data, asynchronous tasks can be processed in a timely manner.

[0099] In one embodiment of the present invention, a user interface framework, middleware or web service (WebService) is used to push the processing message of the asynchronous task. As an example, the user interface framework includes (JaveServer Faces, JSF).

[0100] See also Figure 7 , Figure 7 This is a class diagram for implementing message processing of an asynchronous task according to an embodiment of the present invention. JSF belongs to the user interface framework. Message Queue (MQ) belongs to the middleware.

[0101] Figure 7 In the example, the TaskProcessor interface is used to execute the TaskProcess(DateRecord) method. Specifically, the JSFTaskProcessor method in JSF can be called to start an asynchronous task by processing a message. The WebServiceTaskProcessor method can also be called to start an asynchronous task by processing a message. The MQTaskProcessor method can also be called to start an asynchronous task by processing a message.

[0102] In one embodiment of the present invention, an asynchronous task is started in the warehouse management system. The asynchronous task fails to execute in the warehouse management system. When the current business data meets the operation conditions, the asynchronous task is started in the warehouse management system to quickly restore the normal warehouse process of the asynchronous task.

[0103] In the above-mentioned embodiment of the present invention, after the asynchronous task fails to execute, the operation configuration of the asynchronous task is constructed according to the business data source of the asynchronous task and the operation condition of the asynchronous task; in response to the output message of the operation configuration, the current business data of the asynchronous task is monitored according to the business data source in the operation configuration, and the current business data of the business data source is screened to determine that the current business data meets the operation condition in the operation configuration; a processing message of the asynchronous task is generated based on the current business data, and the asynchronous task is started through the processing message. By monitoring the current business data of the asynchronous task, the asynchronous task can be started in time, so that the asynchronous task can be processed in time, and the processing efficiency of the asynchronous task is improved.

[0104] See also Figure 8 , Figure 8 1 is an application diagram of an apparatus for processing asynchronous tasks according to an embodiment of the present invention. If an asynchronous task fails to execute in a warehouse management system, the asynchronous task enters task exception processing information.

[0105] After the asynchronous task fails to execute, the task exception processing center sends the failed asynchronous task to the device for processing the asynchronous task. Fig. 9 The structure in .

[0106] The device for processing asynchronous tasks monitors the asynchronous tasks while monitoring the current business data, and then starts the asynchronous tasks by processing messages of the asynchronous tasks.

[0107] See also Fig. 9 , Fig. 9 is a schematic diagram of the main structure of an apparatus for processing asynchronous tasks according to an embodiment of the present invention. The apparatus for processing asynchronous tasks can implement a method for processing asynchronous tasks, such as Fig. 9 As shown, the device for processing asynchronous tasks specifically includes:

[0108] Configuration module 901, used for constructing the operation configuration of the asynchronous task according to the business data source of the asynchronous task and the operation condition of the asynchronous task after the asynchronous task fails to execute;

[0109] A monitoring module 902 is used to respond to the output message of the operation configuration, monitor the current business data of the asynchronous task according to the business data source in the operation configuration, and filter out the current business data of the business data source to determine that the current business data meets the operation condition in the operation configuration;

[0110] The task module 903 is used to generate a processing message of the asynchronous task based on the current business data, and start the asynchronous task through the processing message.

[0111] In one embodiment of the present invention, the configuration module 901 is specifically used to filter out asynchronous tasks according to the processing time points of the asynchronous tasks in the task exception processing center after the asynchronous tasks fail to execute;

[0112] Identify the business data source of the asynchronous task and the operation condition of the asynchronous task;

[0113] The operation configuration of the asynchronous task is constructed and stored according to the business data source of the asynchronous task and the operation condition of the asynchronous task.

[0114] In one embodiment of the present invention, the configuration module 901 is further used to receive an instruction for processing an asynchronous task in a publish-subscribe page to identify a business data source of the asynchronous task and an operation condition of the asynchronous task;

[0115] or,

[0116] In the publish-subscribe page, the task template of the asynchronous task is used to identify the business data source of the asynchronous task and the operation condition of the asynchronous task.

[0117] In one embodiment of the present invention, the monitoring module 902 is specifically configured to monitor the current business data of the asynchronous task according to the business data source in the operation configuration through a plug-in or middleware.

[0118] In one embodiment of the present invention, the monitoring module 902 is specifically configured to: the operation condition includes a business data table and / or a business database, and to use a monitoring field in the business data table and / or the business database as the current business data;

[0119] It is determined that each monitoring field of the current service data satisfies the corresponding execution parameter in the operation condition.

[0120] In one embodiment of the present invention, the task module 903 is specifically configured to use a user interface framework, middleware or network service to trigger the processing message to start the asynchronous task.

[0121] In one embodiment of the present invention, the task module 903 is specifically used to start the asynchronous task in the warehouse management system.

[0122] Fig.10 An exemplary system architecture 1000 is shown to which the method for processing asynchronous tasks or the apparatus for processing asynchronous tasks according to the embodiments of the present invention can be applied.

[0123] like Fig.10As shown, the system architecture 1000 may include terminal devices 1001, 1002, 1003, a network 1004, and a server 1005. The network 1004 is used to provide a medium for communication links between the terminal devices 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0124] Users can use terminal devices 1001, 1002, 1003 to interact with server 1005 through network 1004 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 1001, 1002, 1003, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0125] The terminal devices 1001 , 1002 , and 1003 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0126] The server 1005 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 1001, 1002, and 1003. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0127] It should be noted that the method for processing asynchronous tasks provided in the embodiment of the present invention is generally executed by the server 1005 , and accordingly, the device for processing asynchronous tasks is generally set in the server 1005 .

[0128] It should be understood that Fig.10 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0129] Reference below Fig.11 , which shows a schematic diagram of the structure of a computer system 1100 of a terminal device suitable for implementing an embodiment of the present invention. Fig.11 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0130] like Fig.11As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the system 1100 are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0131] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0132] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the present invention are executed.

[0133] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0134] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0135] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor includes a configuration module, a monitoring module and a task module. The names of these modules do not constitute a limitation on the module itself in certain cases. For example, the configuration module may also be described as "for constructing the operation configuration of the asynchronous task according to the business data source of the asynchronous task and the operation conditions of the asynchronous task after the execution of the asynchronous task fails."

[0136] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:

[0137] After the asynchronous task fails to execute, constructing the operation configuration of the asynchronous task according to the business data source of the asynchronous task and the operation condition of the asynchronous task;

[0138] In response to the output message of the operation configuration, monitoring the current business data of the asynchronous task according to the business data source in the operation configuration, and filtering out the current business data of the business data source to determine that the current business data meets the operation condition in the operation configuration;

[0139] A processing message of the asynchronous task is generated based on the current business data, and the asynchronous task is started through the processing message.

[0140] According to the technical solution of the embodiment of the present invention, after the asynchronous task fails to execute, the operation configuration of the asynchronous task is constructed according to the business data source of the asynchronous task and the operation condition of the asynchronous task; in response to the output message of the operation configuration, the current business data of the asynchronous task is monitored according to the business data source in the operation configuration, and the current business data of the business data source is screened to determine that the current business data meets the operation condition in the operation configuration; a processing message of the asynchronous task is generated based on the current business data, and the asynchronous task is started through the processing message. By monitoring the current business data of the asynchronous task, when the current business data meets the operation condition, the asynchronous task can be started in time, so that the asynchronous task can be processed in time, and the processing efficiency of the asynchronous task is improved.

[0141] The above specific implementation methods do not constitute limitations on the scope of protection of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention. It should be noted that in the technical solution disclosed in this disclosure, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

Claims

1. A method for processing asynchronous tasks, characterized in that: include: After the asynchronous task fails to execute, constructing the operation configuration of the asynchronous task according to the business data source of the asynchronous task and the operation condition of the asynchronous task; In response to the output message of the operation configuration, monitoring the current business data of the asynchronous task according to the business data source in the operation configuration, and filtering out the current business data of the business data source to determine that the current business data meets the operation condition in the operation configuration; A processing message of the asynchronous task is generated based on the current business data, and the asynchronous task is started through the processing message.

2. The method for processing asynchronous tasks according to claim 1, characterized in that: After the asynchronous task fails to execute, the operation configuration of the asynchronous task is constructed according to the business data source of the asynchronous task and the operation condition of the asynchronous task, including: After the asynchronous task fails to execute, the asynchronous task is filtered out according to the processing time point of the asynchronous task in the task exception processing center; Identify the business data source of the asynchronous task and the operation condition of the asynchronous task; The operation configuration of the asynchronous task is constructed and stored according to the business data source of the asynchronous task and the operation condition of the asynchronous task.

3. The method for processing asynchronous tasks according to claim 2, characterized in that: The business data source identifying the asynchronous task and the operation condition of the asynchronous task include: In the publish-subscribe page, receiving an instruction for processing an asynchronous task to identify a business data source of the asynchronous task and an operation condition of the asynchronous task; or, In the publish-subscribe page, the task template of the asynchronous task is used to identify the business data source of the asynchronous task and the operation condition of the asynchronous task.

4. The method for processing asynchronous tasks according to claim 1, characterized in that: The monitoring the current business data of the asynchronous task according to the business data source in the operation configuration includes: The current business data of the asynchronous task is monitored according to the business data source in the operation configuration through a plug-in or middleware.

5. The method for processing asynchronous tasks according to claim 1, characterized in that: The determining that the current service data satisfies the operation condition in the operation configuration includes: The operation condition includes a business data table and / or a business database, and a monitoring field in the business data table and / or the business database is used as the current business data; It is determined that each monitoring field of the current service data satisfies the corresponding execution parameter in the operation condition.

6. The method for processing asynchronous tasks according to claim 1, characterized in that: The starting the asynchronous task by processing the message comprises: The asynchronous task is started by triggering the processing message using a user interface framework, middleware or network service.

7. The method for processing asynchronous tasks according to claim 1, characterized in that: The starting of the asynchronous task comprises: The asynchronous task is started in the warehouse management system.

8. A device for processing asynchronous tasks, characterized in that: include: A configuration module, used for constructing an operation configuration of the asynchronous task according to a business data source of the asynchronous task and an operation condition of the asynchronous task after the asynchronous task fails to execute; A monitoring module, configured to respond to an output message of the operation configuration, monitor the current business data of the asynchronous task according to the business data source in the operation configuration, and filter out the current business data of the business data source to determine that the current business data meets the operation condition in the operation configuration; The task module is used to generate a processing message of the asynchronous task based on the current business data, and start the asynchronous task through the processing message.

9. An electronic device for processing asynchronous tasks, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Asynchronous call control method and related device

    CN119883526A