CN117319431A - Task management and control method, device and task management and control system - Google Patents

Task management and control method, device and task management and control system Download PDF

Info

Publication number
CN117319431A
CN117319431A CN202210730308.6A CN202210730308A CN117319431A CN 117319431 A CN117319431 A CN 117319431A CN 202210730308 A CN202210730308 A CN 202210730308A CN 117319431 A CN117319431 A CN 117319431A
Authority
CN
China
Prior art keywords
task
local
online
offline
execution time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210730308.6A
Other languages
Chinese (zh)
Inventor
陈聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Innovation Technology Co ltd
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Innovation Technology Co ltd
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Innovation Technology Co ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Innovation Technology Co ltd
Priority to CN202210730308.6A priority Critical patent/CN117319431A/en
Publication of CN117319431A publication Critical patent/CN117319431A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a task management and control method, a task management and control device and a task management and control system, wherein the method comprises the following steps: acquiring an offline task list sent by a management end; setting a local task according to task execution time and task identification corresponding to each offline task in the offline task list; monitoring whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached; and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target device to execute the local task. Therefore, task backup of the online task is realized by acquiring an offline task list sent by the management end to establish a local task, and when the client cannot timely receive the online task due to network reasons, timeliness of executing an operation instruction is ensured by executing the local task, so that user experience is improved.

Description

