Methods, devices, electronic devices and storage media for visualizing scheduled tasks

By receiving task system messages, generating a visual record table, and acquiring process data, the problem of difficult monitoring of scheduled tasks in online financial business is solved. It realizes automated monitoring and multi-terminal viewing, reduces maintenance costs, and provides timely alerts for timed-out tasks.

CN115658445BActive Publication Date: 2026-06-30SHANGHAI PINWEI INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI PINWEI INFORMATION TECH CO LTD
Filing Date
2022-10-31
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Scheduled tasks in online financial transactions are difficult to monitor in a timely manner. There are many tasks that are interdependent and have tight execution times. Existing solutions are highly intrusive, have high maintenance costs, and lack proactive reminder functions.

Method used

This paper provides a method for visualizing scheduled tasks. By receiving task system messages, it generates a visual record table and obtains process data, actively displays task status and process data, supports asynchronous monitoring and alarms, and reduces user workload.

Benefits of technology

It enables automated monitoring and visualization of scheduled tasks, reduces business intrusion, lowers maintenance costs, supports viewing on multiple terminals, and provides timely alerts for timed-out tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115658445B_ABST
    Figure CN115658445B_ABST
Patent Text Reader

Abstract

This invention provides a method for visualizing scheduled tasks, applied to a visualization system. The method includes: receiving a target scheduled task message sent by a task system and determining a visualization record table for the target scheduled task based on the target scheduled task information; obtaining process data of the target scheduled task from a log system based on a visualization meta-configuration table and the target scheduled task information; and displaying the target scheduled task based on the visualization record table and the process data. The method involves determining the visualization record table and obtaining the corresponding process data by processing the received scheduled task message; displaying the status and execution process of a large number of scheduled tasks based on the visualization record table and the process data; and issuing alarms for timeout tasks by analyzing the average execution time of past tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of visualization, and in particular to a method, apparatus, electronic device, and storage medium for visualizing timed tasks. Background Technology

[0002] Online financial transactions involve numerous batch processing tasks with the following characteristics: 1. Execution often occurs in the early morning, making timely monitoring difficult; 2. A large number of tasks with interdependencies; 3. Some tasks require monitoring process data to determine if they are executing correctly; 4. Task execution time and completion schedules are tight, requiring immediate notification to developers if delays occur; 5. Scheduled tasks are distributed across multiple business subsystems. The conventional solution is to insert execution logs and execution status records into the database within the logic of each scheduled task. However, this conventional approach has the following drawbacks: 1. Strong business intrusion, requiring developers to perform repetitive coding unrelated to business logic, reducing system security; 2. Delayed display, lacking proactive alerts; 3. High maintenance costs, becoming increasingly difficult to manage as projects grow and numerous scattered monitoring logics accumulate; 4. Lack of intuitive viewing, relying on developers to actively check logs and database records. Summary of the Invention

[0003] Therefore, it is necessary to provide a method, apparatus, electronic device, and storage medium for visualizing timed tasks that can automatically display and monitor the execution status and process data of a large number of timed tasks, in order to address the above-mentioned technical problems.

[0004] Firstly, a method for visualizing scheduled tasks is provided, applied to a visualization system, the method comprising:

[0005] Receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information;

[0006] The process data of the target scheduled task is obtained from the log system based on the visualized meta configuration table and the target scheduled task information.

[0007] The target timed task is shown in the visualization record table and the process data.

[0008] In one embodiment, the visual record table for receiving the scheduled task message sent by the task system and determining the target scheduled task based on the scheduled task information includes:

[0009] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0010] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0011] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0012] If not, then generate the visualization record table based on the scheduled task information.

[0013] In one embodiment, the process data for obtaining the target scheduled task based on the visualized meta-configuration table and the scheduled task information includes:

[0014] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0015] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0016] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0017] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0018] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0019] In one embodiment, obtaining the first process data from the log system based on the visual meta-configuration table and the scheduled task message includes:

[0020] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0021] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0022] In one embodiment, a method for visualizing scheduled tasks, applied to a task system, includes:

[0023] When the start time of the target scheduled task is reached, determine whether there is a preceding task for the target scheduled task;

