Method for automatically triggering task scheduling based on conditional factors

By introducing conditional factors to automatically trigger the task scheduling method, the shortcomings of traditional task scheduling methods in flexibility and responsiveness are solved, efficient adaptation and automation of task management are achieved, and the overall operating efficiency and stability of the system are improved.

CN120803660APending Publication Date: 2025-10-17BEIYIN FINANCIAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510951877.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

Traditional task scheduling methods lack flexibility and responsiveness and cannot adapt to dynamically changing environments and demands, resulting in inefficient task execution or missing the optimal execution time, especially affecting system operation efficiency and stability in high-load or complex environments.

Method used

The concept of conditional factors is introduced, key conditional factors are defined, the status of conditional factors is detected by monitoring the scheduling center, and a feedback mechanism is built to update information to achieve automatic triggering and management of tasks.

Benefits of technology

It improves the flexibility and response speed of task scheduling, reduces manual intervention, improves the system's automation level and operational efficiency, and ensures that key tasks are executed at the best time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803660A_ABST
    Figure CN120803660A_ABST
Patent Text Reader

Abstract

The invention discloses a method for automatically triggering task scheduling based on conditional factors. The task scheduling method comprises the following steps: defining key conditional factors for triggering tasks; establishing the state of a monitoring dispatching center detection condition factor; and constructing a feedback mechanism to update conditional factor information in the monitoring system. Dependence on manual intervention is reduced, the automation level of the system is improved, task management is more efficient and adaptive, and improvement of overall operation efficiency and stability is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of task scheduling, and in particular to a method for automatically triggering task scheduling based on conditional factors. BACKGROUND

[0002] In modern computing and automation systems, task scheduling is a key link to ensure efficient operation of the system. Traditional task scheduling methods mainly rely on time or event-driven mechanisms, that is, tasks are triggered to execute at a predetermined time point or when a specific event occurs. With the development of technology and the diversification of application needs, this time and event-based scheduling method gradually exposes its limitations. For example, in some application scenarios, the execution of tasks needs to be determined based on complex business logic or real-time data changes, rather than just time or simple event triggers.

[0003] Although the existing timing task scheduler can meet the needs of regular task scheduling to some extent, it often appears to be inadequate when faced with scenarios that require immediate response or conditional judgment.

[0004] Disadvantages of the prior art:

[0005] Disadvantages of the timing task strategy

[0006] The main disadvantage is the lack of flexibility and responsiveness. Fixed settings cannot adapt to dynamically changing environments or needs. In practical applications, the priority of tasks, required resources, execution conditions, and other factors may change at any time, and fixed settings cannot be adjusted in time to adapt to these changes, which may result in low efficiency of task execution or missed optimal execution opportunities.

[0007] When the time comes but other factor parameters are not ready, the task will be postponed, which may cause task backlog and delay. Especially in high-load or complex environments, this postponement may trigger a chain reaction, affecting the efficiency and stability of the entire system. In addition, for urgent or high-priority tasks, the strategy may not provide enough flexibility to ensure that they can be processed in time. SUMMARY

[0008] In view of the above problems, the present application is proposed to provide a method for automatically triggering task scheduling based on conditional factors to overcome the above problems or at least partially solve the above problems.

[0009] According to one aspect of the present application, a method for automatically triggering task scheduling based on conditional factors is provided, the method comprising:

[0010] Defining key conditional factors for triggering tasks;

[0011] Establishing a monitoring and scheduling center to detect the status of the conditional factors;

[0012] A feedback mechanism is constructed to update the condition factor information in the monitoring system.

[0013] Optionally, the key condition factor triggering the task specifically includes:

[0014] a specific data value in a database, a response status of an external API, and existence of a file in a file system;

[0015] After the information related to the condition factor is defined, the information is recorded in a standard condition factor table in a unified and normalized manner.

[0016] Optionally, the establishment of the monitoring scheduling center to detect the state of the condition factor specifically includes:

[0017] The monitoring scheduling center detects the state of the condition factor through polling or event listening.

[0018] When it is detected that one or more condition factors meet the preset criteria, the corresponding task is triggered immediately.

[0019] Optionally, the construction of the feedback mechanism to update the condition factor information in the monitoring system specifically includes: the feedback mechanism updates the condition factor information in the monitoring system and performs the next round of task scheduling.