Task management and control method, device and task management and control system
Technical Field
The invention relates to the technical field of equipment management, in particular to a task management and control method, a task management and control device and a task management and control system.
Background
The centralized control management is a novel information equipment management scheme, and comprises a plurality of functional modules such as multi-terminal remote control, multi-terminal information push and data statistics of each terminal, so that unified and efficient remote management of a plurality of interactive intelligent flat plates is guaranteed, the strong expansibility advantage of the intelligent flat plates can be effectively exerted, and various management information requirements are met.
The centralized control management system is widely applied to the field of electrified education. Through the centralized control management system, the electrified education teacher can easily acquire intelligent flat data of each class before going out of home and perform unified management; the school can issue files to equipment arranged in each class, such as an intelligent tablet, only by sitting in an office for unified learning; the electrified education teacher can also remotely set a restore point, restore the intelligent tablet state by one key after shutdown, and the like. When the user carries out remote management on the equipment, all control behaviors such as on-off, ringing, pushing files and the like are operation instructions, and after the user side issues the operation instructions to the equipment side, the equipment executes corresponding behaviors according to the operation instructions. When a user issues an operation instruction to the device, the operation instruction can be executed at a designated time or a repetition period, and the operation delayed to be executed is called a timing task in a centralized control scene. The scheduling system can execute a job singly or repeatedly according to a certain moment set by a user, the timing task set by the user depends on the scheduling system, a target operation instruction is used as the job in the system, and the target operation instruction is sent to a client for execution after receiving scheduling at a target time through a network. Because the network transmission link is complex and the client cannot guarantee the networking, the problem that delay or message loss can occur when an operation instruction is sent to the client through the network and the timeliness of a timing task cannot be guaranteed exists; and the client may be in a disconnected state within the target period of time, and may not receive the operation instruction transmitted via the network.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a task management and control method, device, and task management and control system to solve the problem in the prior art that a task management and control mode that relies on network transmission completely is easy to delay or cannot receive an instruction, so that timeliness of an operation instruction is difficult to guarantee.
According to a first aspect, an embodiment of the present invention provides a task management and control method, applied to a client, where the method includes:
acquiring an offline task list sent by a management end, wherein the offline task list comprises: all unexecuted online tasks;
setting a local task according to task execution time and task identification corresponding to each offline task in the offline task list;
monitoring whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached;
and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target equipment to execute the local task.
Optionally, the method further comprises:
and if the online task which is transmitted by the scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached, controlling the target equipment to execute the online task.
Optionally, the method further comprises:
when a current online task sent by the scheduling system is received, a current task identification of the current online task is obtained;
monitoring whether a local task with the same identifier as the current task exists in the unexecuted local tasks;
and if the local task with the same identifier as the current task exists in the unexecuted local tasks, discarding the local task with the same identifier as the current task.
Optionally, before monitoring whether an online task sent by the scheduling system and having the same task identification as the local task is received before the task execution time of the local task arrives, the method further includes:
acquiring the current network connection state of a client;
when the current network connection state is a network disconnection state, controlling the target equipment to execute the local task;
and when the current network connection state is a networking state, monitoring whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached.
Optionally, the method further comprises:
and performing time calibration with the management end and the scheduling system.
Optionally, the method further comprises:
acquiring a task change request sent by a management end, wherein the task change request is generated based on a task change operation when the management end performs the task change operation on an unexecuted online task;
updating the offline task list based on the task change request, and updating the local task according to the task execution time and the task identifier corresponding to each offline task in the updated offline task list.
According to a second aspect, an embodiment of the present invention provides a task management and control device, applied to a client, where the device includes:
the system comprises an acquisition module, a management module and a management module, wherein the acquisition module is used for acquiring an offline task list sent by the management terminal, and the offline task list comprises: all unexecuted online tasks;
the first processing module is used for setting local tasks according to task execution time and task identifiers corresponding to the off-line tasks in the off-line task list;
the second processing module is used for monitoring whether an online task which is sent by the scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached;
and the third processing module is used for executing the local task if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached.
According to a third aspect, an embodiment of the present invention provides a task management and control system, including: client, management end and dispatch system, wherein,
setting online tasks to the scheduling system by a user through the management end, and establishing an offline task list for all unexecuted online tasks to the client;
the client acquires an offline task list sent by a management end, and sets a local task according to task execution time and task identification corresponding to each offline task in the offline task list;
the scheduling system sends an online task to the client according to the task execution time of the online task;
the client monitors whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached; and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target equipment to execute the local task.
According to a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing computer instructions which, when executed by a processor, implement a method according to the first aspect of the present invention and any one of its alternatives.
According to a fifth aspect, an embodiment of the present invention provides an electronic device, including: the system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so as to execute the method according to the first aspect of the invention and any optional mode thereof.
The technical scheme of the invention has the following advantages:
1. the embodiment of the invention provides a task management and control method and device, which are used for acquiring an offline task list sent by a management end; setting a local task according to task execution time and task identification corresponding to each offline task in the offline task list; monitoring whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached; and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target device to execute the local task. Therefore, task backup of the online task is realized by acquiring an offline task list sent by the management end to establish a local task, and when the client cannot timely receive the online task due to network reasons, timeliness of executing an operation instruction is ensured by executing the local task, so that user experience is improved.
2. The embodiment of the invention provides a task management and control system, which comprises the following components: the system comprises a client, a management end and a scheduling system, wherein a user sets online tasks to the scheduling system through the management end, and establishes an offline task list for all unexecuted online tasks and sends the offline task list to the client; the client acquires an offline task list sent by the management end, and sets a local task according to task execution time and task identification corresponding to each offline task in the offline task list; the scheduling system sends the online task to the client according to the task execution time of the online task; the client monitors whether an online task which is transmitted by the scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached; and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target device to execute the local task. Therefore, the user sets the online task to the scheduling system by using the management end and simultaneously sends the offline task list to the client, so that the client can ensure timeliness of executing the operation instruction by executing the local task created by using the offline task list when the online task sent by the scheduling system cannot be received in time due to network failure, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a task management and control system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a task management and control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a task management and control device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
The centralized control management system is widely applied to the field of electrified education. Through the centralized control management system, the electrified education teacher can easily acquire intelligent flat data of each class before going out of home and perform unified management; the school can issue files to equipment arranged in each class, such as an intelligent tablet, only by sitting in an office for unified learning; the electrified education teacher can also remotely set a restore point, restore the intelligent tablet state by one key after shutdown, and the like. When the user carries out remote management on the equipment, all control behaviors such as on-off, ringing, pushing files and the like are operation instructions, and after the user side issues the operation instructions to the equipment side, the equipment executes corresponding behaviors according to the operation instructions. When a user issues an operation instruction to the device, the operation instruction can be executed at a designated time or a repetition period, and the operation delayed to be executed is called a timing task in a centralized control scene. The scheduling system can execute a job singly or repeatedly according to a certain moment set by a user, the timing task set by the user depends on the scheduling system, a target operation instruction is used as the job in the system, and the target operation instruction is sent to a client for execution after receiving scheduling at a target time through a network. Because the network transmission link is complex and the client cannot guarantee the networking, the problem that delay or message loss can occur when an operation instruction is sent to the client through the network and the timeliness of a timing task cannot be guaranteed exists; and the client may be in a disconnected state within the target period of time, and may not receive the operation instruction transmitted via the network.
Based on the above-mentioned problems, an embodiment of the present invention provides a task management and control system, as shown in fig. 1, including: the system comprises a client 1, a management end 2 and a dispatching system 3, wherein a user sets online tasks to the dispatching system 3 through the management end 2, and establishes an offline task list for all unexecuted online tasks and sends the offline task list to the client 1; the client 1 acquires an offline task list sent by the management end 2, and sets a local task according to task execution time and task identification corresponding to each offline task in the offline task list; the scheduling system 3 sends the online task to the client 1 according to the task execution time of the online task; the client 1 monitors whether an online task which is transmitted by the dispatching system 3 and has the same task identification as the local task is received before the task execution time of the local task is reached; if the online task, which is the same as the task identification of the local task and is transmitted by the scheduling system 3, is not received before the task execution time of the local task arrives, the control target device executes the local task.
In an embodiment of the present invention, the target device is described by taking an intelligent tablet as an example, and in an actual application, the target device may also be other devices that can be controlled remotely, for example: computers, etc., the invention is not limited thereto. When the target device is an intelligent tablet, the client 1 may be a client of a centralized control management system disposed in the intelligent tablet, and the management end 2 is a centralized control platform of the centralized control management system.
The scheduling system 3 in the centralized control management system can execute a job once or repeatedly according to a certain moment set by a user, and the timing task set by the user depends on the scheduling system 3, and takes a target operation instruction as a job in the system, receives scheduling at a target time and then sends the scheduling instruction to a client for execution through a network. The working process of the dispatching system 3 is similar to that of dispatching systems in various centralized control management systems in the prior art, and the specific working principle and implementation manner thereof are detailed in the related description in the prior art, and are not repeated here. In practical application, the software of the scheduling system 3 may be installed in the management end 2, that is, the scheduling system is set on a centralized control platform, so that the centralized control platform manages and operates the scheduling system, which is not limited by the present invention.
Specifically, in one embodiment, as shown in fig. 1, the task management and control system further includes: the NTP server 4 is connected with the client 1, the scheduling system 3 and the management end 2 respectively, and is used for implementing time alignment of the client 1, the scheduling system 3 and the management end 2 by using a network time protocol (Network Time Protocol, abbreviated as NTP), implementing time alignment of the three, and ensuring consistency in task processing.
The NTP protocol is a protocol for synchronizing computer time, which can synchronize a server or a clock source (such as a quartz clock, a GPS, etc.) of the computer, can provide high-precision time correction (the difference between the standard and the LAN is less than 1 ms, and the difference between the standard and the WAN is tens of ms), and can prevent a malignant protocol attack by means of encryption confirmation. The purpose of NTP is to provide accurate and robust time services in an unordered Internet environment.
The specific working process of the task management and control system will be described in detail below with reference to specific application examples.
When a user sets a timing task on a centralized control platform, the platform creates a job as an online task on a dispatching system 3, and simultaneously synchronizes the unexecuted timing task as an offline task to a client when the client 1 is connected with the network, and the client 1 stores and starts a local task;
after starting an offline local task, the client 1 can directly execute an operation instruction at a designated moment under the condition of network disconnection; in the networking case, the operation instruction issued by the scheduling system 3 through the network is preferentially executed, but once a large time delay is detected to be generated by the task, the local task execution operation instruction can be switched. Further details of the operation of the client 1 are described in the following method embodiments, and are not described here.
The task management and control system provided by the embodiment of the invention solves the problem that equipment management and control cannot be performed when a client is disconnected under the online-offline dual-mode simultaneous starting; the offline mode can be started to perform fault tolerance on the online mode, so that the timeliness of task execution is improved in the presence of possible network time delay; the client networking synchronizes offline tasks at any time and performs NTP time synchronization, so that task difference and time error generated after the client loses control right during the off-line period are eliminated as much as possible.
Through the cooperation of the above components, the task management and control system provided by the embodiment of the invention enables a user to set an online task to a scheduling system by using a management end and send an offline task list to a client, so that the client can ensure timeliness of executing an operation instruction by executing a local task created by using the offline task list when the online task sent by the scheduling system cannot be timely received due to network failure, and improves user experience.
The embodiment of the invention also provides a task management and control method which is applied to the client 1 in the task management and control system shown in fig. 1, and as shown in fig. 2, the task management and control method specifically comprises the following steps:
step S101: and acquiring an offline task list sent by the management end.
Wherein the offline task list comprises: all online tasks that are not performed. In practical application, the offline task list is an online task which is not yet executed and is set in the scheduling system by the user through the management end, and the online task includes various operation instructions for the target device, such as: and timing operation instructions such as startup and shutdown.
Step S102: setting a local task according to task execution time and task identification corresponding to each offline task in the offline task list.
Specifically, when the user sets an online task of the scheduling system at the management end, each task corresponds to a unique task identifier and execution time corresponding to the task, for example: each online task corresponds to an ID code as a task identifier and is provided with a time stamp of task execution time, the local task and the offline task are set by analyzing the ID code and the time stamp of the task, the local task and the offline task both comprise the same operation instruction and the same task identifier, the task execution time of the local task and the task execution time of the offline task can be the same, certain network delay can also be considered, and the task execution time of the local task is later than the task execution time marked by the time stamp of the offline task, for example: the maximum operation instruction execution time delay allowed by the task management and control system is 1s, and the task execution time of the local task can be set to be the task execution time marked by the time stamp of the offline task plus 1s, so that when the operation instruction can not be completed on time due to the fact that the scheduling system can not timely issue the online task due to the network problem, the execution timeliness of the operation instruction can be guaranteed by starting the local task, and the user experience is improved.
Step S103: monitoring whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task arrives.
Specifically, before the execution time of the task corresponding to the current local task is reached, the online task sent by the scheduling system is monitored, and when the online task is received, the task identification of the online task and the task identification of the current local task are compared, for example: and determining whether the online tasks which are transmitted by the dispatching system and are the same as the current local service are received or not according to the mode of whether the ID codes are consistent or not.
Step S104: and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target device to execute the local task.
Specifically, if the task execution time of the local task is reached, the client still does not receive the online task of the task identifier sent by the scheduling system, which indicates that a network abnormality occurs between the client and the scheduling system, for example: the network delay or network disconnection and the like are realized, so that the target equipment such as an intelligent tablet is controlled to execute the local task stored locally, the problem that the operation instruction in the online task set by the user cannot be executed in time due to the network problem is avoided, and the use experience of the user is improved.
By executing the steps, the task backup of the online task is realized by acquiring the offline task list sent by the management end and establishing the local task, and when the client cannot receive the online task in time due to network reasons, timeliness of executing the operation instruction is ensured by executing the local task, so that user experience is improved.
Specifically, in an embodiment, the task management and control method specifically further includes the following steps:
step S105: and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is received before the task execution time of the local task is reached, controlling the target device to execute the online task.
Specifically, the priority of the online task issued by the scheduling system is higher than that of the local task, if the client receives the online task issued by the scheduling system, the online task is executed, the corresponding local task is deleted, the client is ensured to execute the operation instruction set by the user only once, the repeated execution of the same task is avoided, and the accuracy of task execution is ensured.
Specifically, in an embodiment, the task management and control method specifically further includes the following steps:
step S201: and when the current online task sent by the scheduling system is received, acquiring a current task identifier of the current online task.
Step S202: monitoring whether the local task which is not executed has the same local task identification as the current task.
Step S203: if the local task with the same identification as the current task exists in the unexecuted local tasks, discarding the local task with the same identification as the current task.
Specifically, if the client receives the online task issued by the dispatching system, the online task is executed, the corresponding local task is deleted, the client is ensured to execute the operation instruction set by the user only once, the repeated execution of the same task is avoided, and the accuracy of task execution is ensured.
In addition, in practical application, if the local task which is not executed does not have the same local task identification as the current task, the task execution time of the current online task is determined by extracting the time stamp of the current online task, whether the current time exceeds the maximum time delay of the task execution time is judged, and if the current time exceeds the maximum time delay of the task execution time, the current online task is discarded so as to carry out fault tolerance on the online task, thereby avoiding the problem of network transmission time delay of the online task and further improving the timeliness of task execution.
Specifically, in an embodiment, before executing the step S103, the task management method provided by the embodiment of the present invention further includes the following steps:
step S31: and acquiring the current network connection state of the client.
Specifically, the current network connection state of the client can be determined by monitoring the network signal quality of the client, if the network signal quality is better, the current network connection state is indicated to be a networking state, and otherwise, the current network connection state is indicated to be a disconnection state.
Specifically, when the current network connection state is the networking state, the above-described step S103 is performed. And when the current network connection state is the off-network state, controlling the target equipment to execute the local task. Therefore, when the network of the client is abnormal, the problem that equipment cannot be controlled when the client is disconnected is solved by directly executing the local task, online and offline dual-mode work is realized, and the use experience of a user is further improved.
Specifically, in an embodiment, the task management and control method specifically further includes the following steps:
step S106: and performing time calibration with the management end and the scheduling system.
Specifically, the time calibration of the client, the management end and the scheduling system can be completed through the NTP server, and in practical application, the time synchronization can be performed with the management end and the scheduling system in the client networking state, so that the uniformity and timeliness of the task execution time are ensured.
Specifically, in an embodiment, the task management and control method provided by the embodiment of the present invention further includes the following steps:
step S107: and acquiring a task change request sent by the management terminal.
The task change request is generated based on the task change operation when the management end performs the task change operation on the unexecuted online task. Specifically, the task change operation includes: adding unexecuted online tasks, deleting unexecuted online tasks, and modifying unexecuted online tasks. Wherein modifying the unexecuted online task includes: the present invention is not limited to modifying the task execution time of the non-executed online task and/or modifying the task execution content of the non-executed online task.
Step S108: updating the offline task list based on the task change request, and updating the local task according to the task execution time and the task identifier corresponding to each offline task in the updated offline task list.
Specifically, when the client and the management end are in a networking state, the management end sends a task change request to the client after task change operation so as to synchronously update the offline task list, thereby realizing real-time update of the local task, ensuring the consistency of the local task and the non-executed online task, avoiding the condition that the changed online task is lost or delayed due to network faults, further ensuring the timeliness of task execution and improving the user experience.
By executing the steps, the task backup of the online task is realized by acquiring the offline task list sent by the management end and establishing the local task, and when the client cannot receive the online task in time due to network reasons, timeliness of executing the operation instruction is ensured by executing the local task, so that user experience is improved.
The embodiment of the invention also provides a task management and control device, which is applied to the client 1 in the task management and control system shown in fig. 1, and as shown in fig. 3, the task management and control device specifically comprises:
the obtaining module 101 is configured to obtain an offline task list sent by the management end, where the offline task list includes: all online tasks that are not performed. For details, refer to the related description of step S101 in the above method embodiment, and no further description is given here.
The first processing module 102 is configured to set a local task according to a task execution time and a task identifier corresponding to each offline task in the offline task list. For details, refer to the related description of step S102 in the above method embodiment, and no further description is given here.
And the second processing module 103 is configured to monitor whether an online task sent by the scheduling system and having the same task identifier as the local task is received before the task execution time of the local task arrives. For details, see the description of step S103 in the above method embodiment, and the details are not repeated here.
The third processing module 104 is configured to execute the online task if the online task sent by the scheduling system and the task identifier of the local task are received before the task execution time of the local task arrives. For details, refer to the related description of step S104 in the above method embodiment, and no further description is given here.
Specifically, in an embodiment, the task management and control device provided by the embodiment of the present invention further includes:
and the fourth processing module is used for controlling the target equipment to execute the online task if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is received before the task execution time of the local task is reached. For details, see the description of step S105 in the above method embodiment, and the details are not repeated here.
And the fifth processing module is used for acquiring the current task identification of the current online task when receiving the current online task sent by the scheduling system. For details, refer to the related description of step S201 in the above method embodiment, and no further description is given here.
And the sixth processing module is used for monitoring whether the local task with the same identifier as the current task exists in the unexecuted local tasks. For details, refer to the description related to step S202 in the above method embodiment, and the details are not repeated here.
And the seventh processing module is used for discarding the local task with the same current task identifier if the local task with the same current task identifier exists in the unexecuted local tasks. For details, refer to the related description of step S203 in the above method embodiment, and no further description is given here.
And the eighth processing module is used for performing time calibration with the management end and the scheduling system. For details, refer to the related description of step S106 in the above method embodiment, and no further description is given here.
And the ninth processing module is used for acquiring the task change request sent by the management end. For details, see the description of step S107 in the above method embodiment, and the details are not repeated here.
And the tenth processing module is used for updating the offline task list based on the task change request and updating the local task according to the task execution time and the task identifier corresponding to each offline task in the updated offline task list. For details, see the description of step S108 in the above method embodiment, and the details are not repeated here.
Specifically, in an embodiment, before monitoring whether an online task sent by the scheduling system and having the same task identifier as the local task is received before the task execution time of the local task arrives, the second processing module 103 is further configured to obtain a current network connection state of the client; when the current network connection state is a network disconnection state, controlling the target equipment to execute a local task; when the current network connection state is the networking state, monitoring whether an online task which is transmitted by the scheduling system and is the same as the task identification of the local task is received before the task execution time of the local task arrives.
Further functional descriptions of the above respective modules are the same as those of the above corresponding method embodiments, and are not repeated here.
Through the cooperation of the above components, the task management and control device provided by the embodiment of the invention realizes task backup of the online task by acquiring the offline task list sent by the management end and establishing the local task, and ensures timeliness of executing the operation instruction by executing the local task when the client cannot receive the online task in time due to network reasons, thereby improving user experience.
The present invention also provides an electronic device, as shown in fig. 4, which may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or other means, and in fig. 4, the connection is exemplified by a bus.
The processor 901 may be a central processing unit (Central Processing Unit, CPU). The processor 901 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory 902 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the embodiments of the present invention. The processor 901 performs various functional applications of the processor and data processing, i.e., implements the above-described methods, by running non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating device, at least one application program required for a function; the storage data area may store data created by the processor 901, and the like. In addition, the memory 902 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 902 optionally includes memory remotely located relative to processor 901, which may be connected to processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902 that, when executed by the processor 901, perform the methods described above.
The specific details of the electronic device may be correspondingly understood by referring to the corresponding related descriptions and effects in the above method embodiments, which are not repeated herein.
It will be appreciated by those skilled in the art that implementing all or part of the above-described methods in the embodiments may be implemented by a computer program for instructing relevant hardware, and the implemented program may be stored in a computer readable storage medium, and the program may include the steps of the embodiments of the above-described methods when executed. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
The above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the scope of the claims.

