Timing task processing method and device and medium

By using a visual timing task configuration table and feedback interface, the problem of complex timing task configuration and unclear execution is solved, the configuration efficiency and real-time monitoring capabilities are improved, and the system is operated stably.

CN119440759APending Publication Date: 2025-02-14QINGDAO AOLIPU AUTOMATIC CONTROL SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411488316.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, the timing tasks are configured in complex, the work efficiency is low, and the execution of the timing tasks is unclear, which may lead to abnormalities in the system.

Method used

By using the visual timing task configuration table to generate corresponding timing tasks, and update the task execution information of the timing task feedback interface after execution, users can view the execution status of the timing task in real time.

Benefits of technology

It improves the simplicity and efficiency of timing task configuration, allowing users to monitor the execution status of timing tasks in real time through the visual interface to ensure the normal operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440759A_ABST
    Figure CN119440759A_ABST
Patent Text Reader

Abstract

The invention provides a timed task processing method and device and a medium, and relates to the technical field of computers. According to the method, in response to a startup instruction, a corresponding timed task is generated according to a timed task configuration table in an executable file corresponding to the timed task, the timed task configuration table is a visual configuration table and comprises one or more timed task configurations, and the timed task comprises task execution time; executing the timed task according to the task execution time to obtain an execution result corresponding to the timed task; and updating task execution information displayed on the timed task feedback interface according to the execution result and the task execution time, wherein the task execution information comprises the execution time and the execution result of the timed task. According to the method, the visualization of the execution state of the timed task can be ensured, and the simplicity and convenience of timed task configuration are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and medium for processing a scheduled task. Background Art

[0002] During the intelligent production process of a factory, the factory's production management system usually needs to complete certain operations regularly, such as regularly obtaining personnel information, material information, automatic handling information and other data to ensure the normal operation of the system.

[0003] In the related technology, the staff can use the scheduled task tool provided by the operating system to configure the relevant scheduled tasks to complete the corresponding scheduled operations, such as the Task Scheduler in the Windows system. The staff can use the relevant configuration files in the system to set the trigger conditions, executed operations, time intervals and other information of the scheduled tasks, and then restart the system. After the system is restarted, if it is detected that the trigger conditions of a scheduled task are met, the program corresponding to the scheduled task will be executed to complete the corresponding operation.

[0004] However, this processing method not only makes the scheduled task configuration complicated and has low work efficiency, but also makes it unclear about the execution status of the scheduled tasks, which may cause system abnormalities. Summary of the invention

[0005] The embodiments of the present application provide a method, device and medium for processing a scheduled task, which can ensure the visualization of the execution status of the scheduled task and improve the simplicity of the scheduled task configuration.

[0006] In a first aspect, an embodiment of the present application provides a method, comprising:

[0007] In response to the power-on instruction, a corresponding scheduled task is generated according to a scheduled task configuration table in an executable file corresponding to the scheduled task, wherein the scheduled task configuration table is a visual configuration table and includes one or more scheduled task configurations, and the scheduled task includes a task execution time;

[0008] Execute the scheduled task according to the task execution time, and obtain the execution result corresponding to the scheduled task;

[0009] The task execution information displayed on the scheduled task feedback interface is updated according to the execution result and the task execution time, wherein the task execution information includes the execution time and the execution result of the scheduled task.

[0010] In a possible implementation manner, generating a corresponding scheduled task according to a scheduled task configuration table in an executable file corresponding to the scheduled task includes:

[0011] Get the scheduled task configuration table in the executable file corresponding to the scheduled task;

[0012] Parse the scheduled task configuration table to obtain the corresponding scheduled task configuration, wherein the scheduled task configuration includes the task type, calling interface number, calling interface name, database name, and task execution time interval;

[0013] For each scheduled task configuration,

[0014] Determine the interface to be called according to the calling interface number and the calling interface name; determine the data storage path according to the database name; and determine the current task execution time according to the last task execution time corresponding to the task type and the task execution time interval;

[0015] Generate a scheduled task corresponding to the scheduled task configuration according to the interface to be called, the data storage path and the current task execution time.

[0016] In a possible implementation, executing the scheduled task according to the task execution time to obtain an execution result corresponding to the scheduled task includes:

[0017] When the current time reaches the task execution time, the to-be-called interface is called to obtain the corresponding target data, and when the call is successful, the target data is stored in the target database according to the data storage path;