[0024] If not, then the target scheduled task will be executed to allow the logging system to record process data;

[0025] The target scheduled task status is determined to be the first scheduled task status in execution, and a target scheduled task message containing the first scheduled task status is sent to the visualization system at regular intervals according to the task execution time threshold.

[0026] If so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0027] In one embodiment, determining whether the pre-task has been completed and sending the target scheduled task message to the visualization system includes:

[0028] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0029] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0030] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0031] In one embodiment, sending the target scheduled task message to the visualization system includes:

[0032] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0033] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0034] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0035] On the other hand, a timed task visualization device is provided for use in a visualization system, the device comprising:

[0036] The record determination module is used to receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information.

[0037] The acquisition module is used to acquire the process data of the target timed task based on the visual meta configuration table and the target timed task information;

[0038] The display module is used to display the target timed task based on the visualization record table and the process data.

[0039] In one embodiment, the record determination module receives a scheduled task message sent by the task system and determines a visual record table of the target scheduled task based on the scheduled task information, including:

[0040] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0041] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0042] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0043] If not, then generate the visualization record table based on the scheduled task information.

[0044] In one embodiment, the acquisition module acquires the process data of the target timed task based on the visual meta-configuration table and the timed task information, including:

[0045] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0046] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0047] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0048] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0049] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0050] In one embodiment, the acquisition module acquires the first process data from the log system based on the visual meta-configuration table and the scheduled task message, including:

[0051] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0052] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0053] In one embodiment, a timed task visualization device is provided, applied to a task system, the device comprising:

[0054] The task determination module is used to determine whether there is a preceding task for the target timed task when the start time of the target timed task is reached.

[0055] An execution module is used to, if not, begin executing the target timed task for the logging system to record process data;

[0056] The sending module is used to determine that the target timed task status is the first timed task status in execution and to send a target timed task message containing the first timed task status to the visualization system at regular intervals according to the task execution time threshold.

[0057] The sending module is further configured to, if so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0058] In one embodiment, the sending module determines whether the pre-task has been completed and sends the target timed task message to the visualization system, including:

[0059] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0060] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0061] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0062] In one embodiment, after the sending module sends the target timed task message to the visualization system, it includes:

[0063] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0064] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0065] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0066] In another aspect, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0067] Receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information;

[0068] The process data of the target scheduled task is obtained from the log system based on the visualized meta configuration table and the target scheduled task information.

[0069] The target timed task is shown in the visualization record table and the process data.

[0070] In one embodiment, the processor performs the following steps when executing the computer program:

[0071] The visual record table for receiving the scheduled task message sent by the task system and determining the target scheduled task based on the scheduled task information includes:

[0072] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0073] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0074] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0075] If not, then generate the visualization record table based on the scheduled task information.

[0076] In one embodiment, the processor performs the following steps when executing the computer program:

[0077] The process data for obtaining the target scheduled task based on the visualized meta-configuration table and the scheduled task information includes:

[0078] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0079] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0080] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0081] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0082] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0083] In one embodiment, the processor performs the following steps when executing the computer program:

[0084] The step of obtaining the first process data from the log system based on the visual meta-configuration table and the scheduled task message includes:

[0085] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0086] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0087] In one embodiment, the processor performs the following steps when executing the computer program:

[0088] A method for visualizing scheduled tasks, applied to a task system, the method comprising:

[0089] When the start time of the target scheduled task is reached, determine whether there is a preceding task for the target scheduled task;

[0090] If not, then the target scheduled task will be executed to allow the logging system to record process data;

[0091] The target scheduled task status is determined to be the first scheduled task status in execution, and a target scheduled task message containing the first scheduled task status is sent to the visualization system at regular intervals according to the task execution time threshold.

[0092] If so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0093] In one embodiment, the processor performs the following steps when executing the computer program:

[0094] The step of determining whether the pre-task has been completed and sending the target scheduled task message to the visualization system includes:

[0095] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0096] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0097] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0098] In one embodiment, the processor performs the following steps when executing the computer program:

[0099] After sending the target scheduled task message to the visualization system, the following steps are included:

[0100] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0101] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0102] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0103] In another aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0104] Receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information;