Claims (10)

1. A task management and control method applied to a client, the method comprising:
acquiring an offline task list sent by a management end, wherein the offline task list comprises: all unexecuted online tasks;
setting a local task according to task execution time and task identification corresponding to each offline task in the offline task list;
monitoring whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached;
and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target equipment to execute the local task.
2. The method as recited in claim 1, further comprising:
and if the online task which is transmitted by the scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached, controlling the target equipment to execute the online task.
3. The method as recited in claim 1, further comprising:
when a current online task sent by the scheduling system is received, a current task identification of the current online task is obtained;
monitoring whether a local task with the same identifier as the current task exists in the unexecuted local tasks;
and if the local task with the same identifier as the current task exists in the unexecuted local tasks, discarding the local task with the same identifier as the current task.
4. The method of claim 1, wherein prior to monitoring whether an online task sent by a scheduling system that is the same as a task identification of the local task is received before a task execution time of the local task arrives, the method further comprises:
acquiring the current network connection state of a client;
when the current network connection state is a network disconnection state, controlling the target equipment to execute the local task;
and when the current network connection state is a networking state, monitoring whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached.
5. The method as recited in claim 1, further comprising:
and performing time calibration with the management end and the scheduling system.
6. The method as recited in claim 2, further comprising:
acquiring a task change request sent by a management end, wherein the task change request is generated based on a task change operation when the management end performs the task change operation on an unexecuted online task;
updating the offline task list based on the task change request, and updating the local task according to the task execution time and the task identifier corresponding to each offline task in the updated offline task list.
7. A task management and control device applied to a client, the device comprising:
the system comprises an acquisition module, a management module and a management module, wherein the acquisition module is used for acquiring an offline task list sent by the management terminal, and the offline task list comprises: all unexecuted online tasks;
the first processing module is used for setting local tasks according to task execution time and task identifiers corresponding to the off-line tasks in the off-line task list;
the second processing module is used for monitoring whether an online task which is sent by the scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached;
and the third processing module is used for executing the local task if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached.
8. A task management and control system, comprising: client, management end and dispatch system, wherein,
setting online tasks to the scheduling system by a user through the management end, and establishing an offline task list for all unexecuted online tasks to the client;
the client acquires an offline task list sent by a management end, and sets a local task according to task execution time and task identification corresponding to each offline task in the offline task list;
the scheduling system sends an online task to the client according to the task execution time of the online task;
the client monitors whether an online task which is transmitted by a scheduling system and has the same task identification as the local task is received before the task execution time of the local task is reached; and if the online task which is transmitted by the scheduling system and is the same as the task identification of the local task is not received before the task execution time of the local task is reached, controlling the target equipment to execute the local task.
9. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of any one of claims 1-6.
10. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions that, when executed, cause the processor to perform the method of any of claims 1-6.
CN202210730308.6A 2022-06-24 2022-06-24 Task management and control method, device and task management and control system Pending CN117319431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210730308.6A CN117319431A (en) 2022-06-24 2022-06-24 Task management and control method, device and task management and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210730308.6A CN117319431A (en) 2022-06-24 2022-06-24 Task management and control method, device and task management and control system