[0018] The execution result corresponding to the scheduled task is determined according to the calling result of the interface to be called.

[0019] In a possible implementation manner, after executing the scheduled task according to the task execution time and obtaining the execution result corresponding to the scheduled task, the method further includes:

[0020] According to the preset execution log configuration file and the execution result of the scheduled task, a corresponding scheduled task execution log is generated, and the scheduled task execution log is stored in the corresponding position in the target database. The scheduled task execution log includes the calling interface number, the execution result file and the log generation time.

[0021] In a possible implementation manner, the target database is obtained in the following manner:

[0022] In response to a database creation link, determining a database type corresponding to the database creation link;

[0023] Determine the target configuration statement corresponding to the database type according to the preset database statement configuration library;

[0024] According to the target configuration statement, the target database is created.

[0025] In a possible implementation, the scheduled task feedback interface includes a plurality of display sections, each display section displays task execution information corresponding to each scheduled task, and the task execution information further includes task type and running status information;

[0026] For each display interval,

[0027] The display interval includes a type display sub-interval, a status display sub-interval, a time display sub-interval and a result display sub-interval;

[0028] The type display sub-interval displays the task type of the scheduled task, the status display sub-interval displays the running status information of the scheduled task, the time display sub-interval displays the most recent execution time of the scheduled task, and the result display sub-interval displays a preset number of execution results of the scheduled task in the order of timestamps, and the execution results include execution success and execution failure.

[0029] In a possible implementation, updating the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time includes:

[0030] Determine, according to the task type of the scheduled task, a corresponding time display subinterval and result display subinterval in the scheduled task feedback interface;

[0031] updating the execution time in the time display subinterval according to the task execution time; and determining whether the number of execution results in the result display subinterval is less than a preset number;

[0032] If yes, the execution results of the scheduled tasks are displayed in the result display sub-interval according to the order of timestamps;

[0033] If not, the execution result with the earliest timestamp in the result display sub-interval is removed, and the execution results of the scheduled task are displayed in the result display sub-interval in the order of the timestamps.

[0034] In a second aspect, an embodiment of the present application provides a computing device, including:

[0035] A task generation module, for generating a corresponding scheduled task in response to a power-on instruction according to a scheduled task configuration table in an executable file corresponding to the scheduled task, wherein the scheduled task configuration table is a visual configuration table and includes one or more scheduled task configurations, and the scheduled task includes a task execution time;

[0036] An execution display module is used to execute the scheduled task according to the task execution time and obtain the execution result corresponding to the scheduled task; update the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time, and the task execution information includes the execution time and execution result of the scheduled task.

[0037] In a third aspect, an embodiment of the present application provides another computing device, including:

[0038] A processor, and a memory communicatively connected to the processor;

[0039] Memory is used to store computer executable instructions;

[0040] The processor is used to execute the computer execution instructions stored in the memory to implement the processing method of the timed task of the first aspect.

[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the processing method of the timed task of the first aspect.

[0042] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the processing method of the timed task of the first aspect.

[0043] The embodiment of the present application provides a method, device and medium for processing scheduled tasks, which can use a visual scheduled task configuration table to complete the configuration of multiple scheduled tasks, without the need to use multiple configuration files, and without the need for code developers to intervene, the scheduled tasks can be simply and conveniently configured and added, thereby improving the simplicity and efficiency of the scheduled task configuration. In addition, the task execution information of each scheduled task can be displayed using a visual scheduled task feedback interface, and after each scheduled task is executed, the task execution information displayed on the scheduled task feedback interface will be updated according to the execution result and the task execution time, so that the user can view the execution status of the scheduled task in real time through the visual scheduled task feedback interface to ensure the normal operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0045] Figure 1 A flowchart of a method for processing a scheduled task according to an embodiment of the present application;

[0046] Figure 2 This is a schematic diagram of a timed task feedback interface according to an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of a computing device according to an embodiment of the present application;

[0048] Figure 4 A schematic diagram of the structure of a computing device according to another embodiment of the present application.

[0049] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0051] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, 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 "including" and "having" and any variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0052] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.

[0053] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0054] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0055] The method, device and medium for processing scheduled tasks of the present application can be used in the computer field, and can also be used in any field other than the computer field, such as the data processing field, etc. The application field of the method, device and medium for processing scheduled tasks of the present application is not limited.