[0105] The process data of the target scheduled task is obtained from the log system based on the visualized meta configuration table and the target scheduled task information.

[0106] The target timed task is shown in the visualization record table and the process data.

[0107] In one embodiment, the computer program performs the following steps when executed by a processor:

[0108] The visual record table for receiving the scheduled task message sent by the task system and determining the target scheduled task based on the scheduled task information includes:

[0109] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0110] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0111] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0112] If not, then generate the visualization record table based on the scheduled task information.

[0113] In one embodiment, the computer program performs the following steps when executed by a processor:

[0114] The process data for obtaining the target scheduled task based on the visualized meta-configuration table and the scheduled task information includes:

[0115] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0116] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0117] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0118] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0119] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0120] In one embodiment, the computer program performs the following steps when executed by a processor:

[0121] The step of obtaining the first process data from the log system based on the visual meta-configuration table and the scheduled task message includes:

[0122] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0123] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0124] In one embodiment, the computer program performs the following steps when executed by a processor:

[0125] A method for visualizing scheduled tasks, applied to a task system, the method comprising:

[0126] When the start time of the target scheduled task is reached, determine whether there is a preceding task for the target scheduled task;

[0127] If not, then the target scheduled task will be executed to allow the logging system to record process data;

[0128] The target scheduled task status is determined to be the first scheduled task status in execution, and a target scheduled task message containing the first scheduled task status is sent to the visualization system at regular intervals according to the task execution time threshold.

[0129] If so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0130] In one embodiment, the computer program performs the following steps when executed by a processor:

[0131] The step of determining whether the pre-task has been completed and sending the target scheduled task message to the visualization system includes:

[0132] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0133] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0134] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0135] In one embodiment, the computer program performs the following steps when executed by a processor:

[0136] After sending the target scheduled task message to the visualization system, the following steps are included:

[0137] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0138] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0139] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0140] The system receives a target scheduled task message from the task system and determines a visualization record table for the target scheduled task based on the target scheduled task information; it retrieves the process data of the target scheduled task from the log system based on the visualization meta-configuration table and the target scheduled task information; and it displays the target scheduled task based on the visualization record table and the process data. The visualization record table is determined by processing the received scheduled task message, and the process data corresponding to the scheduled task is retrieved. Multiple scheduled task statuses and other specific data are displayed based on the visualization record table and the process data. Attached Figure Description

[0141] Figure 1 A flowchart illustrating a method for visualizing timed tasks applied to a visualization system;

[0142] Figure 2 A schematic diagram illustrating the steps of a timed task visualization method applied to a visualization system;

[0143] Figure 3 A flowchart illustrating a method for visualizing timed tasks applied to a task system;

[0144] Figure 4 Example grayscale image for a scheduled task;

[0145] Figure 5 A schematic diagram of a timed task visualization device used in a visualization system;

[0146] Figure 6 This is an internal structural diagram of a computer device in an embodiment of the present invention. Detailed Implementation

[0147] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0148] The scheduled task visualization method provided in this application can be applied to, for example... Figure 1The flowchart shown illustrates a scheduled task visualization method applied to a visualization system. It describes how the visualization record table is determined by the scheduled task status in the received scheduled task message, and the corresponding process data is obtained. Based on the visualization record table and the process data, multiple scheduled task statuses and other specific data are displayed.

[0149] In one embodiment, such as Figure 2 As shown, this invention provides a method for visualizing scheduled tasks, applied to a visualization system. The method includes:

[0150] S201. Receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information;

[0151] S202. Obtain the process data of the target scheduled task from the log system based on the visualized meta-configuration table and the target scheduled task information;

[0152] S203. The target timed task is displayed according to the visualization record table and the process data.

[0153] Specifically, the system processes the received scheduled task messages to determine the visualization record table and obtains the process data corresponding to the scheduled tasks. Based on the visualization record table and the process data, it displays the status of multiple scheduled tasks and other specific data.

[0154] In one embodiment, the visual record table for receiving the scheduled task message sent by the task system and determining the target scheduled task based on the scheduled task information includes:

[0155] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0156] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0157] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0158] If not, then generate the visualization record table based on the scheduled task information.