[0020] Optionally, the definition of the key condition factor triggering the task further includes:

[0021] The condition factor includes a specific data value in a database, a response status of an external API, and existence of a file in a file system.

[0022] The information related to the condition factor is defined and recorded in detail.

[0023] The condition factor of the key factor triggering the task is determined.

[0024] If a task depends on data update of a table in a database, a specific data value in the table is a key condition factor.

[0025] If a task needs to call an external API and depends on a returned status code to determine whether to continue execution, the response status of the API is also a key condition factor.

[0026] Existence of a file in a file system also becomes a necessary condition for task execution.

[0027] The information related to the condition factor is recorded in a standard condition factor table in a unified and normalized manner.

[0028] The table will contain all the task-related condition factors and full-process state information.

[0029] Optionally, the establishment of the monitoring and scheduling center to detect the state of the condition factor further comprises:

[0030] The monitoring and scheduling center adopts an automatic triggering method of task scheduling based on condition factors;

[0031] The center uses various technical means to continuously detect the state of the condition factor;

[0032] By regularly querying the value of the condition factor to determine whether it meets the preset standard;

[0033] Event listening captures the change events of the condition factor in real time;

[0034] Different business scenarios involve different condition factors and triggering rules, and the monitoring system supports configuration options, and users can customize monitoring strategies according to actual needs.

[0035] Optionally, the monitoring and scheduling center uses redundancy deployment, data backup, and failover technical means to ensure stable operation of the system and integrity of the data.

[0036] Optionally, the feedback mechanism is built to update the condition factor information in the monitoring system, which specifically comprises:

[0037] When the task is executed, record the task execution information;

[0038] By storing the task execution information, important reference basis is provided for subsequent task scheduling;

[0039] The condition factor is updated or reinitialized based on the task execution result information;

[0040] If the task is successfully executed and the expected result is produced, the condition factor is updated to reflect this change; otherwise, if the task fails or the result does not meet the expected standard, the state or value of the condition factor is adjusted according to the specific circumstances to ensure that more reasonable decisions can be made in the next task scheduling.

[0041] Optionally, the task execution information includes the start time, end time, execution status, output data produced, and error or exception conditions.

[0042] The application provides a task scheduling method based on conditional factors, which comprises the following steps: defining key conditional factors of triggering tasks; establishing a monitoring scheduling center to detect the state of the conditional factors; and constructing a feedback mechanism to update the conditional factor information in the monitoring system.

[0043] The above description is only a summary of the technical scheme of the application, in order to more clearly understand the technical means of the application, and to be implemented according to the content of the specification, and in order to make the above and other purposes, characteristics and advantages of the application more obvious and easy to understand, the following specific embodiments of the application are described. BRIEF DESCRIPTION OF DRAWINGS

[0044] In order to more clearly illustrate the technical scheme of the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor.

[0045] Figure 1 The flow chart of the task scheduling method based on conditional factors provided by the embodiment of the application is shown in the figure.

[0046] Figure 2 The flow chart of the key conditional factors of triggering tasks provided by the embodiment of the application is shown in the figure.

[0047] Figure 3 The flow chart of the establishment of the monitoring scheduling center to detect the state of the conditional factors provided by the embodiment of the application is shown in the figure.

[0048] Figure 4 The flow chart of the construction of the feedback mechanism to update the conditional factor information in the monitoring system provided by the embodiment of the application is shown in the figure. DETAILED DESCRIPTION

[0049] The exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings. While the exemplary embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms without being limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure can be more thoroughly understood, and so that the scope of the present disclosure can be completely conveyed to those skilled in the art.

[0050] The terms "include" and "have" and any variations thereof in the specification and claims of the present application and the drawings are intended to cover the non-exclusive inclusion, for example, the inclusion of a series of steps or units.

[0051] The technical solutions of the present application will be described in further detail below in combination with the drawings and examples.

[0052] To solve the problems of the present application, a method of automatically triggering task scheduling based on conditional factors is proposed. The concept of "conditional factors" is introduced. These factors are those key variables or states that determine whether a task should be executed. When these conditional factors reach a predetermined state, the related task will be automatically triggered. This method not only improves the flexibility and response speed of task scheduling, but also reduces the need for human intervention, making the entire system more intelligent and adaptive.