[0056] The scheduled task processing method, device and medium of the present application can be applied to processing scenarios such as the configuration, execution and display of scheduled tasks. Any related scenarios involving scheduled task processing, such as scenarios in which a factory's production management system periodically obtains personnel information or material information, can all apply the scheduled task processing method, device and medium of the present application.

[0057] First, the terms involved in this application are explained:

[0058] A scheduled task is a mechanism that automatically executes a specific task at a pre-set time or periodically in a computer system.

[0059] In the related technology, the staff can use the scheduled task tool provided by the operating system to configure the relevant scheduled tasks to complete the corresponding scheduled operations, such as the Task Scheduler in the Windows system. The staff can use the relevant configuration files in the system to set the trigger conditions, executed operations, time intervals and other information of the scheduled tasks, and then restart the system. After the system is restarted, if it is detected that the trigger conditions of a scheduled task are met, the program corresponding to the scheduled task will be executed to complete the corresponding operation.

[0060] However, this processing method not only makes the scheduled task configuration complex and inefficient, but also makes it unclear how the scheduled tasks are executed, which may cause system anomalies. Specifically:

[0061] (1) When using configuration files of task schedulers to set up scheduled tasks, the operation is complicated and usually requires the intervention of code developers, which is difficult. In addition, a configuration file can usually only complete the configuration of one or two scheduled tasks. If multiple scheduled tasks need to be configured, a large number of configuration files need to be operated, which increases the difficulty of configuring scheduled tasks and greatly reduces work efficiency.

[0062] (2) When a scheduled task is executed, the staff cannot understand the execution status of the scheduled task in real time. If they want to determine the execution result, they need to find the execution log of the scheduled task. The storage path of the execution log is generally at the bottom layer, making it difficult to find the log.

[0063] Based on the above technical problems, the inventive concept of the present application is: how to provide a processing solution for scheduled tasks that can ensure the visualization of the execution status of scheduled tasks and improve the simplicity of scheduled task configuration.

[0064] The embodiment of the present application provides a method, device and medium for processing a scheduled task, which can use a visualized scheduled task configuration table to complete the configuration of multiple scheduled tasks at the same time, thereby improving the simplicity and efficiency of the scheduled task configuration. In addition, the visualized scheduled task feedback interface can also be used to display the task execution information of each scheduled task in real time, so that the user can view the execution status of each scheduled task in real time through the scheduled task feedback interface to ensure the normal operation of the system.

[0065] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0066] Figure 1 Flowchart of a method for processing a scheduled task according to an embodiment of the present application. This embodiment describes the method for processing the scheduled task by taking the execution subject as a computing device. Figure 1 As shown, the processing method of the scheduled task may include the following steps:

[0067] S101: In response to a power-on instruction, a corresponding scheduled task is generated according to a scheduled task configuration table in an executable file corresponding to the scheduled task.

[0068] In this embodiment, the scheduled task configuration table may be a visual configuration table and include one or more scheduled task configurations. The scheduled task may include a task execution time.

[0069] In this embodiment, the computing device may be a terminal device such as a computer or a mobile phone, or may be a terminal-server integrated device. As long as the configuration and execution of scheduled tasks can be completed, no limitation is imposed here.

[0070] In this embodiment, after the user completes the scheduled task configuration table and debugs it in the visual interface, the scheduled task configuration table can be packaged to generate a corresponding binary file, and the executable file in the binary file can be placed in the startup program of the computing device, and then the computing device can be restarted. In response to the startup instruction, the computing device can generate the corresponding scheduled task according to the scheduled task configuration table in the executable file, thereby realizing the automatic execution of the scheduled task.

[0071] In this embodiment, the scheduled task configuration table sys_job_status is made into a simple interface function, so that ordinary non-development employees can configure newly added scheduled tasks without the need for development intervention.

[0072] In this embodiment, the scheduled task configuration table can include multiple scheduled task configurations, that is, one table can complete the configuration of all scheduled tasks, and the addition, deletion, and modification of scheduled tasks can be completed by adding, deleting, and modifying the scheduled task configuration table. The operation is simple, which greatly improves the simplicity and work efficiency of scheduled task configuration, and there is no need to worry about configuration errors causing task failure. In a multi-task environment, it can also ensure that scheduled tasks will not conflict with other tasks, ensure the independence and mutual exclusivity of tasks, protect the system from unauthorized modification or execution of scheduled tasks, and ensure that only authorized tasks can be executed at a specific time.