[0159] Specifically, upon receiving a scheduled task message containing the first scheduled task status (in execution), it is determined whether this is the first time the scheduled task has been received. If so, it means there is no corresponding visualization record table for this scheduled task, and a visualization record table needs to be generated based on the scheduled task information. This information includes not only the scheduled task status but also the task code, task name, task output, task start time, task end time, and task creation time. The corresponding visualization record table is generated based on this task-related information. When a scheduled task message containing the second scheduled task status is received, it is determined whether a visualization record table for the current scheduled task exists. If not, a visualization record table is generated based on the scheduled task message in the same way. If a scheduled task message containing the third or fourth scheduled task status is received, since a visualization record table for the current scheduled task has already been generated from the received scheduled task message containing the first scheduled task status, no repeat operation is needed.

[0160] In one embodiment, the process data for obtaining the target scheduled task based on the visualized meta-configuration table and the scheduled task information includes:

[0161] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0162] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0163] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0164] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0165] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0166] Specifically, when a scheduled task message containing a second scheduled task status is received, since the preceding task is still executing and the scheduled task is waiting to be executed, the second process data at this time will definitely contain the message "Scheduled task check failed." If it also contains second process data generated during the execution of the preceding task, there is no need to query the log system based on the visual meta-configuration table. Specifically, the second process data (including the number of times the preceding task was executed, the time, and related task data) recorded in the log system is queried based on the visual meta-configuration table and the preceding task information contained in the scheduled task information, such as the task code, task name, task output, task start time, task end time, and task creation time. When a scheduled task message containing a third or fourth scheduled task status is received, the scheduled task is deleted from the current execution queue, and the process data at this time is the scheduled task name + execution success / execution failure. For example, the data "cash withdrawal loan form transfer task executed successfully" is the last process data generated by executing this scheduled task, and there is no need to query the log system. Additionally, when the scheduled task message contains alarm information, there is also no need to query the log system. The alarm information "Preceding task (cash withdrawal business penalty interest reduction task) error" and the visual record table display the preceding task error are used.

[0167] In one embodiment, obtaining the first process data from the log system based on the visual meta-configuration table and the scheduled task message includes:

[0168] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0169] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0170] Specifically, when a scheduled task message containing the status of the first scheduled task is received, and there is no related process data in the scheduled task message, assuming the task start time is 13:00:00, the current execution time of the task is known from the current execution queue to be 13:30:00. Then, based on the specific task name (cash withdrawal business penalty interest reduction task) and task code (20) contained in the scheduled task message, and the template "CREATE TABLE `vipshop_credit_job_task_record` in the visualization meta configuration table,

[0171] `id`bigint(20)unsignedNOT NULL AUTO_INCREMENT COMMENT'id',

[0172] `job_code`varchar(100)NOT NULL DEFAULT”COMMENT'Task Code',

[0173] `job_name`varchar(100)NOT NULL DEFAULT”COMMENT'Task Name',

[0174] )ENGINE=InnoDB AUTO_INCREMENT=26693DEFAULT CHARSET=utf8

[0175] COMMENT="Metadata Configuration" queries the log system for the first process data recorded during the time period from 13:00:00 to 13:30:00 (including the number of times the scheduled task was executed, the specific time, and related task data).

[0176] In one embodiment, a method for visualizing scheduled tasks, applied to a task system, includes:

[0177] When the start time of the target scheduled task is reached, determine whether there is a preceding task for the target scheduled task;

[0178] If not, then the target scheduled task will be executed to allow the logging system to record process data;

[0179] The target scheduled task status is determined to be the first scheduled task status in execution, and a target scheduled task message containing the first scheduled task status is sent to the visualization system at regular intervals according to the task execution time threshold.

[0180] If so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0181] Specifically, such as Figure 3 As shown, when a scheduled task reaches its start time, it first determines whether there are any preceding tasks, such as... Figure 4 As shown, the next task (scheduled task) can only be successfully executed if the previous task (preceding task) is completed. For example, when the scheduled task (cash withdrawal receipt form transfer task) reaches its scheduled task trigger time, since there is no preceding task, the current scheduled task will start executing directly and periodically send the target scheduled task information containing the status (in execution) of the first scheduled task to the visualization system. When the scheduled task is executed, the log system will store the scheduled task in the working set and record the process data generated during the execution process. For another example, when the cash withdrawal installment and consolidation task reaches its scheduled task trigger time, it is determined that it has a preceding task (cash withdrawal receipt form transfer task). At this time, it is necessary to determine whether the preceding task has been completed.

