A task request execution method and device
A technology of task request and execution method, which is applied in the directions of multi-programming device, program control device, program startup/switching, etc., and can solve the problems such as the inability to realize the solution.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0100] Such as image 3 As shown, this embodiment illustrates the process of loading configuration files using the above task request execution method:
[0101] Get the list of algorithm services,
[0102] Loading algorithm services in the algorithm service list;
[0103] cyclically read the configuration information of each algorithm service in the list, and determine the required algorithm service through the description information in each algorithm service configuration information;
[0104] Load the object served by each algorithm by reflection mechanism.
[0105] This embodiment can dynamically load dynamic algorithm services, and provide algorithm services to users in the form of microservices or APIs.
Embodiment 2
[0107] Such as Figure 4 As shown, this embodiment illustrates the process of using the above-mentioned task request execution method to perform algorithm services:
[0108] According to the task request input by the user, asynchronously call each algorithm service required, and obtain the execution result of each algorithm service;
[0109] Aggregate the obtained execution results to obtain the request result corresponding to the task request.
Embodiment 3
[0111] User A sends a query task request through a browser / client / interface / app, etc., to query the total mileage of travel this year, the number of trips, the number of cities traveled, whether there is a delay, the length of the delay, whether to leave the country and the corresponding information of the number of times;
[0112] In this embodiment, after receiving the corresponding task request, the task request is first decomposed into the flight request content and the railway request content, and the flight request content can be further decomposed into the flight request content corresponding to each airline or the request content corresponding to the ticketing platform ; or decompose the task request in other reasonable ways to make it meet the corresponding algorithm service requirements;
[0113] Read the configuration file, and match the corresponding algorithm service according to the description information of the configuration information of all algorithm services...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