[0073] In this embodiment, after the user creates a scheduled task configuration table or modifies the scheduled task configuration table, the computing device needs to be restarted.

[0074] S102: Execute the scheduled task according to the task execution time, and obtain the execution result corresponding to the scheduled task.

[0075] In this embodiment, the execution result may include execution success and execution failure, as well as the time consumed for each execution.

[0076] In this embodiment, the scheduled task may include the task execution time, that is, the time to execute the scheduled task. The scheduled task allows the program to automatically start and execute at a preset time without manual intervention, which is very useful for tasks that need to be executed regularly, such as data backup, system maintenance, etc. Scheduled tasks can be set according to different needs, and can be executed periodically (such as daily, weekly, monthly) or at a specific time point. This flexibility enables scheduled tasks to adapt to various application scenarios. By automating the execution of repetitive tasks, work efficiency can be significantly improved, manual operation errors can be reduced, and the manual burden can also be reduced.

[0077] S103: updating the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time.

[0078] In this embodiment, the task execution information may include the execution time and execution result of the scheduled task.

[0079] In this embodiment, the scheduled task feedback interface can display the task execution information of each scheduled task. If a scheduled task is completed, the computing device can update the task execution information corresponding to the scheduled task in the scheduled task feedback interface according to the execution result of the scheduled task and the task execution time, so that the user can view the execution status of the scheduled task in real time through the visual scheduled task feedback interface to ensure the normal operation of the system.

[0080] In this embodiment, the visual scheduled task feedback interface and the scheduled task configuration table can be implemented based on the WPF framework. The powerful data binding function of WPF supports the MVVM (Model-View-ViewModel) mode, realizes the property-driven design, and the property changes can be automatically reflected in the interface, which improves the development efficiency and user experience. WPF supports two-dimensional and three-dimensional graphic effects, including gradients, bitmaps, drawing, rotation, scaling and tilting, etc., as well as animation and media playback functions, providing a rich visual experience for the application.

[0081] In this embodiment, the configuration of multiple scheduled tasks can be completed using a visualized scheduled task configuration table, and the configuration and addition of scheduled tasks can be simply and conveniently performed without using multiple configuration files or requiring the intervention of code developers, thereby improving the simplicity and efficiency of the scheduled task configuration. In addition, the task execution information of each scheduled task can also be displayed using a visualized scheduled task feedback interface, and after each scheduled task is executed, the task execution information displayed on the scheduled task feedback interface will be updated according to the execution result and the task execution time, so that the user can view the execution status of the scheduled task in real time through the visualized scheduled task feedback interface to ensure the normal operation of the system.

[0082] In a possible implementation, the step S101 of generating a corresponding scheduled task according to a scheduled task configuration table in an executable file corresponding to the scheduled task may include:

[0083] S11: Obtain a scheduled task configuration table in the executable file corresponding to the scheduled task.

[0084] S12: Parse the scheduled task configuration table to obtain the corresponding scheduled task configuration, where the scheduled task configuration includes task type, calling interface number, calling interface name, database name, and task execution time interval.

[0085] S13: For each scheduled task configuration, determine the interface to be called according to the calling interface number and the calling interface name; determine the data storage path according to the database name; and determine the current task execution time according to the last task execution time corresponding to the task type and the task execution time interval.

[0086] S14: Generate a scheduled task corresponding to the scheduled task configuration according to the interface to be called, the data storage path, and the execution time of this task.

[0087] In this implementation, the specific implementation method of parsing the scheduled task configuration table to obtain the corresponding scheduled task configuration can refer to the existing related technology and will not be described in detail here.

[0088] In this implementation, there is a one-to-one correspondence between a scheduled task configuration and a scheduled task, and one scheduled task configuration can generate one scheduled task.

[0089] In this implementation, those skilled in the art may flexibly configure the scheduled task configuration, which is not limited to the above content. For example, when the scheduled task is executed for the first time, the scheduled task configuration may also include the first execution time of the task.

[0090] Exemplarily, the following Table 1 is a timed task configuration table of an embodiment of the present application.

[0091] Table 1

[0092]

[0093] In this embodiment, after parsing the scheduled task configuration table to obtain the scheduled task configuration, the interface to be called and the data storage path can be determined according to the information in the scheduled task configuration, that is, the program to be executed by the task can be determined; the current task execution time is determined according to the last task execution time and the task execution time interval, that is, the time to be executed of the task is determined, and the corresponding scheduled task can be accurately generated according to the program and time to be executed of the task, ensuring that the scheduled task can be accurately executed according to the preset conditions, avoiding task execution failure due to time error or system failure.

[0094] In a possible implementation, the above step S102 executes the scheduled task according to the task execution time to obtain the execution result corresponding to the scheduled task, which may include:

[0095] S21: When the current time reaches the task execution time, the to-be-called interface is called to obtain the corresponding target data, and when the call is successful, the target data is stored in the target database according to the data storage path.

[0096] S22: Determine the execution result corresponding to the scheduled task according to the calling result of the interface to be called.

[0097] In this embodiment, the process of executing the scheduled task in step S102 may specifically be to call the interface to be called to obtain the corresponding target data, and when the call is successful, store the target data in the target database according to the data storage path.

[0098] In this embodiment, if the interface to be called is successfully called (the target data is obtained), the execution result is a successful execution; if the interface to be called fails (the target data is not obtained), the execution result is a failed execution.

[0099] In this embodiment, when the execution result is execution failure, the computing device may also output task failure prompt information to prompt the user to take corresponding measures in a timely manner.

[0100] In this embodiment, when the current time reaches the task execution time, the computing device can call the interface to be called to obtain the corresponding target data from the server, and after the call is successful, the target data is stored in the target database according to the data storage path. The execution result of the scheduled task can be accurately determined based on the call result of the interface to be called.

[0101] In a possible implementation, after executing the scheduled task according to the task execution time in the above step S102 and obtaining the execution result corresponding to the scheduled task, the following may also be included:

[0102] S31: Generate a corresponding scheduled task execution log according to a preset execution log configuration file and the execution result of the scheduled task.

[0103] S32: storing the scheduled task execution log to a corresponding location in the target database, wherein the scheduled task execution log includes a calling interface number, an execution result file, and a log generation time.

[0104] In this implementation, the execution log configuration file may be a visual configuration file, and the user may set the storage path and other information of the execution log on the visual interface.

[0105] In this embodiment, after the scheduled task is executed, a scheduled task execution log can be generated according to the preset execution log configuration file and the execution result of the scheduled task. The scheduled task execution log can include all historical execution records for data tracing by the staff. Furthermore, the scheduled task execution log can be stored in the corresponding position in the target database, and the execution log and target data are stored in the target database at the same time. The storage path is easy to find, which is convenient for the staff to view the execution log at any time.

[0106] In a possible implementation, the target database may be obtained in the following manner:

[0107] S41: In response to a database creation link, determining a database type corresponding to the database creation link.

[0108] S42: Determine a target configuration statement corresponding to the database type according to a preset database statement configuration library.

[0109] S43: Complete the creation of the target database according to the target configuration statement.

[0110] In this implementation, the database creation link may include type information of the database to be created.

[0111] In this embodiment, the preset database statement configuration library may include configuration statements corresponding to various types of databases, and are classified and stored by database type. According to the preset database statement configuration library, various types of databases can be created.

[0112] In this embodiment, those skilled in the art can generate a database statement configuration library in a computing device in advance according to configuration statements corresponding to various types of databases. After receiving a database creation link, the computing device can determine the corresponding target configuration statement from the database statement configuration library according to the database type corresponding to the link, and complete the creation of the target database accordingly, which greatly improves the simplicity and efficiency of database creation.

[0113] In a possible implementation, the scheduled task feedback interface in the above step S103 may include multiple display sections, each display section displays task execution information corresponding to each scheduled task, and the task execution information also includes task type and running status information.

[0114] For each display interval, the display interval may include a type display sub-interval, a state display sub-interval, a time display sub-interval, and a result display sub-interval.

[0115] The type display sub-interval can display the task type of the scheduled task, the status display sub-interval can display the running status information of the scheduled task, the time display sub-interval can display the most recent execution time of the scheduled task, and the result display sub-interval can display a preset number of execution results of the scheduled task in the order of timestamps. The execution results include success and failure.

[0116] In this embodiment, the scheduled task feedback interface can be set to start automatically when the computer is turned on, and can be closed when the user does not need it, and the interface can be popped up again by clicking a shortcut key or icon when needed.