[0182] In one embodiment, determining whether the pre-task has been completed and sending the target scheduled task message to the visualization system includes:

[0183] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0184] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0185] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0186] Specifically, as mentioned above, when the preceding task (cash withdrawal loan form transfer task) has been completed, the scheduled task (cash withdrawal installment and consolidation task) is executed normally. When the preceding task is still being executed, a scheduled task message containing the status of the second scheduled task (check failure) is sent to the visualization system. After waiting for the task execution time threshold (such as one minute set by the user), the system continues to check whether the preceding task has been completed and sends the corresponding scheduled task message to the visualization system. If the preceding task is not completed within the average task completion time limit (such as one hour), the cash withdrawal installment and consolidation task is not executed and a scheduled task message containing alarm information is sent to the visualization system to remind the user to check for abnormal issues.

[0187] In one embodiment, sending the target scheduled task message to the visualization system includes:

[0188] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0189] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0190] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0191] Specifically, as described above, after the task system successfully executes the scheduled task (cash withdrawal installment consolidation task), and confirms that the execution result is error-free, a scheduled task message containing the third scheduled task status (success) is sent to the visualization system. Then, when the trigger time for the next scheduled task (daily channel bill penalty interest synchronization task) arrives, the daily channel bill penalty interest synchronization task begins execution. If the scheduled task execution fails within the average task completion time limit, the scheduled task continues execution, and a scheduled task message containing the first scheduled task status is sent to the visualization system. If the scheduled task is still not completed after the average task completion time limit, the scheduled task execution ends, and if an error is confirmed, a scheduled task message containing the fourth scheduled task status (failure) is sent to the visualization system, and the execution of the daily channel bill penalty interest synchronization task and other scheduled tasks in the task list is stopped. This does not affect the execution of other scheduled tasks in the task list.

[0192] The proposed solution has the following beneficial effects:

[0193] 1) By using message events and asynchronous monitoring of execution progress, a large number of scheduled tasks can be visualized, reducing the workload of users;

[0194] 2) Supports multiple ways to obtain the status of scheduled tasks, such as actively scanning logs and receiving message parameters, and provides alerts for timed-out tasks by analyzing the average execution time of past tasks;

[0195] 3) Supports viewing task execution progress on multiple terminals including Web and App.

[0196] It should be understood that, although Figure 2 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0197] In one embodiment, such as Figure 5 As shown, a timed task visualization device is provided, applied to a visualization system, the device comprising:

[0198] The record determination module 501 is used to receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information.

[0199] The acquisition module 502 is used to acquire the process data of the target timed task based on the visual meta configuration table and the target timed task information;

[0200] Display module 503 is used to display the target timed task based on the visualization record table and the process data.

[0201] In one embodiment, the record determination module receives a scheduled task message sent by the task system and determines a visual record table of the target scheduled task based on the scheduled task information, including:

[0202] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0203] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0204] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0205] If not, then generate the visualization record table based on the scheduled task information.

[0206] In one embodiment, the acquisition module acquires the process data of the target timed task based on the visual meta-configuration table and the timed task information, including:

[0207] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0208] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0209] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0210] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0211] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0212] In one embodiment, the acquisition module acquires the first process data from the log system based on the visual meta-configuration table and the scheduled task message, including:

[0213] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0214] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0215] In one embodiment, a timed task visualization device is provided, applied to a task system, the device comprising:

[0216] The task determination module 504 is used to determine whether there is a preceding task for the target timed task when the start execution time of the target timed task is reached.

[0217] Execution module 505 is used to, if not, start executing the target timed task for the logging system to record process data;

[0218] Sending module 506 is used to determine that the target timed task status is the first timed task status in execution and to send a target timed task message containing the first timed task status to the visualization system at regular intervals according to the task execution time threshold.

[0219] The sending module 506 is further configured to, if so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0220] In one embodiment, the sending module determines whether the pre-task has been completed and sends the target timed task message to the visualization system, including:

[0221] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0222] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0223] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0224] In one embodiment, after the sending module sends the target timed task message to the visualization system, it includes:

[0225] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0226] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0227] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0228] Specific limitations regarding the scheduled task visualization device can be found in the limitations of the scheduled task visualization method described above, and will not be repeated here. Each module in the aforementioned scheduled task visualization device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0229] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements an alarm information processing method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0230] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0231] In one embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0232] Receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information;

[0233] The process data of the target scheduled task is obtained from the log system based on the visualized meta configuration table and the target scheduled task information.

[0234] The target timed task is shown in the visualization record table and the process data.

[0235] In one embodiment, the processor performs the following steps when executing the computer program:

[0236] The visual record table for receiving the scheduled task message sent by the task system and determining the target scheduled task based on the scheduled task information includes:

[0237] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0238] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0239] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0240] If not, then generate the visualization record table based on the scheduled task information.

[0241] In one embodiment, the processor performs the following steps when executing the computer program:

[0242] The process data for obtaining the target scheduled task based on the visualized meta-configuration table and the scheduled task information includes:

[0243] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0244] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0245] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0246] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0247] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0248] In one embodiment, the processor performs the following steps when executing the computer program:

[0249] The step of obtaining the first process data from the log system based on the visual meta-configuration table and the scheduled task message includes:

[0250] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0251] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0252] In one embodiment, the processor performs the following steps when executing the computer program:

[0253] A method for visualizing scheduled tasks, applied to a task system, the method comprising:

[0254] When the start time of the target scheduled task is reached, determine whether there is a preceding task for the target scheduled task;

[0255] If not, then the target scheduled task will be executed to allow the logging system to record process data;

[0256] The target scheduled task status is determined to be the first scheduled task status in execution, and a target scheduled task message containing the first scheduled task status is sent to the visualization system at regular intervals according to the task execution time threshold.

[0257] If so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0258] In one embodiment, the processor performs the following steps when executing the computer program:

[0259] The step of determining whether the pre-task has been completed and sending the target scheduled task message to the visualization system includes:

[0260] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0261] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0262] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0263] In one embodiment, the processor performs the following steps when executing the computer program:

[0264] After sending the target scheduled task message to the visualization system, the following steps are included:

[0265] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0266] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0267] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0268] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0269] Receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information;

[0270] The process data of the target scheduled task is obtained from the log system based on the visualized meta configuration table and the target scheduled task information.

[0271] The target timed task is shown in the visualization record table and the process data.

[0272] In one embodiment, the computer program performs the following steps when executed by a processor:

[0273] The visual record table for receiving the scheduled task message sent by the task system and determining the target scheduled task based on the scheduled task information includes:

[0274] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time.

[0275] If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue;

[0276] When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists;

[0277] If not, then generate the visualization record table based on the scheduled task information.

[0278] In one embodiment, the computer program performs the following steps when executed by a processor:

[0279] The process data for obtaining the target scheduled task based on the visualized meta-configuration table and the scheduled task information includes:

[0280] When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data.

[0281] If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message;

[0282] When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data;

[0283] If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message;

[0284] When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information.

[0285] In one embodiment, the computer program performs the following steps when executed by a processor:

[0286] The step of obtaining the first process data from the log system based on the visual meta-configuration table and the scheduled task message includes:

[0287] The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message;

[0288] The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

[0289] In one embodiment, the computer program performs the following steps when executed by a processor:

[0290] A method for visualizing scheduled tasks, applied to a task system, the method comprising:

[0291] When the start time of the target scheduled task is reached, determine whether there is a preceding task for the target scheduled task;

[0292] If not, then the target scheduled task will be executed to allow the logging system to record process data;

[0293] The target scheduled task status is determined to be the first scheduled task status in execution, and a target scheduled task message containing the first scheduled task status is sent to the visualization system at regular intervals according to the task execution time threshold.

[0294] If so, determine whether the pre-task has been completed and send the target timed task message to the visualization system.