Publications (1)

Publication Number Publication Date
CN117319431A true CN117319431A (en) 2023-12-29

Family

ID=89236022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210730308.6A Pending CN117319431A (en) 2022-06-24 2022-06-24 Task management and control method, device and task management and control system

Country Status (1)

Country Link
CN (1) CN117319431A (en)

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
CN108566290B (en) Service configuration management method, system, storage medium and server
CN101262369B (en) Master/slave realization method for dispatching server and dispatching server
US20160142247A1 (en) Local network and method of updating a device in a local network
EP3076290B1 (en) Method and device for remotely updating application program
CN110492967B (en) Time synchronization method, relay equipment and device
CN113742031A (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN112422684B (en) Target message processing method and device, storage medium and electronic device
CN104184756A (en) Data synchronization method, device and system
CN107483297B (en) Active monitoring system and method for quality of service carried on embedded equipment
CN110022369A (en) Message treatment method, device, electronic equipment and computer readable storage medium
CN110941665A (en) Data synchronization method, data synchronization device and data synchronization equipment between nodes
US20220394085A1 (en) Network connection method and device for training participant end of common training model
CN110958150B (en) Management method and device for dynamic service configuration
WO2024169385A1 (en) Cluster deployment method and apparatus, and device, medium and product
US20220066436A1 (en) Industrial field device replacement system
CN108924096B (en) Information synchronization method and device
CN114422335A (en) Communication method, communication device, server and storage medium
CN111901395A (en) Multi-cluster switching method and device
CN117319431A (en) Task management and control method, device and task management and control system
CN108683546B (en) Synchronous updating method for intelligent household equipment based on Internet of things
CN112650815B (en) Method and device for synchronizing environment data, storage medium and electronic device
CN112437146B (en) Equipment state synchronization method, device and system
CN105282235B (en) A method of solution RPC upgrades unstable in double-PON port ONU
CN114816866A (en) Fault processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination