Automatic task scheduling method and device, electronic equipment and storage medium

By adjusting the execution order based on task constraints, utilizing task cache pools and sandbox management, and monitoring task execution in real time, the problem of low efficiency in mobile automated task scheduling is solved, achieving efficient and flexible task execution and system stability.

CN121334296APending Publication Date: 2026-01-13NANJING LINGXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410920717.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2026-01-13

AI Technical Summary

Technical Problem

In different business scenarios, how to efficiently schedule and execute mobile automated tasks, especially how to reasonably allocate resources to improve task execution efficiency under multiple triggering conditions.

Method used

By acquiring the task constraints of each task, including priority, execution time, and execution conditions, the execution order of tasks can be adjusted. Task management is carried out using a task cache pool and execution sandbox, and the task execution status is monitored in real time to ensure that tasks are completed as expected.

Benefits of technology

It enables efficient, flexible and scalable execution of tasks, adapting to task requirements of different scales and complexities, and improving overall execution efficiency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121334296A_ABST
    Figure CN121334296A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic task scheduling method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring each task; wherein the task is used for representing a terminal equipment automation task configured according to a task attribute; determining task constraint conditions corresponding to the tasks, and adjusting the execution sequence of the tasks according to the task constraint conditions to obtain a target execution result; wherein the task constraint conditions comprise a first constraint condition, a second constraint condition and a third constraint condition; the first constraint condition is used for limiting the priority of the task; the second constraint condition is used for limiting the execution time of the task; the third constraint condition is used for limiting the execution condition of the task; and executing each task according to the target execution result. According to the technical scheme, the execution sequence of all the tasks is adjusted by setting the task constraint conditions, proper execution time and resources can be automatically allocated, and the execution efficiency of the tasks is improved to the maximum extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of task scheduling technology, and in particular to an automated task scheduling method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the continuous development of technology, the necessity of mobile automated tasks in modern offices is becoming increasingly prominent. Mobile automated tasks can help automate repetitive and tedious work tasks. This allows us to devote our time and energy to more valuable work. Using mobile automated tasks can greatly improve work efficiency, reduce labor costs, and enhance work quality.

[0003] Common techniques for automating Android phones typically include using the uiautomator automated testing framework or accessibility services. Regardless of the method, both require manipulating the UI (User Interface) controls displayed on the phone screen to perform automated tasks.

[0004] However, the timing of mobile automation tasks varies across different business scenarios, while there is only one mobile phone screen to be operated. How to efficiently schedule and execute mobile automation tasks is a problem that needs to be solved. Summary of the Invention

[0005] This invention provides an automated task scheduling method, apparatus, electronic device, and storage medium, which can efficiently schedule and execute automated tasks.

[0006] According to one aspect of the present invention, an automated task scheduling method is provided, the method comprising:

[0007] Obtain each task; wherein the task is used to characterize the terminal device automation task configured according to the task attributes;

[0008] The task constraints corresponding to each task are determined, and the execution order of each task is adjusted according to the task constraints to obtain the target execution result; wherein, the task constraints include a first constraint, a second constraint, and a third constraint; the first constraint is used to limit the priority of the task; the second constraint is used to limit the execution time of the task; and the third constraint is used to limit the execution conditions of the task.

[0009] Based on the target execution result, execute each of the tasks.

[0010] According to another aspect of the present invention, an automated task scheduling apparatus is provided, the apparatus comprising:

[0011] The task acquisition module is used to acquire various tasks; wherein, the task is used to represent the terminal device automation task configured according to the task attributes;

[0012] The target execution result acquisition module is used to determine the task constraints corresponding to each task, and adjust the execution order of each task according to the task constraints to obtain the target execution result; wherein, the task constraints include a first constraint, a second constraint, and a third constraint; the first constraint is used to limit the priority of the task; the second constraint is used to limit the execution time of the task; and the third constraint is used to limit the execution conditions of the task.

[0013] The task execution module is used to execute each task based on the target execution result.

[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0015] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform an automated task scheduling method according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute an automated task scheduling method as described in any embodiment of the present invention.

[0017] The technical solution of this invention obtains various tasks, determines the task constraints corresponding to each task, adjusts the execution order of each task according to the task constraints, obtains the target execution result, and executes each task based on the target execution result. This technical solution, by setting task constraints to adjust the execution order of each task, can automatically allocate appropriate execution time and resources, maximizing task execution efficiency.

[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart of an automated task scheduling method provided in Embodiment 1 of the present invention;

[0021] Figure 2 This is a timing diagram of the automated task execution provided in Embodiment 1 of this application;

[0022] Figure 3 This is a schematic diagram of an automated task scheduling process provided in Embodiment 2 of the present invention;

[0023] Figure 4 This is a schematic diagram of the automated task scheduling system provided in Embodiment 2 of this application;

[0024] Figure 5 This is a schematic diagram of the structure of an automated task scheduling device provided in Embodiment 3 of the present invention;

[0025] Figure 6 This is a schematic diagram of the structure of an electronic device that implements an automated task scheduling method according to an embodiment of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Example 1

[0029] Figure 1 This is a flowchart of an automated task scheduling method according to Embodiment 1 of the present invention. This embodiment is applicable to the scheduling of multiple automated tasks. The method can be executed by an automated task scheduling device, which can be implemented in hardware and / or software and can be configured in a device. For example, the device can be a backend server or other device with communication and computing capabilities. Figure 1 As shown, the method includes:

[0030] S110. Obtain each task; wherein the task is used to characterize the terminal device automation task configured according to the task attributes.

[0031] In this solution, a task can refer to an automated task on a terminal device configured according to task attributes. For example, a task could be a WeChat message reading task, a phone call answering task, etc. The terminal device can be a mobile phone.

[0032] In this embodiment, tasks can be configured in response to task attribute configuration operations. Then, each task is retrieved based on an automated triggering scenario. For example, tasks can be retrieved based on a timer; tasks can be retrieved based on a mobile phone notification; or tasks can be retrieved based on network push notifications from the device's backend system. The task producer can generate tasks according to actual conditions and business scenarios, without needing to consider task execution speed or conflicts arising from simultaneous execution of multiple tasks.

[0033] S120. Determine the task constraints corresponding to each task, and adjust the execution order of each task according to the task constraints to obtain the target execution result; wherein, the task constraints include a first constraint, a second constraint, and a third constraint; the first constraint is used to limit the priority of the task; the second constraint is used to limit the execution time of the task; and the third constraint is used to limit the execution conditions of the task.

[0034] Among them, task constraints are used to constrain each task so that each task is executed in the intended sequence.

[0035] In this embodiment, the first constraint is used to limit the priority of tasks. This can be set through a task priority strategy to ensure that important tasks are executed first, thereby improving task execution efficiency. The task priority strategy can be set according to factors such as the urgency and importance of the task, and dynamically adjust the priority of automated tasks based on environmental variables such as the time period in which the task is executed, the number of queued tasks, and mobile phone performance. This enables the system to intelligently allocate resources to high-priority tasks. Figure 2 This is a timing diagram of the automated task execution provided in Embodiment 1 of this application, such as... Figure 2 As shown, task 4 has a lower priority and can only be executed after the higher priority tasks have been completed.

[0036] In this solution, the second constraint is used to limit the execution time of the task. By assigning a time-limited execution attribute to the task, it ensures that the task is completed within the specified time, avoiding excessive delays or timeouts. The time-limited execution attribute can be set according to factors such as the expected completion time and workload of the task, enabling the system to respond to task requirements in a timely manner and improve execution efficiency.

[0037] Furthermore, the third constraint is used to restrict the execution conditions of a task. By setting constraints for automated tasks, it ensures that tasks are executed under specific conditions, preventing tasks that do not meet the conditions from being executed or from producing unexpected results. This allows the system to intelligently determine task executability and provide accurate execution results. For example, the third constraint could be to execute only once within a certain time interval, execute only once within a specific time period, or execute only once for the same type of task. Figure 2 As shown, the constraint for Task 4 is that only one task of the same type exists among the tasks waiting to be executed. Therefore, although Task 4 is triggered twice, only one is executed.

[0038] Specifically, after obtaining each task, the task constraints corresponding to each task can be determined, and the execution order of each task can be adjusted based on the task constraints.

[0039] Optionally, the execution order of each task can be adjusted according to the task constraints to obtain the target execution result, including:

[0040] Determine the execution order of each task;

[0041] Based on at least one of the first, second, and third constraints, the execution order of the various tasks is adjusted to obtain the target execution result.

[0042] In this scheme, the execution order of tasks can be determined based on their trigger times. For example, if the trigger time of task 1 is earlier than that of task 2, then the execution order of task 1 and task 2 is task 1, task 2.

[0043] Furthermore, after determining the execution order of each task, the execution order can be adjusted based on at least one of the first, second, and third constraints. That is, one or more constraints can be used to adjust the execution order of the tasks.

[0044] By setting task constraints to adjust the execution order of each task, it is possible to control automated tasks to execute according to the intended sequence, and to intelligently allocate resources and schedule tasks based on demand and importance.

[0045] S130. Execute each task according to the target execution result.

[0046] In this scheme, the target execution result is used to characterize the current execution order of each task, and each task can be executed sequentially according to the target execution result.

[0047] Optionally, the various tasks are performed, including:

[0048] Determine the currently executing task;

[0049] If a task interruption message is detected, the currently executing task is interrupted, and a task matching the task interruption message is executed.

[0050] In this solution, task interruption information is used to pause the currently executing task and immediately execute other urgent or higher-priority tasks. Task interruption information can be triggered based on task priority, urgency, or other indicators. Users can also manually interrupt the currently executing task or set interruption conditions according to their needs. For example, when system resources are scarce or urgent maintenance is required, users can manually interrupt some low-priority tasks to ensure normal system operation.

[0051] By setting task interruption information, waiting time during task execution can be avoided, system resources can be fully utilized, task execution efficiency can be improved, and important tasks can be processed in a timely manner, avoiding task backlog and delays.

[0052] The technical solution of this invention acquires various tasks, determines the task constraints corresponding to each task, adjusts the execution order of each task according to the task constraints, obtains the target execution result, and executes each task based on the target execution result. By implementing this technical solution, appropriate execution time and resources can be automatically allocated according to task constraints to maximize overall execution efficiency; it has high flexibility and scalability; it can adapt to tasks of different scales and complexities; and it can be customized according to user needs.

[0053] Example 2

[0054] Figure 3 This is a schematic diagram of an automated task scheduling process provided in Embodiment 2 of the present invention. The relationship between this embodiment and the above embodiments provides a detailed description of the automated task scheduling process. For example... Figure 3 As shown, the method includes:

[0055] S310. Obtain each task; wherein the task is used to characterize the terminal device automation task configured according to the task attributes.

[0056] S320. Determine the task constraints corresponding to each task, and adjust the execution order of each task according to the task constraints to obtain the target execution result; wherein, the task constraints include a first constraint, a second constraint, and a third constraint; the first constraint is used to limit the priority of the task; the second constraint is used to limit the execution time of the task; and the third constraint is used to limit the execution conditions of the task.

[0057] S330. Based on the target execution result, each task is stored in a pre-configured task cache pool; wherein, the task cache pool is used to cache tasks.

[0058] In this solution, to address the issue that the production rate of automated tasks is far higher than the execution rate, a task caching pool is added to isolate the production and execution of automated tasks.

[0059] In this embodiment, Figure 4 This is a schematic diagram of the automated task scheduling system provided in Embodiment 2 of this application, as shown below. Figure 4 As shown, each task can be stored sequentially into a pre-configured task cache pool.

[0060] S340. Call each task sequentially from the task cache pool.

[0061] In this embodiment, as Figure 4 As shown, during task execution, each task is called sequentially from the task cache pool.

[0062] S350. Execute each task based on a pre-configured task execution sandbox; wherein the task execution sandbox is used to characterize the system environment in which tasks are isolated individually.

[0063] In this solution, the task execution sandbox represents a system environment where tasks are isolated. Running tasks within the sandbox restricts their access to and impact on system resources. If a task malfunctions or crashes, the impact is limited to the sandbox and does not affect the entire system. This isolation mechanism improves system stability and security, preventing abnormal behavior of automated tasks from severely impacting the entire system.

[0064] Specifically, such as Figure 4 As shown, each task is executed individually in the task execution sandbox.

[0065] Optionally, the various tasks are executed based on a pre-configured task execution sandbox, including:

[0066] The execution process of the task is monitored in real time, and the monitoring results are obtained.

[0067] In this solution, the task execution sandbox environment also provides monitoring and logging functions, which facilitates tracking and troubleshooting of task execution, thereby improving the maintainability and reliability of the system.

[0068] Real-time monitoring includes monitoring task execution time, resource utilization, error logs, and anomalies to obtain monitoring results. By monitoring these indicators, potential problems during task execution can be identified promptly, such as excessively long execution times, high resource utilization, and errors. Simultaneously, task progress can be monitored to understand whether the task is proceeding as expected. Optionally, the monitoring results may include:

[0069] If the monitoring results are abnormal, the monitoring results will be sent according to the pre-configured sending method.

[0070] In this solution, when anomalies are detected in the monitoring results, the monitored information will be promptly sent to relevant personnel so that timely measures can be taken to resolve the problem.

[0071] The sending methods include alarms and notifications. For example, when an anomaly or unexpected deviation is detected in task execution, the system automatically sends alarm information to relevant personnel via software such as Lark and DingTalk, enabling them to take timely measures to resolve the issue.

[0072] By monitoring the execution of automated tasks in real time and reporting any abnormal situations, it is possible to ensure that tasks are completed on time.

[0073] The technical solution of this invention acquires various tasks, determines the corresponding task constraints, adjusts the execution order of tasks according to the constraints, obtains the target execution result, stores each task in a pre-configured task cache pool based on the target execution result, and then sequentially calls each task from the task cache pool, executing each task based on a pre-configured task execution sandbox. By implementing this technical solution, appropriate execution time and resources can be automatically allocated according to task constraints to maximize overall execution efficiency; a real-time monitoring and feedback mechanism is introduced to ensure smooth task execution; it has high flexibility and scalability; it can adapt to tasks of different scales and complexities; and it can be customized according to user needs.

[0074] Example 3

[0075] Figure 5 This is a schematic diagram of an automated task scheduling device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes:

[0076] The task acquisition module 510 is used to acquire various tasks; wherein, the task is used to characterize the terminal device automation task configured according to the task attributes.

[0077] The target execution result acquisition module 520 is used to determine the task constraints corresponding to each task, and adjust the execution order of each task according to the task constraints to obtain the target execution result; wherein, the task constraints include a first constraint, a second constraint, and a third constraint; the first constraint is used to limit the priority of the task; the second constraint is used to limit the execution time of the task; and the third constraint is used to limit the execution conditions of the task.

[0078] The task execution module 530 is used to execute each task based on the target execution result.

[0079] Optionally, the target execution result is obtained in module 520, which is specifically used for:

[0080] Determine the execution order of each task;

[0081] Based on at least one of the first, second, and third constraints, the execution order of the various tasks is adjusted to obtain the target execution result.

[0082] Optionally, the device further includes:

[0083] The task storage module is used to store each task into a pre-configured task cache pool based on the target execution result; wherein, the task cache pool is used to cache tasks.

[0084] Optionally, the task execution module 530 includes:

[0085] The task invocation unit is used to sequentially invoke each task from the task cache pool;

[0086] The task execution unit is used to execute the various tasks based on a pre-configured task execution sandbox; wherein the task execution sandbox is used to characterize the system environment in which tasks are isolated individually.

[0087] Optional, the task execution unit includes:

[0088] The monitoring results sub-unit is used to monitor the execution process of the task in real time and obtain monitoring results.

[0089] Optionally, the monitoring results are used to obtain sub-units, specifically for:

[0090] If the monitoring results are abnormal, the monitoring results will be sent according to the pre-configured sending method.

[0091] Optionally, the task execution module 530 is also used for:

[0092] Determine the currently executing task;

[0093] If a task interruption message is detected, the currently executing task is interrupted, and a task matching the task interruption message is executed.

[0094] The automated task scheduling device provided in this embodiment of the invention can execute an automated task scheduling method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0095] Example 4

[0096] Figure 6 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0097] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0098] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0099] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as an automated task scheduling method.

[0100] In some embodiments, an automated task scheduling method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the automated task scheduling method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform an automated task scheduling method by any other suitable means (e.g., by means of firmware).

[0101] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0103] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0105] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0106] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0107] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0108] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. An automated task scheduling method, characterized in that, include: Obtain each task; wherein the task is used to characterize the terminal device automation task configured according to the task attributes; The task constraints corresponding to each task are determined, and the execution order of each task is adjusted according to the task constraints to obtain the target execution result; wherein, the task constraints include a first constraint, a second constraint, and a third constraint; the first constraint is used to limit the priority of the task; the second constraint is used to limit the execution time of the task; and the third constraint is used to limit the execution conditions of the task. Based on the target execution result, execute each of the tasks.

2. The method according to claim 1, characterized in that, The execution order of each task is adjusted according to the task constraints to obtain the target execution result, including: Determine the execution order of each task; Based on at least one of the first, second, and third constraints, the execution order of the various tasks is adjusted to obtain the target execution result.

3. The method according to claim 1, characterized in that, After obtaining the target execution result, the method further includes: Based on the target execution result, each task is stored in a pre-configured task cache pool; wherein, the task cache pool is used to cache tasks.

4. The method according to claim 3, characterized in that, Based on the target execution result, execute each of the following tasks, including: Retrieve each task sequentially from the task cache pool; Each task is executed based on a pre-configured task execution sandbox; wherein the task execution sandbox is used to characterize the system environment in which tasks are isolated individually.

5. The method according to claim 4, characterized in that, Based on a pre-configured task execution sandbox, the various tasks are executed, including: The execution process of the task is monitored in real time, and the monitoring results are obtained.

6. The method according to claim 5, characterized in that, The monitoring results obtained include: If the monitoring results are abnormal, the monitoring results will be sent according to the pre-configured sending method.

7. The method according to claim 1, characterized in that, Performing the aforementioned tasks includes: Determine the currently executing task; If a task interruption message is detected, the currently executing task is interrupted, and a task matching the task interruption message is executed.

8. An automated task scheduling device, characterized in that, include: The task acquisition module is used to acquire various tasks; wherein, the task is used to represent the terminal device automation task configured according to the task attributes; The target execution result acquisition module is used to determine the task constraints corresponding to each task, and adjust the execution order of each task according to the task constraints to obtain the target execution result; wherein, the task constraints include a first constraint, a second constraint, and a third constraint; the first constraint is used to limit the priority of the task; the second constraint is used to limit the execution time of the task; and the third constraint is used to limit the execution conditions of the task. The task execution module is used to execute each task based on the target execution result.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform an automated task scheduling method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute an automated task scheduling method according to any one of claims 1-7.