[0295] In one embodiment, the computer program performs the following steps when executed by a processor:

[0296] The step of determining whether the pre-task has been completed and sending the target scheduled task message to the visualization system includes:

[0297] If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again.

[0298] If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system.

[0299] When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

[0300] In one embodiment, the computer program performs the following steps when executed by a processor:

[0301] After sending the target scheduled task message to the visualization system, the following steps are included:

[0302] After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal;

[0303] If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system.

[0304] If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

[0305] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0306] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are 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.

[0307] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for visualizing scheduled tasks, characterized in that, Applied to task systems and visualization systems; The method performs the following operations in the task system: When the start time of the target scheduled task is reached, determine whether there is a preceding task for the target scheduled task; If not, then the target scheduled task will be executed to allow the logging system to record process data; The target scheduled task status is determined to be the first scheduled task status in execution, and a target scheduled task message containing the first scheduled task status is sent to the visualization system at regular intervals according to the task execution time threshold. If so, determine whether the pre-task has been completed and send the target timed task message to the visualization system; The method performs the following operations in the visualization system: Receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information; The process data of the target scheduled task is obtained from the log system based on the visualized meta configuration table and the target scheduled task information. The target timed task is displayed based on the visual record table and the process data. The visualization record table for receiving the scheduled task message sent by the task system and determining the target scheduled task based on the scheduled task information includes: When the timed task status in the timed task message is the first timed task status, determine whether the timed task information is received for the first time. If so, then generate the visualization record table based on the scheduled task information and store the target scheduled task in the current execution queue; When the scheduled task status is the second scheduled task status, determine whether the visualization record table exists; If not, then generate the visualization record table based on the scheduled task information; The process data for obtaining the target scheduled task based on the visualized meta-configuration table and the scheduled task information includes: When the timed task status in the timed task message is the first timed task status, determine whether the timed task information contains first process data. If not, the first process data is obtained from the log system based on the visual meta configuration table and the scheduled task message; When the scheduled task status is the second scheduled task status, determine whether the scheduled task information contains second process data; If not, the second process data is obtained from the log system based on the visual meta-configuration table and the scheduled task message; When the scheduled task status is the third or fourth scheduled task status, the target scheduled task is deleted from the current execution queue and the third process data is obtained according to the scheduled task information. The step of obtaining the first process data from the log system based on the visual meta-configuration table and the scheduled task message includes: The metadata configuration of the target scheduled task is determined based on the visualized meta-configuration table and the scheduled task message; The first process data is periodically retrieved from the log system based on the current task execution time recorded in the current execution queue and the metadata configuration.

2. The method according to claim 1, characterized in that, The step of determining whether the pre-task has been completed and sending the target scheduled task message to the visualization system includes: If the prerequisite task is not completed, wait for the task execution time threshold and then determine whether the prerequisite task is completed again. If not, the target scheduled task status is determined to be the second scheduled task status of failure and a target scheduled task message containing the second scheduled task status is sent to the visualization system. When it is determined that the time taken to complete the preceding task exceeds the average task completion time limit, an alarm message is sent to the visualization system.

3. The method according to claim 1, characterized in that, After sending the target scheduled task message to the visualization system, the following steps are included: After the target scheduled task is completed, determine whether the execution result of the target scheduled task is abnormal; If not, the target scheduled task status is determined to be a successful third scheduled task status, and a target scheduled task message containing the third scheduled task status is sent to the visualization system. If so, the target scheduled task status is determined to be a failed fourth scheduled task status, and a target scheduled task message containing the fourth scheduled task status is sent to the visualization system.

4. A timed task visualization device, applied to a visualization system, for implementing the method as described in any one of claims 1 to 3, the device comprising: The record determination module is used to receive the target timed task message sent by the task system and determine the visual record table of the target timed task based on the target timed task information. The acquisition module is used to acquire the process data of the target timed task based on the visual meta configuration table and the target timed task information; The display module is used to display the target timed task based on the visualization record table and the process data.

5. An electronic device, characterized in that, include: One or more processors; And a memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the method as described in any one of claims 1 to 3.

6. A computer storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements the method as described in any one of claims 1 to 3.