[0053] Conditional factors are time, resource usage, system load, occurrence of specific events, etc. This method of automatically triggering task scheduling based on conditional factors provides a new way of thinking and technical means for task management in complex systems, which helps to improve the automation level and operating efficiency of the system.

[0054] As shown in Figure 1 The present application provides a method of automatically triggering task scheduling based on conditional factors, which includes:

[0055] Defining the key conditional factors that trigger the task;

[0056] Establishing a monitoring and scheduling center to detect the state of the conditional factors;

[0057] Building a feedback mechanism to update the conditional factor information in the monitoring system.

[0058] A method of automatically triggering task scheduling based on conditional factors includes:

[0059] Defining conditional factors: which factors are the key conditional factors that trigger the task, which may include specific data values in the database, response status of external API, existence of files in the file system, etc. After defining the information related to these conditional factors, standardized records are recorded in the standard conditional factor table, and the conditional factor table records the full flow state information of the conditional factors.

[0060] Scheduling center: design an efficient monitoring and scheduling center to continuously detect the state of these conditional factors, and achieve it through polling, event listening or other appropriate technical means. When the monitoring system detects that one or more conditional factors meet the predetermined standard, the corresponding task is immediately triggered.

[0061] Task feedback: feedback mechanism to update the conditional factor information in the monitoring system for the next round of task scheduling.

[0062] As shown in Figure 2 Defining conditional factors includes:

[0063] Conditional factors are various factors, including specific data values in the database, response status of external APIs, existence of files in the file system, etc. To ensure that tasks can be executed accurately, we need to define and record the information related to these conditional factors in detail.

[0064] First of all, we need to determine which conditional factors are the key factors that trigger the task. For example, if a task depends on the data update of a certain table in the database, then the specific data value in that table is a key conditional factor. If a task needs to call an external API and depends on the status code returned by the API to determine whether to continue execution, then the response status of the API is also a key conditional factor. In addition, the existence of certain files in the file system may also be a necessary condition for task execution.

[0065] We need to record the information related to these conditional factors in a standardized conditional factor table. This table will contain all the conditional factors related to the task and their full flow state information. In this way, we can clearly understand the role and changes of each conditional factor in the entire task flow, and better control the execution process of the task.

[0066] As shown in Figure 3 , the scheduling center includes:

[0067] Monitoring the scheduling center is the key to implementing the automatic task scheduling method based on conditional factors. The system needs to have high flexibility and reliability to ensure that it can accurately detect the state changes of conditional factors and respond in a timely manner.

[0068] The center should use a variety of technical means to continuously detect the state of the conditional factors. Polling is a common method, which periodically queries the value of the conditional factor to determine whether it meets the preset standard. Event listening is also an effective means, which can capture the change events of the conditional factors in real time, thereby triggering the task more timely. According to the specific application scenario and demand, other appropriate technical means such as message queue, database trigger, etc. can be combined to improve the efficiency and accuracy of the monitoring system.

[0069] The monitoring system has high configurability and extensibility. Different business scenarios may involve different conditional factors and trigger rules, so the monitoring system should support flexible configuration options so that users can customize the monitoring strategy according to actual needs.

[0070] The center should ensure high availability and fault tolerance. In actual application, various abnormal situations may occur, such as network failure, service downtime, etc., which may cause the monitoring system to fail or mis-trigger the task. Therefore, the center uses redundant deployment, data backup, failover, etc. technical means to ensure the stable operation of the system and the integrity of the data.

[0071] As Figure 4 shown, task feedback includes:

[0072] When the task is completed, the system will record the execution results and related information in detail. These information may include the start time, end time, execution status (success or failure), output data generated and any possible errors or exceptions. By storing these detailed task execution information, the system can not only provide important reference for subsequent task scheduling.

[0073] The execution result information of the task updates or reinitializes the condition factors. If the task is successfully executed and the expected result is generated, the related condition factors may be updated to reflect this change; otherwise, if the task fails or the result does not meet the expected standard, the system may need to adjust the state or value of the condition factors according to the specific situation to ensure that more reasonable decisions can be made in the next task scheduling.

[0074] The method of automatically triggering task scheduling based on condition factors proposed in the present application aims to solve the shortcomings of traditional timing task scheduling in flexibility and intelligence, and realizes more accurate and efficient task management by introducing a more fine-grained condition judgment mechanism. Not only helps to improve the automation level of the system, but also can bring better economic benefits and competitive advantage to the enterprise.