[0117] In this embodiment, the operation status information may include one or more of a startup status, an execution status, a pause status, a fault status, a task execution time interval, and a task execution number.

[0118] In this embodiment, the result display subinterval may display a preset number of execution results of the scheduled task, and execution results exceeding the preset number may be obtained by viewing the scheduled task execution log.

[0119] In this embodiment, the preset number can be flexibly set by those skilled in the art. For example, the preset number can be 8 or 10, and no limitation is made here.

[0120] In this embodiment, the task type displayed in the type display subinterval is fixed when the scheduled task is set, and does not change with the execution of the scheduled task. The running status information displayed in the status display subinterval can be changed with manual changes or updated with the task execution status. The content displayed in the time display subinterval and the result display subinterval is updated with each execution of the scheduled task.

[0121] For example, Figure 2 This is a schematic diagram of a timed task feedback interface according to an embodiment of the present application. Figure 2 As shown in the figure, the scheduled task feedback interface includes 4 display sections, which respectively display the execution status of the four scheduled tasks: test storage, AGV task processing, scheduled synchronization personnel, and scheduled synchronization materials. Taking the scheduled task of test storage as an example, the result display sub-section of this task shows that the scheduled task has been executed twice, and both executions were successful.

[0122] In this embodiment, the display interval can correspond to the scheduled task one by one, and a display interval on the scheduled task feedback interface can display the task execution information of a scheduled task. The user can clearly see the execution status of all scheduled tasks through each display interval, and it is simple and convenient to view the scheduled tasks. Furthermore, the display interval can display the task execution information of the scheduled task, such as the task type, running status information, the most recent execution time, and the execution result, so that the user can clearly see the implementation progress of the scheduled task.

[0123] In a possible implementation, the updating of the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time in the above step S103 may include:

[0124] S51: Determine a corresponding time display subinterval and result display subinterval in a scheduled task feedback interface according to the task type of the scheduled task.

[0125] S52: updating the execution time in the time display subinterval according to the task execution time; and determining whether the number of execution results in the result display subinterval is less than a preset number.

[0126] S53: If yes, the execution results of the scheduled tasks are displayed in the result display sub-interval in the order of the timestamps.

[0127] S54: If not, remove the execution result with the earliest timestamp in the result display sub-interval, and display the execution results of the scheduled tasks in the result display sub-interval in the order of the timestamps.

[0128] In this embodiment, when a scheduled task is completed, the information displayed at the corresponding position of the scheduled task feedback interface can be updated according to the execution result of the scheduled task and the task execution time.

[0129] In this embodiment, the task execution information displayed on the scheduled task feedback interface can be real-time execution status information. Therefore, after each scheduled task is executed, the execution time in the time display sub-interval needs to be updated according to the task execution time to ensure that the time display sub-interval displays the most recent execution time of the scheduled task; the execution results displayed in the result display sub-interval are updated according to the order of generating timestamps to ensure that the result display sub-interval displays the latest preset number of execution results of the scheduled task, thereby ensuring that the task execution information in the scheduled task feedback interface is real-time and valid.

[0130] The following is an explanation of the method for processing the scheduled tasks of the present application with reference to a specific embodiment.

[0131] In a specific embodiment, a factory needs to obtain personnel information and material information regularly. The staff creates corresponding scheduled tasks on the computing device. The specific processing process of the scheduled tasks is as follows:

[0132] In the first step, the staff enters the interval time, calling interface number and other information in the visual interface of the computing device to complete the scheduled task configuration table, and then packages the scheduled task configuration table to generate the corresponding binary file, and puts the executable file in the binary file into the startup program of the computing device to restart the computing device.

[0133] In the second step, the computing device generates a corresponding scheduled task according to the scheduled task configuration table in the executable file corresponding to the scheduled task in response to the power-on instruction. The computing device also starts a scheduled task feedback interface that displays task execution information of each scheduled task.

[0134] In the third step, when the current time reaches the task execution time, the computing device executes the scheduled task to call the interface to be called to obtain the corresponding target data, and when the call is successful, stores the target data in the target database according to the data storage path; according to the call result of the interface to be called, the execution result corresponding to the scheduled task is determined.

[0135] In the fourth step, the computing device generates a corresponding scheduled task execution log according to the preset execution log configuration file and the execution result of the scheduled task; and stores the scheduled task execution log to a corresponding position in the target database.

