A job acquisition method, device, equipment and medium
By utilizing a first thread and a second thread to retrieve historical jobs from the scheduling system's accounting files and database during the job retrieval request, and then comparing and supplementing the retrieved jobs, the problem of incomplete or erroneous retrieval in the prior art is solved, thus achieving complete historical job retrieval.
Patent Information
- Application Number
- CN202210834309.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-14
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-07-14
AI Technical Summary
In existing technologies, retrieving historical jobs within a specified time period from a single, fixed data source may result in incomplete or erroneous retrieval.
By extracting the target time period from the job acquisition request, the first thread retrieves historical jobs from the scheduling system's accounting file, and the second thread retrieves historical jobs from the scheduling system's database, comparing and supplementing them to ensure the completeness of the retrieved historical jobs.
It enables automatic replenishment of lost historical jobs when they are lost, ensuring that all historical jobs within a specified time period are obtained from multiple dimensions, thus avoiding problems such as incomplete or erroneous acquisition.
Smart Images

Figure CN115237561B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and in particular, to a job obtaining method and device, equipment and medium. BACKGROUND
[0002] A common job scheduling system uses a fixed strategy to distribute user-submitted jobs to matching devices and instruct the devices to start executing the jobs. A historical job is a job that has ended execution. A job scheduling system usually stores historical jobs in a database of the job scheduling system and in a specified file. In order to statistically and analytically process job indicators of a specified period, historical jobs in the specified period need to be obtained. Historical jobs in the specified period are jobs that have ended execution in the specified period.
[0003] In related technologies, a commonly used historical job obtaining method is to obtain historical jobs in a specified period from a database of a job scheduling system or from a specified file of the scheduling system. Related technologies collect historical jobs in a specified period from a single and fixed data source, which may have the problems of incomplete historical jobs or errors in obtained historical jobs. SUMMARY
[0004] The present application provides a job obtaining method, device, equipment and medium to solve the problem of incomplete historical jobs or errors in obtained historical jobs when related technologies obtain historical jobs in a specified period from a single and fixed data source.
[0005] According to an aspect of the present application, a job obtaining method is provided, comprising:
[0006] Extracting a target period included in a historical job obtaining request;
[0007] Sending the target period to a first thread, obtaining historical jobs in the target period in a scheduling system accounting file through the first thread, and sending the target period and the historical jobs obtained by the first thread to a second thread;
[0008] Obtaining historical jobs in the target period in a scheduling system database through the second thread, comparing the historical jobs obtained by the second thread with the historical jobs obtained by the first thread, and determining whether there are missing historical jobs in the historical jobs obtained by the second thread;
[0009] If there is a missing historical job in the historical jobs obtained by the second thread, the missing historical job in the historical jobs obtained by the second thread is obtained from the historical jobs obtained by the first thread through the second thread, the missing historical job is supplemented into the historical jobs obtained by the second thread, and all the historical jobs in the target period are obtained.
[0010] All the historical jobs in the target period are determined as the request feedback result corresponding to the historical job obtaining request.
[0011] According to another aspect of the present application, there is provided a job obtaining device, comprising:
[0012] A period extraction module is configured to extract a target period included in a historical job obtaining request;
[0013] A first obtaining module is configured to send the target period to a first thread, and obtain historical jobs in the target period in a scheduling system accounting file through the first thread, and send the target period and the historical jobs obtained by the first thread to a second thread;
[0014] A second obtaining module is configured to obtain historical jobs in the target period in a scheduling system database through the second thread, and compare the historical jobs obtained by the second thread with the historical jobs obtained by the first thread to determine whether there is a missing historical job in the historical jobs obtained by the second thread;
[0015] A job supplement module is configured to, if there is a missing historical job in the historical jobs obtained by the second thread, obtain the missing historical job in the historical jobs obtained by the second thread from the historical jobs obtained by the first thread through the second thread, and supplement the missing historical job into the historical jobs obtained by the second thread, so as to obtain all the historical jobs in the target period;
[0016] A result determination module is configured to determine all the historical jobs in the target period as the request feedback result corresponding to the historical job obtaining request.
[0017] According to another aspect of the present application, there is provided an electronic device, comprising:
[0018] at least one processor; and
[0019] a memory connected with the at least one processor in communication; wherein
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the job obtaining method according to any one of the embodiments of the present application.
[0021] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to implement the job obtaining method according to any one of the embodiments of the present application when executed by the processor.
[0022] The technical solution of the embodiments of the present application extracts a target time period included in a historical job obtaining request; then sends the target time period to a first thread, obtains historical jobs in the target time period in a scheduling system accounting file through the first thread, sends the target time period and the historical jobs obtained by the first thread to a second thread; then obtains historical jobs in the target time period in a scheduling system database through the second thread, compares the historical jobs obtained by the second thread with the historical jobs obtained by the first thread, and judges whether there is a historical job missing in the historical jobs obtained by the second thread; if there is a historical job missing in the historical jobs obtained by the second thread, obtains the missing historical job in the historical jobs obtained by the second thread from the historical jobs obtained by the first thread through the second thread, supplements the missing historical job to the historical jobs obtained by the second thread, and obtains all the historical jobs in the target time period; and finally determines all the historical jobs in the target time period as the request feedback result corresponding to the historical job obtaining request. The technical solution solves the problem that the related art obtains the historical jobs in a specified time period from a single and fixed data source, and the obtained historical jobs may be incomplete or incorrect. In the case of missing historical jobs, the missing historical jobs can be automatically supplemented to obtain all the historical jobs in the target time period, the historical jobs in the specified time period are obtained from multiple dimensions, and the checking is performed to avoid the problem that the historical jobs in the specified time period are obtained from a single and fixed data source, and the obtained historical jobs may be incomplete or incorrect.
[0023] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0025] Figure 1 A flow chart of a job obtaining method provided for the first embodiment of the present application.
[0026] Figure 2 A flow chart of a job obtaining method provided for the second embodiment of the present application.
[0027] Figure 3 A flow chart of a job obtaining method provided for the third embodiment of the present application.
[0028] Figure 4 A structural schematic diagram of a job obtaining device provided for the fourth embodiment of the present application.
[0029] Figure 5 A structural schematic diagram of an electronic device for implementing the job obtaining method of the embodiments of the present application. DETAILED DESCRIPTION
[0030] In order to make the technical personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.
[0031] It should be noted that the terms "target", "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise", "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment one
[0033] Figure 1 A flow chart of a job obtaining method provided for the first embodiment of the present application. The embodiments of the present application can be applicable to the case of obtaining all historical jobs of a specified period in a scheduling system. The method can be performed by a job obtaining device provided by the embodiments of the present application, which can be realized in software and / or hardware, and can generally be integrated in an electronic device. As shown in FIG. 1, the method comprises the following steps:Figure 1 The method comprises the following steps.
[0034] In step 101, the target time period included in the historical job acquisition request is extracted.
[0035] Optionally, the job scheduling system assigns each job submitted by the user to a matching device and instructs the matching device to start executing each job. The matching device determines the end of the execution of the job when the execution process of the job is completed. The historical job is the job whose execution is completed.
[0036] Optionally, the historical job acquisition request is a request for acquiring historical jobs in a target specified time period in the job scheduling system. The target time period is included in the historical job acquisition request. The historical jobs in the target time period are jobs whose execution is completed in the target time period. The target time period is one or more time periods before the current time. For example, the target time period is from 8:00 to 12:00 on March 1, 2022.
[0037] Optionally, the user sends a historical job acquisition request to an electronic device through a terminal device to request to acquire historical jobs in a target specified time period in the job scheduling system. The electronic device receives the historical job acquisition request sent by the terminal device and extracts the target time period included in the historical job acquisition request.
[0038] In step 102, the target time period is sent to a first thread, and through the first thread, historical jobs in the target time period in the scheduling system accounting file are acquired. The target time period and the historical jobs acquired by the first thread are sent to a second thread.
[0039] Optionally, the scheduling system accounting file is a file generated in the job scheduling system for storing historical jobs in the job scheduling system whose execution is completed every day and execution process information of the historical jobs whose execution is completed every day. The execution process information of the historical job is information related to the execution process of the historical job, including but not limited to: job start time, job end time, and job duration. The job start time is the time when the job scheduling system assigns the job to a matching device and the matching device starts executing the job. The job end time is the time when the matching device completes the execution process of the job and determines the end of the execution of the job. The job duration is the time difference between the job end time and the job start time.
[0040] Optionally, the job scheduling system can create a file according to a preset time period. The job scheduling system creates a file in each time period, and stores the historical jobs ended in the time period and the execution process information of the historical jobs ended in the time period in the created file, to obtain a scheduling system accounting file corresponding to each time period. Each time period corresponds to a scheduling system accounting file. The scheduling system accounting file corresponding to a certain time period stores the historical jobs ended in the time period and the execution process information of the historical jobs ended in the time period in the job scheduling system. The preset time period can be set according to business requirements. For example, the preset time period can be 24 hours, 12 hours, 6 hours or 1 hour. The preset time period can be set and updated according to different business requirements.
[0041] Optionally, the first thread is a thread written by a developer and set in the electronic device for obtaining historical jobs in a specified period in the scheduling system accounting file. The electronic device can call the first thread in the electronic device by sending a target period to the first thread in the electronic device. After receiving the target period sent by the electronic device, the first thread in the electronic device obtains the historical jobs in the target period in the scheduling system accounting file, and sends the target period and the historical jobs obtained by the first thread to the second thread.
[0042] Optionally, the first thread is a thread written by a developer and set in the electronic device for obtaining historical jobs in a specified period in the scheduling system accounting file. The electronic device can call the first thread in the electronic device by sending a target period to the first thread in the electronic device. After receiving the target period sent by the electronic device, the first thread in the electronic device obtains the historical jobs in the target period in the scheduling system accounting file, and sends the target period and the historical jobs obtained by the first thread to the second thread.
[0043] Thus, the historical jobs in the target period stored in the specified file of the job scheduling system can be automatically obtained by the thread.
[0044] Optionally, the job scheduling system creates a file in each time period, and stores the historical jobs ended in the time period and the execution process information of the historical jobs ended in the time period in the created file, to obtain a scheduling system accounting file corresponding to each time period. Each time period corresponds to a scheduling system accounting file. The scheduling system accounting file corresponding to a certain time period stores the historical jobs ended in the time period in the job scheduling system and the execution process information of the historical jobs ended in the time period. The preset time period can be set according to business requirements. The execution process information of the historical jobs includes but is not limited to: job start time, job end time and job duration.
[0045] Optionally, in all scheduling system accounting files of the scheduling system, the scheduling system accounting file corresponding to the time period to which the target period belongs is determined as a target scheduling system accounting file corresponding to the time period to which the target period belongs. The target scheduling system accounting file stores the historical jobs ended in the time period to which the target period belongs in the job scheduling system, the job start time, the job end time and the job duration of the historical jobs ended in the time period to which the target period belongs.
[0046] Optionally, the historical jobs in the target scheduling system accounting file with the job end time in the target period are the historical jobs in the target period in the scheduling system accounting file. The historical jobs in the target period in the scheduling system accounting file are stored in a first historical job list. The first historical job list can be created by a first thread and used to store the historical jobs in the target period in the scheduling system accounting file. The target period and the first historical job list are sent to a second thread, so that the target period and the historical jobs in the target period in the scheduling system accounting file are sent to the second thread.
[0047] Optionally, if there is no dispatch system accounting file corresponding to the time period of the target period in all dispatch system accounting files of the dispatch system, a dispatch system accounting file corresponding to a time period preceding the time period of the target period is determined as a target dispatch system accounting file corresponding to the time period of the target period. All historical jobs stored in the target dispatch system accounting file are arranged in ascending order of time difference between the end time of the job and the target period. A historical job at a preset arrangement position is obtained as a historical job in the target period in the dispatch system accounting file. The historical job in the target period in the dispatch system accounting file is stored in a first historical job list. The target period and the first historical job list are sent to a second thread. The historical job at the preset arrangement position can be a historical job at the first to 1000th position, so that 1000 historical jobs with the end time closest to the target period are obtained as the historical jobs in the target period in the dispatch system accounting file.
[0048] In step 103, the second thread is used to obtain the historical jobs in the target period in the dispatch system database, and the historical jobs obtained by the second thread are compared with the historical jobs obtained by the first thread to determine whether there is a missing historical job in the historical jobs obtained by the second thread.
[0049] Optionally, the dispatch system database is a database in a job scheduling system for storing historical jobs and related information of the historical jobs. The job scheduling system can store each historical job and the end time of each historical job in the dispatch system database.
[0050] Optionally, the second thread is a thread developed by a developer and set in an electronic device, which is used to obtain historical jobs in a specified period in a dispatch system database, compare the obtained historical jobs with the historical jobs obtained by the first thread, determine whether there is a missing historical job in the obtained historical jobs, and when there is a missing historical job in the obtained historical jobs, obtain the missing historical job from the historical jobs obtained by the first thread, supplement the missing historical job to the obtained historical jobs, and obtain all historical jobs in the specified period.
[0051] Optionally, the electronic device can send the target time period and the historical jobs acquired by the first thread to the second thread through the first thread, and call the second thread in the electronic device. After receiving the target time period and the historical jobs acquired by the first thread sent by the first thread, the second thread in the electronic device acquires the historical jobs in the target time period in the scheduling system database, compares the historical jobs acquired by the second thread with the historical jobs acquired by the first thread, judges whether there is a historical job missing in the historical jobs acquired by the second thread, acquires the missing historical jobs in the historical jobs acquired by the second thread from the historical jobs acquired by the first thread through the second thread when there is a historical job missing in the historical jobs acquired by the second thread, supplements the missing historical jobs to the historical jobs acquired by the second thread, and obtains all the historical jobs in the target time period.
[0052] Optionally, the acquiring of the historical jobs in the target time period in the scheduling system database through the second thread comprises: receiving the target time period and the first historical job list sent by the first thread through the second thread; acquiring the historical jobs with the end time in the target time period from all the historical jobs stored in the scheduling system database as the historical jobs in the target time period in the scheduling system database; and storing the historical jobs in the target time period in the scheduling system database into a second historical job list.
[0053] Therefore, the historical jobs in the target time period stored in the database of the job scheduling system can be automatically acquired through the thread.
[0054] Optionally, the historical jobs with the end time in the target time period stored in the scheduling system database are the historical jobs in the target time period in the scheduling system database. The historical jobs in the target time period in the scheduling system database are stored into a second historical job list. The second historical job list can be created by the second thread and used to store the list of the historical jobs in the target time period in the scheduling system database.
[0055] Optionally, the comparing the historical jobs acquired by the second thread with the historical jobs acquired by the first thread to determine whether there is a missing historical job in the historical jobs acquired by the second thread comprises: acquiring, by the second thread, job identifiers of all the historical jobs in the first historical job list; acquiring job identifiers of all the historical jobs in the second historical job list; determining whether the job identifiers of all the historical jobs in the second historical job list contain the job identifiers of all the historical jobs in the first historical job list; if the job identifiers of all the historical jobs in the second historical job list contain the job identifiers of all the historical jobs in the first historical job list, determining that there is no missing historical job in the historical jobs acquired by the second thread; and if the job identifiers of all the historical jobs in the second historical job list do not contain the job identifier of a target historical job in the first historical job list, determining that there is a missing historical job in the historical jobs acquired by the second thread, the target historical job being a missing historical job in the historical jobs acquired by the second thread.
[0056] Therefore, the historical jobs in a target period acquired from a scheduling system database can be automatically compared with the historical jobs in the target period acquired from a scheduling system accounting file by a thread to determine whether there is a missing historical job in the historical jobs in the target period acquired from the scheduling system database.
[0057] Optionally, the historical jobs include job identifiers and job contents. The job identifier is identification information for identifying a job. Different jobs have different job identifiers. Different historical jobs can be distinguished according to the job identifiers.
[0058] Optionally, acquiring the job identifiers of all the historical jobs in the first historical job list comprises: extracting the job identifier of each historical job from each historical job in the first historical job list, thereby obtaining the job identifiers of all the historical jobs in the first historical job list.
[0059] Optionally, acquiring the job identifiers of all the historical jobs in the second historical job list comprises: extracting the job identifier of each historical job from each historical job in the second historical job list, thereby obtaining the job identifiers of all the historical jobs in the second historical job list.
[0060] Optionally, if the job identifiers of all the historical jobs in the second historical job list contain the job identifiers of all the historical jobs in the first historical job list, it indicates that the historical jobs in the target period acquired by the second thread contain the historical jobs in the target period acquired by the first thread, and it is determined that there is no missing historical job in the historical jobs acquired by the second thread.
[0061] Optionally, if the job identifiers of all the historical jobs in the second historical job list do not contain the job identifier of the target historical job in the first historical job list, it indicates that the target historical job in the target time period is not contained in the historical jobs in the target time period obtained by the second thread, and the target historical job is lost in the historical jobs obtained by the second thread.
[0062] Step 104, if the historical jobs are lost in the historical jobs obtained by the second thread, the second thread obtains the historical jobs lost in the historical jobs obtained by the second thread from the historical jobs obtained by the first thread, and supplements the lost historical jobs to the historical jobs obtained by the second thread to obtain all the historical jobs in the target time period.
[0063] Optionally, if the job identifiers of all the historical jobs in the second historical job list do not contain the job identifier of the target historical job in the first historical job list, it is determined that the historical jobs are lost in the historical jobs obtained by the second thread, and the target historical job is the historical job lost in the historical jobs obtained by the second thread.
[0064] Optionally, the second thread obtains the historical jobs lost in the historical jobs obtained by the second thread from the historical jobs obtained by the first thread, and supplements the lost historical jobs to the historical jobs obtained by the second thread to obtain all the historical jobs in the target time period, including: the second thread obtains the target historical job from the first historical job list, and supplements the target historical job to the second historical job list to obtain all the historical jobs in the target time period.
[0065] Therefore, in the case that the historical jobs are lost in the historical jobs in the target time period obtained from the dispatching system database, the lost historical jobs can be automatically supplemented to the historical jobs in the target time period obtained from the dispatching system database by the thread to obtain all the historical jobs in the target time period.
[0066] Optionally, after it is determined that the historical jobs are lost in the historical jobs obtained by the second thread, and the target historical job is the historical job lost in the historical jobs obtained by the second thread, the method further includes: storing the historical jobs lost in the historical jobs obtained by the second thread in a lost job list. The lost job list is a list for storing the lost historical jobs.
[0067] Thus, the missing historical jobs in the historical jobs obtained by the second thread can be stored in the missing job list by the thread, and the missing historical jobs can be stored and uniformly managed by the missing job list.
[0068] Optionally, after determining that there are missing historical jobs in the historical jobs obtained by the second thread, and the target historical job is the missing historical job in the historical jobs obtained by the second thread, the method further comprises: if the time period to which the target time period belongs is the current time period, storing the missing historical jobs in the historical jobs obtained by the second thread in a current missing job list. The current missing job list is a list for storing missing historical jobs whose time period belongs to the current time period.
[0069] Step 105: determining all the historical jobs in the target time period as the request feedback result corresponding to the historical job obtaining request.
[0070] Optionally, the historical jobs in the target time period obtained by the second thread are determined as the request feedback result corresponding to the historical job obtaining request. The request feedback result corresponding to the historical job obtaining request is the historical job obtaining request processing result fed back to the sender of the historical job obtaining request, i.e., the processing result of the sender's request for obtaining the historical jobs in the target specified time period in the job scheduling system.
[0071] Optionally, a user sends a historical job obtaining request to an electronic device through a terminal device, requesting to obtain the historical jobs in a target specified time period in a job scheduling system. The electronic device determines all the historical jobs in the target time period obtained by the second thread as the request feedback result corresponding to the historical job obtaining request, and feeds back to the terminal device, thereby feeding back the historical jobs in the target specified time period in the job scheduling system to the terminal device.
[0072] Optionally, after comparing the historical jobs obtained by the second thread with the historical jobs obtained by the first thread to determine whether there are missing historical jobs in the historical jobs obtained by the second thread, the method further comprises: if there are no missing historical jobs in the historical jobs obtained by the second thread, determining the historical jobs obtained by the second thread as the request feedback result corresponding to the historical job obtaining request.
[0073] Thus, in the case that there are no missing historical jobs in the historical jobs in the target time period obtained from the scheduling system database, the historical jobs in the target time period obtained from the scheduling system database can be automatically determined as the request feedback result corresponding to the historical job obtaining request, and fed back to the sender of the historical job obtaining request.
[0074] Optionally, if no historical job in the historical jobs acquired by the second thread is lost, it indicates that the historical jobs acquired by the second thread are all the historical jobs in the target period, and the electronic device can directly determine the historical jobs acquired by the second thread as the request feedback result corresponding to the historical job acquisition request.
[0075] The technical scheme of the embodiment of the application extracts the target period included in the historical job acquisition request, then sends the target period to the first thread, acquires the historical jobs in the target period in the scheduling system accounting file through the first thread, sends the target period and the historical jobs acquired by the first thread to the second thread, acquires the historical jobs in the target period in the scheduling system database through the second thread, compares the historical jobs acquired by the second thread with the historical jobs acquired by the first thread, judges whether there is a historical job lost in the historical jobs acquired by the second thread, acquires the lost historical jobs in the historical jobs acquired by the second thread from the historical jobs acquired by the first thread through the second thread if there is a historical job lost in the historical jobs acquired by the second thread, supplements the lost historical jobs to the historical jobs acquired by the second thread, obtains all the historical jobs in the target period, and finally determines all the historical jobs in the target period as the request feedback result corresponding to the historical job acquisition request, thereby solving the problem that the historical jobs in the specified period are acquired from a single and fixed data source in the related art, and the acquired historical jobs may be incomplete or incorrect, obtaining all the historical jobs in the target period by automatically supplementing the lost historical jobs in the case of lost historical jobs, realizing the acquisition of the historical jobs in the specified period from multiple dimensions and checking, and avoiding the problem that the historical jobs in the specified period are acquired from a single and fixed data source, and the acquired historical jobs may be incomplete or incorrect.
[0076] In other optional embodiments of the present application, optionally, the job obtaining method comprises: extracting a target time period included in a historical job obtaining request; sending the target time period to a first thread, and obtaining historical jobs in the target time period in a database of a scheduling system through the first thread; sending the target time period and the historical jobs obtained by the first thread to a second thread; obtaining historical jobs in the target time period in a scheduling system accounting file through the second thread; comparing the historical jobs obtained by the second thread with the historical jobs obtained by the first thread, and determining whether there is a missing historical job in the historical jobs obtained by the second thread; if there is a missing historical job in the historical jobs obtained by the second thread, obtaining the missing historical job in the historical jobs obtained by the second thread from the historical jobs obtained by the first thread through the second thread, supplementing the missing historical job to the historical jobs obtained by the second thread, and obtaining all the historical jobs in the target time period; and determining all the historical jobs in the target time period as a request feedback result corresponding to the historical job obtaining request.
[0077] Optionally, in the embodiments of the present application, the operation of obtaining the historical jobs in the target time period in the scheduling system accounting file or the scheduling system database through the first thread and the operation of obtaining the historical jobs in the target time period in the scheduling system database or the scheduling system accounting file through the second thread can be executed in series. The operation of obtaining the historical jobs in the target time period in the scheduling system database or the scheduling system accounting file through the second thread can be executed after the operation of obtaining the historical jobs in the target time period in the scheduling system accounting file or the scheduling system database through the first thread is completed. The operation of obtaining the historical jobs in the target time period in the scheduling system accounting file or the scheduling system database through the first thread can be executed after the operation of obtaining the historical jobs in the target time period in the scheduling system database or the scheduling system accounting file through the second thread is completed. The embodiments of the present application do not limit the execution order of the operation of obtaining the historical jobs in the target time period in the scheduling system accounting file or the scheduling system database through the first thread and the operation of obtaining the historical jobs in the target time period in the scheduling system database or the scheduling system accounting file through the second thread.
[0078] Optionally, in the embodiments of the present application, the operation of obtaining the historical jobs in the target time period in the scheduling system accounting file or the scheduling system database through the first thread and the operation of obtaining the historical jobs in the target time period in the scheduling system database or the scheduling system accounting file through the second thread can be executed in parallel.
[0079] Embodiment two
[0080] Figure 2A flow chart of a job obtaining method provided for the second embodiment of the present application. The second embodiment of the present application can be combined with each optional solution in one or more of the above embodiments. As shown in FIG. 17, the method comprises the following steps. Figure 2
[0081] Step 201: Extract the target period included in the historical job obtaining request.
[0082] Step 202: Send the target period to a first thread, and obtain the historical jobs in the target period in the accounting file of the scheduling system through the first thread, and send the target period and the historical jobs obtained by the first thread to a second thread.
[0083] Step 203: Obtain the historical jobs in the target period in the database of the scheduling system through the second thread, compare the historical jobs obtained by the second thread with the historical jobs obtained by the first thread, and determine whether there is any missing historical job in the historical jobs obtained by the second thread.
[0084] Step 204: If there is no missing historical job in the historical jobs obtained by the second thread, determine the historical jobs obtained by the second thread as the request feedback result corresponding to the historical job obtaining request.
[0085] Optionally, if there is no missing historical job in the historical jobs obtained by the second thread, it indicates that the historical jobs obtained by the second thread are all the historical jobs in the target period, and the electronic device can directly determine the historical jobs obtained by the second thread as the request feedback result corresponding to the historical job obtaining request.
[0086] Optionally, the user sends a historical job obtaining request to the electronic device through a terminal device, and requests to obtain the historical jobs in a target specified period in the job scheduling system. The electronic device determines the historical jobs obtained by the second thread as the request feedback result corresponding to the historical job obtaining request, and feeds back to the terminal device, so as to feed back the historical jobs in the target specified period in the job scheduling system to the terminal device.
[0087] The technical scheme of the embodiment of the present application can automatically acquire the historical jobs in a target period stored in a scheduling system accounting file and the historical jobs in the target period stored in a scheduling system database, can automatically compare the historical jobs in the target period acquired from the scheduling system database with the historical jobs in the target period acquired from the scheduling system accounting file, determine whether there is a missing historical job in the historical jobs in the target period acquired from the scheduling system database, in the case where there is no missing historical job, automatically determine the historical jobs in the target period acquired from the scheduling system database as the request feedback result corresponding to the historical job acquisition request, and feed back to the sender of the historical job acquisition request, thereby realizing the acquisition of the historical jobs in a specified period from multiple dimensions and checking, and avoiding the problems of incomplete or incorrect acquired historical jobs in the case of acquiring the historical jobs in a specified period from a single and fixed data source.
[0088] Embodiment three
[0089] Figure 3 The flowchart of the job acquisition method provided by the embodiment three of the present application comprises the following steps:
[0090] Step 301: Extract the target period included in the historical job acquisition request.
[0091] Step 302: Send the target period to a first thread, acquire the historical jobs in the target period in a scheduling system accounting file through the first thread, and send the target period and the historical jobs acquired by the first thread to a second thread.
[0092] Step 303: Acquire the historical jobs in the target period in a scheduling system database through the second thread, compare the historical jobs acquired by the second thread with the historical jobs acquired by the first thread, and determine whether there is a missing historical job in the historical jobs acquired by the second thread: if there is a missing historical job in the historical jobs acquired by the second thread, execute step 304; if there is no missing historical job in the historical jobs acquired by the second thread, execute step 306.
[0093] Step 304: Acquire the missing historical jobs in the historical jobs acquired by the second thread from the historical jobs acquired by the first thread through the second thread, supplement the missing historical jobs to the historical jobs acquired by the second thread, and obtain all the historical jobs in the target period.
[0094] Step 305: Determine all the historical jobs in the target period as the request feedback result corresponding to the historical job acquisition request.
[0095] Step 306, determining the historical jobs acquired by the second thread as the request feedback result corresponding to the historical job acquisition request.
[0096] The technical scheme of the embodiment of the present application extracts the target period included in the historical job acquisition request, then sends the target period to the first thread, acquires the historical jobs in the target period in the accounting file of the scheduling system through the first thread, sends the target period and the historical jobs acquired by the first thread to the second thread, then acquires the historical jobs in the target period in the database of the scheduling system through the second thread, compares the historical jobs acquired by the second thread with the historical jobs acquired by the first thread, judges whether there is a historical job missing in the historical jobs acquired by the second thread, if there is a historical job missing in the historical jobs acquired by the second thread, acquires the missing historical job in the historical jobs acquired by the second thread from the historical jobs acquired by the first thread through the second thread, supplements the missing historical job to the historical jobs acquired by the second thread, and obtains all the historical jobs in the target period, finally determines all the historical jobs in the target period as the request feedback result corresponding to the historical job acquisition request, solves the problem that the related art acquires the historical jobs in the specified period from a single and fixed data source, and the acquired historical jobs may be incomplete or the acquired historical jobs may be wrong, obtains all the historical jobs in the target period by automatically supplementing the missing historical jobs in the case of missing historical jobs, realizes the acquisition of the historical jobs in the specified period from multiple dimensions, and checks, and avoids the problem that the related art acquires the historical jobs in the specified period from a single and fixed data source, and the acquired historical jobs may be incomplete or the acquired historical jobs may be wrong.
[0097] Embodiment four
[0098] Figure 4 A structural schematic diagram of a job acquisition device provided by the embodiment four of the present application. The device can be configured in a client. As shown in the figure, the device comprises a period extraction module 401, a first acquisition module 402, a second acquisition module 403, a job supplement module 404 and a result determination module 405. Figure 4
[0099] The time period extraction module 401 is configured to extract a target time period included in a historical job acquisition request; the first acquisition module 402 is configured to send the target time period to a first thread, acquire historical jobs in the target time period in a scheduling system accounting file through the first thread, and send the target time period and the historical jobs acquired by the first thread to a second thread; the second acquisition module 403 is configured to acquire historical jobs in the target time period in a scheduling system database through the second thread, compare the historical jobs acquired by the second thread with the historical jobs acquired by the first thread, and determine whether there is a missing historical job in the historical jobs acquired by the second thread; the job supplement module 404 is configured to, if there is a missing historical job in the historical jobs acquired by the second thread, acquire the missing historical job in the historical jobs acquired by the second thread from the historical jobs acquired by the first thread through the second thread, supplement the missing historical job to the historical jobs acquired by the second thread, and obtain all the historical jobs in the target time period; and the result determination module 405 is configured to determine all the historical jobs in the target time period as a request feedback result corresponding to the historical job acquisition request.
[0100] The technical scheme of the embodiment of the present application extracts the target time period included in the historical job acquisition request, then sends the target time period to the first thread, acquires the historical jobs in the target time period in the scheduling system accounting file through the first thread, sends the target time period and the historical jobs acquired by the first thread to the second thread, acquires the historical jobs in the target time period in the scheduling system database through the second thread, compares the historical jobs acquired by the second thread with the historical jobs acquired by the first thread, judges whether there is a missing historical job in the historical jobs acquired by the second thread, if there is a missing historical job in the historical jobs acquired by the second thread, acquires the missing historical job in the historical jobs acquired by the second thread from the historical jobs acquired by the first thread through the second thread, supplements the missing historical job to the historical jobs acquired by the second thread, and obtains all the historical jobs in the target time period, finally determines all the historical jobs in the target time period as the request feedback result corresponding to the historical job acquisition request, solves the problems that the related art may exist in the incomplete acquired historical jobs or the error acquired historical jobs when acquiring the historical jobs in the specified time period from a single and fixed data source, and achieves the beneficial effects that the historical jobs in the target time period stored in the scheduling system accounting file and the historical jobs in the target time period stored in the scheduling system database can be automatically acquired, the historical jobs in the target time period acquired from the scheduling system database can be compared with the historical jobs in the target time period acquired from the scheduling system accounting file, it is judged whether there is a missing historical job in the historical jobs in the target time period acquired from the scheduling system database, the missing historical job can be automatically supplemented in the case of the missing historical job, all the historical jobs in the target time period are obtained, the historical jobs in the specified time period are acquired from multiple dimensions, and the comparison is performed, thereby avoiding the problems that the incomplete acquired historical jobs or the error acquired historical jobs may exist when acquiring the historical jobs in the specified time period from a single and fixed data source.
[0101] In an optional implementation of the embodiment of the present application, optionally, the first acquisition module 402 is specifically configured to perform the following operations through the first thread: determining a target scheduling system accounting file corresponding to a time period to which the target time period belongs in all scheduling system accounting files of a scheduling system, acquiring historical jobs with job end times in the target time period from all the historical jobs stored in the target scheduling system accounting file as the historical jobs in the target time period in the scheduling system accounting file, storing the historical jobs in the target time period in the scheduling system accounting file into a first historical job list, and sending the target time period and the first historical job list to the second thread.
[0102] In an optional implementation of the embodiment of the present application, the second obtaining module 403, when performing the operation of obtaining the historical jobs in the target time period in the scheduling system database through the second thread, is specifically configured to: receive the target time period and the first historical job list sent by the first thread; obtain the historical jobs with the job end time in the target time period from all the historical jobs stored in the scheduling system database as the historical jobs in the target time period in the scheduling system database; and store the historical jobs in the target time period in the scheduling system database into the second historical job list.
[0103] In an optional implementation of the embodiment of the present application, the second obtaining module 403, when performing the operation of comparing the historical jobs obtained by the second thread with the historical jobs obtained by the first thread to determine whether there is a missing historical job in the historical jobs obtained by the second thread, is specifically configured to: obtain the job identifiers of all the historical jobs in the first historical job list; obtain the job identifiers of all the historical jobs in the second historical job list; determine whether the job identifiers of all the historical jobs in the second historical job list contain the job identifiers of all the historical jobs in the first historical job list; if the job identifiers of all the historical jobs in the second historical job list contain the job identifiers of all the historical jobs in the first historical job list, it is determined that there is no missing historical job in the historical jobs obtained by the second thread; and if the job identifiers of all the historical jobs in the second historical job list do not contain the job identifier of the target historical job in the first historical job list, it is determined that there is a missing historical job in the historical jobs obtained by the second thread, the target historical job being the missing historical job in the historical jobs obtained by the second thread.
[0104] In an optional implementation of the embodiment of the present application, the job supplementing module 404, when performing the operation of obtaining the missing historical job in the historical jobs obtained by the second thread from the historical jobs obtained by the first thread, supplementing the missing historical job into the historical jobs obtained by the second thread, and obtaining all the historical jobs in the target time period, is specifically configured to: obtain the target historical job from the first historical job list through the second thread, supplement the target historical job into the second historical job list, and obtain all the historical jobs in the target time period.
[0105] In an optional implementation of the embodiment of the present application, the second obtaining module 403 is further configured to: store the missing historical job in the historical jobs obtained by the second thread into a missing job list.
[0106] In an optional implementation of the embodiment of the present application, optionally, the job obtaining apparatus further comprises a job determining module, configured to determine the historical job obtained by the second thread as the request feedback result corresponding to the historical job obtaining request if no historical job is lost in the historical job obtained by the second thread.
[0107] The job obtaining apparatus can execute the job obtaining method provided by any embodiment of the present application, and has the corresponding function modules and beneficial effects of executing the job obtaining method.
[0108] As to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
[0109] Embodiment five
[0110] Figure 5 A structural schematic diagram of an electronic device 10 that can be used to implement the job obtaining method of the embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application described and / or claimed in this document.
[0111] As Figure 5 shown, the electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is in communication with the at least one processor 11, wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program built from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0112] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0113] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as the job acquisition method.
[0114] In some embodiments, the job acquisition method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the job acquisition method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the job acquisition method by any other appropriate means, such as by means of firmware.
[0115] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0116] A computer program for implementing the job acquisition method of the present application can be written in any combination of one or more programming languages. The computer program can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program running on the processor implements the functions / operations specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0117] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0118] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0119] The systems and techniques described herein can be implemented in a computing system that includes a back end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front end component, e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described herein, or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0120] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0121] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be executed in parallel, executed in sequence, or executed in different orders, as long as the desired results of the technical solutions of the present disclosure can be achieved, and the present disclosure is not limited herein.
[0122] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A job acquisition method characterized by comprising: Comprising: extracting a target period included in the historical job acquisition request, the target period being one or more periods before the current time; sending the target period to a first thread, acquiring historical jobs in the target period in a scheduling system accounting file through the first thread, and sending the target period and the historical jobs acquired by the first thread to a second thread; wherein the following operations are performed through the first thread: determining a target scheduling system accounting file corresponding to a time period to which the target period belongs among all scheduling system accounting files of a job scheduling system; acquiring historical jobs with job end times within the target period among all historical jobs stored in the target scheduling system accounting file as historical jobs within the target period in the scheduling system accounting file; storing the historical jobs within the target period in the scheduling system accounting file into a first historical job list; and sending the target period and the first historical job list to the second thread; the historical job is an executed job, the scheduling system accounting file is a file generated in the job scheduling system for storing historical jobs executed every day in the job scheduling system and execution process information of the historical jobs executed every day, the execution process information including job start time, job end time, and job duration; acquiring, by the second thread, the historical jobs in the target time period in the scheduling system database, comparing the historical jobs acquired by the second thread with the historical jobs acquired by the first thread, and determining whether there is a missing historical job in the historical jobs acquired by the second thread; wherein the scheduling system database is a database in the job scheduling system for storing historical jobs and related information of the historical jobs; the second thread performs the following operations: receiving the target time period and the first historical job list sent by the first thread; acquiring, from all the historical jobs stored in the scheduling system database, the historical jobs with the end time in the target time period as the historical jobs in the target time period in the scheduling system database; storing the historical jobs in the target time period in the scheduling system database into a second historical job list; acquiring the job identifiers of all the historical jobs in the first historical job list; acquiring the job identifiers of all the historical jobs in the second historical job list; determining whether the job identifiers of all the historical jobs in the second historical job list contain the job identifiers of all the historical jobs in the first historical job list; if the job identifiers of all the historical jobs in the second historical job list contain the job identifiers of all the historical jobs in the first historical job list, it is determined that there is no missing historical job in the historical jobs acquired by the second thread; if the job identifiers of all the historical jobs in the second historical job list do not contain the job identifier of a target historical job in the first historical job list, it is determined that there is a missing historical job in the historical jobs acquired by the second thread, and the target historical job is the missing historical job in the historical jobs acquired by the second thread; if there is a missing historical job in the historical jobs acquired by the second thread, the second thread acquires the missing historical job in the historical jobs acquired by the second thread from the historical jobs acquired by the first thread, supplements the missing historical job to the historical jobs acquired by the second thread, and obtains all the historical jobs in the target time period; wherein the second thread acquires the target historical job from the first historical job list, supplements the target historical job to the second historical job list, and obtains all the historical jobs in the target time period; determining all the historical jobs in the target time period as the request feedback result corresponding to the historical job acquisition request.
2. The method of claim 1, wherein, After determining that there is a missing historical job in the historical jobs acquired by the second thread and the target historical job is the missing historical job in the historical jobs acquired by the second thread, the following operations are further included: storing the missing historical job in the historical jobs acquired by the second thread into a missing job list.
3. The method of claim 1, wherein, After comparing the historical jobs acquired by the second thread with the historical jobs acquired by the first thread and determining whether there is a missing historical job in the historical jobs acquired by the second thread, the following operations are further included: If no historical job is lost in the historical jobs acquired by the second thread, the historical jobs acquired by the second thread are determined as the request feedback result corresponding to the historical job acquisition request.
4. A job acquisition apparatus characterized by comprising: Comprise: a time period extraction module, configured to extract a target time period included in a historical job acquisition request, the target time period being one or more time periods before a current time; a first acquisition module, configured to send the target time period to a first thread, acquire historical jobs in the target time period in a scheduling system accounting file through the first thread, and send the target time period and the historical jobs acquired by the first thread to a second thread; wherein the first thread is configured to perform the following operations: in all scheduling system accounting files of a job scheduling system, determine a target scheduling system accounting file corresponding to a time period to which the target time period belongs; in all historical jobs stored in the target scheduling system accounting file, acquire historical jobs with an end time in the target time period as the historical jobs in the target time period in the scheduling system accounting file; store the historical jobs in the target time period in the scheduling system accounting file into a first historical job list; and send the target time period and the first historical job list to the second thread; the historical job is an executed job, the scheduling system accounting file is a file generated in the job scheduling system and used to store historical jobs executed in each day in the job scheduling system and execution process information of the historical jobs executed in each day, the execution process information including a job start time, a job end time and a job duration; and a second acquisition module, configured to acquire historical jobs in the target time period in the scheduling system accounting file through the second thread, and determine the historical jobs acquired by the second thread as a request feedback result corresponding to the historical job acquisition request. The second obtaining module is configured to: obtain, by the second thread, historical jobs in the target time period in a scheduling system database, compare the historical jobs obtained by the second thread with the historical jobs obtained by the first thread, and determine whether there is a missing historical job in the historical jobs obtained by the second thread; the scheduling system database is a database in the job scheduling system for storing historical jobs and related information of the historical jobs; the second thread is configured to: receive the target time period and the first historical job list sent by the first thread; obtain, from all historical jobs stored in the scheduling system database, historical jobs with an end time in the target time period, as the historical jobs in the target time period in the scheduling system database; store the historical jobs in the target time period in the scheduling system database into a second historical job list; obtain job identifiers of all historical jobs in the first historical job list; obtain job identifiers of all historical jobs in the second historical job list; determine whether the job identifiers of all historical jobs in the second historical job list contain the job identifiers of all historical jobs in the first historical job list; if the job identifiers of all historical jobs in the second historical job list contain the job identifiers of all historical jobs in the first historical job list, it is determined that there is no missing historical job in the historical jobs obtained by the second thread; if the job identifiers of all historical jobs in the second historical job list do not contain the job identifier of a target historical job in the first historical job list, it is determined that there is a missing historical job in the historical jobs obtained by the second thread, and the target historical job is a missing historical job in the historical jobs obtained by the second thread; The job supplement module is configured to: if there is a missing historical job in the historical jobs obtained by the second thread, obtain, by the second thread, the missing historical job from the historical jobs obtained by the first thread, supplement the missing historical job to the historical jobs obtained by the second thread, and obtain all historical jobs in the target time period; the second thread is configured to: obtain the target historical job from the first historical job list, supplement the target historical job to the second historical job list, and obtain all historical jobs in the target time period; The result determination module is configured to determine all historical jobs in the target time period as a request feedback result corresponding to the historical job obtaining request.
5. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the job obtaining method in any one of claims 1-3.
6. A computer readable storage medium characterized by, The computer readable storage medium stores computer instructions for causing the processor to implement the job obtaining method in any one of claims 1-3 when executed.
Citation Information
Patent Citations
Hadoop-oriented dynamic scheduling method
CN104298550A
Distributed timed task execution method and device, equipment and readable storage medium
CN111679895A