[0075] Advantages:

[0076] Flexibility: By introducing the concept of condition factors, task scheduling is no longer limited to fixed time points, but can dynamically trigger tasks according to real-time business needs and system status, thus more effectively utilizing resources, avoiding waste, and ensuring that critical tasks are processed at the best time.

[0077] Automation: Reduces dependence on manual intervention, improves the automation level of the system, making task management more efficient and adaptive, and helps to improve overall operational efficiency and stability.

[0078] The above specific embodiments further detail the purpose, technical solutions and advantages of the present application. It should be understood that the above is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application should be included within the scope of protection of the present application.

Claims

1. A method for automatically triggering task scheduling based on conditional factors, characterized in that: The task scheduling method includes: Define the key condition factors that trigger the task; Establish a monitoring and dispatching center to detect the status of condition factors; Build a feedback mechanism to update the condition factor information in the monitoring system.

2. The method for automatically triggering task scheduling based on conditional factors according to claim 1, characterized in that: The key condition factors for defining the triggering task specifically include: Specific data values ​​in the database, the response status of an external API, and the existence of a file in the file system; After the information related to the condition factors is defined, it is uniformly and standardizedly recorded in a standard condition factor table, which records the full-process status information of the condition factors.

3. The method for automatically triggering task scheduling based on conditional factors according to claim 1, characterized in that: The state of establishing the monitoring and dispatching center detection condition factor specifically includes: Establish a monitoring and dispatching center to detect the status of condition factors through polling and event monitoring; When it is detected that one or more condition factors meet the preset standards, the corresponding tasks are triggered immediately.

4. The method for automatically triggering task scheduling based on conditional factors according to claim 1, characterized in that: The constructing of the feedback mechanism to update the condition factor information in the monitoring system specifically includes: using the feedback mechanism to update the condition factor information in the monitoring system to perform the next round of task scheduling.

5. The method for automatically triggering task scheduling based on conditional factors according to claim 1, characterized in that: The key condition factors for defining the triggering task also include: Conditional factors include specific data values ​​in the database, the response status of an external API, and the existence of a file in the file system; Define and record information related to condition factors in detail; Identify the key factors that trigger the task; If a task depends on the data update of a table in the database, then the specific data value in the table is a key condition factor; If a task needs to call an external API and relies on the status code returned to determine whether to continue execution, the API response status is also a key condition factor; The existence of certain files in the file system also becomes a necessary condition for task execution; Record the information related to the condition factors in a standardized and uniform manner into a standard condition factor table; The table will contain all task-related condition factors and full process status information.

6. The method for automatically triggering task scheduling based on conditional factors according to claim 1, characterized in that: The state of establishing the monitoring and dispatching center detection condition factor also includes: The monitoring and dispatching center adopts an automatic triggering task scheduling method based on conditional factors; The center uses a variety of technical means to continuously monitor the status of condition factors; By periodically querying the value of the condition factor to determine whether it meets the preset standards; Event monitoring captures the change events of condition factors in real time; Different business scenarios involve different conditional factors and triggering rules. The monitoring system supports configuration options, and users can customize monitoring strategies according to actual needs.

7. The method for automatically triggering task scheduling based on conditional factors according to claim 1, characterized in that: The monitoring and dispatching center uses redundant deployment, data backup, and failover technologies to ensure the stable operation of the system and the integrity of the data.

8. The method for automatically triggering task scheduling based on conditional factors according to claim 1, characterized in that: The constructing of a feedback mechanism to update the condition factor information in the monitoring system specifically includes: When the task is completed, record the task execution information; By storing task execution information, it provides important reference for subsequent task scheduling; Update or reinitialize the condition factor based on the task execution result information; If the task is successfully executed and produces the expected results, the condition factor is updated to reflect this change; conversely, if the task fails or the result does not meet the expected standards, the state or value of the condition factor is adjusted according to the specific situation to ensure that a more reasonable decision can be made when scheduling the task next time.

9. The method for automatically triggering task scheduling based on conditional factors according to claim 8, characterized in that: The task execution information includes: the start time, end time, execution status, generated output data, and error or abnormal conditions of the task.