[0136] In the fifth step, the computing device updates the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time.

[0137] Figure 3 This is a schematic diagram of the structure of a computing device according to an embodiment of the present application. Figure 3 As shown, the computing device includes: a task generation module 31, which is used to respond to a power-on instruction and generate a corresponding scheduled task according to a scheduled task configuration table in an executable file corresponding to the scheduled task, wherein the scheduled task configuration table is a visual configuration table and includes one or more scheduled task configurations, and the scheduled task includes a task execution time; an execution display module 32, which is used to execute the scheduled task according to the task execution time and obtain an execution result corresponding to the scheduled task; and update the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time, wherein the task execution information includes the execution time and the execution result of the scheduled task.

[0138] The computing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0139] In a possible implementation, the task generation module 31 may also be used to:

[0140] Get the scheduled task configuration table in the executable file corresponding to the scheduled task;

[0141] Parse the scheduled task configuration table to obtain the corresponding scheduled task configuration, which includes task type, calling interface number, calling interface name, database name, and task execution time interval;

[0142] For each scheduled task configuration,

[0143] Determine the interface to be called according to the calling interface number and the calling interface name; determine the data storage path according to the database name; and determine the current task execution time according to the last task execution time and the task execution time interval corresponding to the task type;

[0144] Generate a scheduled task corresponding to the scheduled task configuration based on the interface to be called, the data storage path, and the execution time of this task.

[0145] The computing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0146] In a possible implementation, the execution display module 32 may also be used to:

[0147] When the current time reaches the task execution time, the interface to be called is called to obtain the corresponding target data, and when the call is successful, the target data is stored in the target database according to the data storage path;

[0148] Determine the execution result of the scheduled task according to the call result of the interface to be called.

[0149] The computing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0150] In a possible implementation, after executing the scheduled task according to the task execution time and obtaining the execution result corresponding to the scheduled task, the execution display module 32 may also be used to:

[0151] According to the preset execution log configuration file and the execution result of the scheduled task, the corresponding scheduled task execution log is generated, and the scheduled task execution log is stored in the corresponding location in the target database. The scheduled task execution log includes the calling interface number, execution result file and log generation time.

[0152] The computing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0153] In a possible implementation, the execution display module 32 may also be used to:

[0154] In response to the database creation link, determining a database type corresponding to the database creation link;

[0155] According to the preset database statement configuration library, determine the target configuration statement corresponding to the database type;

[0156] Complete the creation of the target database according to the target configuration statement.

[0157] The computing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0158] In a possible implementation, the execution display module 32 may also be used to:

[0159] According to the task type of the scheduled task, determine the corresponding time display sub-interval and result display sub-interval in the scheduled task feedback interface;

[0160] The execution time in the time display subinterval is updated according to the task execution time; and it is determined whether the number of execution results in the result display subinterval is less than a preset number;

[0161] If yes, the execution results of the scheduled tasks are displayed in the result display sub-interval in the order of timestamps;

[0162] If not, the execution result with the earliest timestamp in the result display sub-interval is removed, and the execution results of the scheduled tasks are displayed in the result display sub-interval in the order of the timestamps.

[0163] The computing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0164] Figure 4 This is a schematic diagram of the structure of a computing device according to another embodiment of the present application. Figure 4 As shown, the computing device includes: a processor 401, and a memory 402 that is communicatively connected to the processor 401; the memory 402 stores computer execution instructions; the processor 401 executes the computer execution instructions stored in the memory 402 to implement the steps of the method for processing the timed task in the above-mentioned method embodiments.

[0165] In the above computing device, the memory 402 and the processor 401 are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 402 stores computer-executable instructions for implementing the data access control method, including at least one software function module that can be stored in the memory 402 in the form of software or firmware. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402.

[0166] The memory 402 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 402 is used to store programs, and the processor 401 executes the programs after receiving the execution instruction. Furthermore, the software programs and modules in the above-mentioned memory 402 may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.

[0167] The processor 401 may be an integrated circuit chip having the ability to process signals. The processor 401 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0168] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the steps of each method embodiment of the present application.

[0169] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of each method embodiment of the present application when executed by a processor.

[0170] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0171] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0172] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0173] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0174] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0175] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

[0176] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for processing a scheduled task, characterized in that: include: In response to the power-on instruction, a corresponding scheduled task is generated according to a scheduled task configuration table in an executable file corresponding to the scheduled task, wherein the scheduled task configuration table is a visual configuration table and includes one or more scheduled task configurations, and the scheduled task includes a task execution time; Execute the scheduled task according to the task execution time, and obtain the execution result corresponding to the scheduled task; The task execution information displayed on the scheduled task feedback interface is updated according to the execution result and the task execution time, wherein the task execution information includes the execution time and the execution result of the scheduled task.

2. The method for processing a scheduled task according to claim 1, characterized in that: The generating of the corresponding scheduled task according to the scheduled task configuration table in the executable file corresponding to the scheduled task includes: Get the scheduled task configuration table in the executable file corresponding to the scheduled task; Parse the scheduled task configuration table to obtain the corresponding scheduled task configuration, wherein the scheduled task configuration includes the task type, calling interface number, calling interface name, database name, and task execution time interval; For each scheduled task configuration, Determine the interface to be called according to the calling interface number and the calling interface name; determine the data storage path according to the database name; and determine the current task execution time according to the last task execution time corresponding to the task type and the task execution time interval; Generate a scheduled task corresponding to the scheduled task configuration according to the interface to be called, the data storage path and the current task execution time.

3. The method for processing a scheduled task according to claim 2, characterized in that: The executing the scheduled task according to the task execution time to obtain the execution result corresponding to the scheduled task includes: When the current time reaches the task execution time, the to-be-called interface is called to obtain the corresponding target data, and when the call is successful, the target data is stored in the target database according to the data storage path; The execution result corresponding to the scheduled task is determined according to the calling result of the interface to be called.

4. The method for processing a scheduled task according to claim 3, characterized in that: After executing the scheduled task according to the task execution time and obtaining the execution result corresponding to the scheduled task, the method further includes: According to the preset execution log configuration file and the execution result of the scheduled task, a corresponding scheduled task execution log is generated, and the scheduled task execution log is stored in the corresponding position in the target database. The scheduled task execution log includes the calling interface number, the execution result file and the log generation time.

5. The method for processing a scheduled task according to claim 4, characterized in that: The target database is obtained by: In response to a database creation link, determining a database type corresponding to the database creation link; Determine the target configuration statement corresponding to the database type according to the preset database statement configuration library; According to the target configuration statement, the target database is created.

6. The method for processing a scheduled task according to any one of claims 1 to 5, characterized in that: The scheduled task feedback interface includes multiple display intervals, each display interval displays task execution information corresponding to each scheduled task, and the task execution information also includes task type and running status information; For each display interval, The display interval includes a type display sub-interval, a status display sub-interval, a time display sub-interval and a result display sub-interval; The type display sub-interval displays the task type of the scheduled task, the status display sub-interval displays the running status information of the scheduled task, the time display sub-interval displays the most recent execution time of the scheduled task, and the result display sub-interval displays a preset number of execution results of the scheduled task in the order of timestamps, and the execution results include execution success and execution failure.

7. The method for processing a scheduled task according to claim 6, characterized in that: The updating of the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time includes: Determine, according to the task type of the scheduled task, a corresponding time display subinterval and result display subinterval in the scheduled task feedback interface; updating the execution time in the time display subinterval according to the task execution time; and determining whether the number of execution results in the result display subinterval is less than a preset number; If yes, the execution results of the scheduled tasks are displayed in the result display sub-interval according to the order of timestamps; If not, the execution result with the earliest timestamp in the result display sub-interval is removed, and the execution results of the scheduled task are displayed in the result display sub-interval in the order of the timestamps.

8. A computing device, characterized in that include: A task generation module, for generating a corresponding scheduled task in response to a power-on instruction according to a scheduled task configuration table in an executable file corresponding to the scheduled task, wherein the scheduled task configuration table is a visual configuration table and includes one or more scheduled task configurations, and the scheduled task includes a task execution time; An execution display module is used to execute the scheduled task according to the task execution time and obtain the execution result corresponding to the scheduled task; update the task execution information displayed on the scheduled task feedback interface according to the execution result and the task execution time, and the task execution information includes the execution time and execution result of the scheduled task.

9. A computing device, characterized in that include: A processor, and a memory communicatively connected to the processor; The memory is used to store computer-executable instructions; The processor is used to execute the computer-executable instructions stored in the memory to implement the method for processing a scheduled task according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for processing a scheduled task according to any one of claims 1 to 7.