CN114257637A - Task execution method and device, terminal equipment and readable storage medium - Google Patents

Task execution method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN114257637A
CN114257637A CN202111526055.2A CN202111526055A CN114257637A CN 114257637 A CN114257637 A CN 114257637A CN 202111526055 A CN202111526055 A CN 202111526055A CN 114257637 A CN114257637 A CN 114257637A
Authority
CN
China
Prior art keywords
offline
task data
terminal equipment
task
working mode
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.)
Granted
Application number
CN202111526055.2A
Other languages
Chinese (zh)
Other versions
CN114257637B (en
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.)
Youmo Network Technology Shenzhen Co ltd
Original Assignee
Youmo Network Technology Shenzhen 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 Youmo Network Technology Shenzhen Co ltd filed Critical Youmo Network Technology Shenzhen Co ltd
Priority to CN202111526055.2A priority Critical patent/CN114257637B/en
Publication of CN114257637A publication Critical patent/CN114257637A/en
Application granted granted Critical
Publication of CN114257637B publication Critical patent/CN114257637B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a task execution method, a task execution device, terminal equipment and a readable storage medium, wherein the method comprises the steps of when the terminal equipment enters an offline working mode, performing serialization processing on offline task data generated by the terminal equipment in the offline working mode to obtain serialized task data; storing the serialized task data in the terminal equipment; when the terminal equipment enters an online working mode, performing deserialization processing on the serialized task data stored in the terminal equipment so as to restore the serialized task data to the offline task data; and uploading the recovered offline task data to a target end. When the network is disconnected or the network is poor, the offline task data are stored in the terminal equipment after the terminal equipment enters the offline working mode, and the offline task data are uploaded when the terminal equipment is online, so that the working efficiency of network-dependent workers can be effectively improved, and the normal operation of the work is ensured.

Description

Task execution method and device, terminal equipment and readable storage medium
Technical Field
The present invention relates to the field of terminal control technologies, and in particular, to a method and an apparatus for task execution, a terminal device, and a readable storage medium.
Background
With the rapid development of the internet and the rapid popularization of terminal devices such as mobile phones and computers, the terminal devices have already penetrated various industries, and in most industries, practitioners work by using the internet and the terminal devices, for example, some industries needing to upload pictures, videos or working documents in real time.
However, the network environment is unstable, and a network is disconnected or the network is poor, so that a practitioner relying on the network can work normally when the network is disconnected or the network is poor, and the working efficiency is reduced.
Disclosure of Invention
In view of the above problems, the present application provides a task execution method, apparatus, terminal device and readable storage medium, so that a user can normally work in an environment with a disconnected network or a poor network, thereby improving work efficiency.
In a first aspect, an embodiment of the present application provides a task execution method, where the method includes:
when a terminal device enters an offline working mode, performing serialization processing on offline task data generated by the terminal device in the offline working mode to obtain serialized task data;
storing the serialized task data in the terminal equipment;
when the terminal equipment enters an online working mode, performing deserialization processing on the serialized task data stored in the terminal equipment so as to restore the serialized task data to the offline task data;
and uploading the recovered offline task data to a target end.
The task execution method according to the embodiment of the present application, which performs serialization processing on offline task data generated by the terminal device in the offline operating mode, includes:
compressing the offline task data to obtain compressed task data;
judging whether the volume of the compressed task data is smaller than a volume threshold value or not;
if the volume is larger than or equal to the volume threshold, returning to the step of compressing the offline task data to obtain compressed task data;
if the volume is smaller than the volume threshold, storing the compressed task data in an application sandbox;
acquiring a storage path corresponding to the compressed task data in the application sandbox;
and constructing an entity class based on the storage path and the compressed task data, converting the entity class into a binary stream by calling a binary stream conversion interface, and carrying out serialization processing on the binary stream by calling a serialization method.
The task execution method according to the embodiment of the present application, before the terminal device enters the offline working mode, further includes:
judging whether the terminal equipment has been manually started to the off-line working mode;
if the offline working mode is not manually started, monitoring the throughput of the terminal equipment in real time;
and when the throughput is smaller than a throughput threshold value, controlling the terminal equipment to automatically enter the offline working mode.
The task execution method according to the embodiment of the present application, before the terminal device enters the offline working mode, further includes:
respectively acquiring a first task list to be executed in a server and a second task list to be executed in a local cache from the server and the local cache of the terminal equipment;
comparing the first task list to be executed with the second task list to be executed;
and adding the tasks to be executed which exist in the first task list to be executed and do not exist in the second task list to be executed to the second task list to enable the terminal equipment to execute the tasks according to the second task list to be executed.
The task execution method according to the embodiment of the present application, before the terminal device enters the online working mode, further includes:
judging whether the terminal equipment is manually closed to the off-line working mode or not;
if the offline working mode is not manually closed, monitoring the throughput of the terminal equipment in real time;
and when the throughput is greater than or equal to a throughput threshold value, controlling the terminal equipment to automatically enter the online working mode.
The task execution method according to the embodiment of the present application, before uploading the recovered offline task data to the target, further includes:
judging whether the online working mode is manually entered;
if the terminal equipment enters the WiFi environment manually, judging whether the throughput of the terminal equipment in the WiFi environment is smaller than a throughput threshold value;
if the current throughput is less than the throughput threshold, sending out prompt information of insufficient current throughput to remind a user of uploading the offline task data to the target end by utilizing the self flow of the terminal equipment, and/or reminding the user of continuously waiting until the WiFi environment is stable to upload the offline task data to the target end.
The task execution method according to the embodiment of the application further includes:
judging whether the off-line task data is successfully uploaded to the target end;
if the uploading to the target end is not successful, recording the uploading error times;
when the uploading error frequency is smaller than a frequency threshold value, returning to the step of uploading the recovered offline task data to a target end;
and when the uploading error frequency is more than or equal to the frequency threshold value, stopping uploading the off-line task data to the target end, and sending prompt information of uploading failure.
In a second aspect, an embodiment of the present application further provides a task execution device, where the task execution device includes:
the serialization module is used for carrying out serialization processing on offline task data generated by the terminal equipment in an offline working mode when the terminal equipment enters the offline working mode so as to obtain serialized task data;
the data storage module is used for storing the serialized task data in the terminal equipment;
the deserializing module is used for deserializing the serialized task data stored in the terminal equipment when the terminal equipment enters an online working mode so as to restore the serialized task data into the offline task data;
and the data uploading module is used for uploading the recovered offline task data to a target end.
In a third aspect, an embodiment of the present application further provides a terminal device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the task execution method according to the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides a readable storage medium, which stores a computer program, where the computer program, when executed on a processor, performs the task execution method according to the embodiment of the present application.
In the application, when a terminal device enters an offline working mode, offline task data generated by the terminal device in the offline working mode are serialized to obtain serialized task data; storing the serialized task data in the terminal equipment; when the terminal equipment enters an online working mode, performing deserialization processing on the serialized task data stored in the terminal equipment so as to restore the serialized task data to the offline task data; and uploading the recovered offline task data to a target end. On one hand, offline task data are stored in the terminal equipment after the terminal equipment enters an offline working mode when the network is disconnected or the network is poor, and the offline task data are uploaded when the terminal equipment is online, so that the working efficiency of network-dependent workers can be effectively improved, and the normal operation of the network-dependent workers is ensured; on the other hand, through serialization processing, the leakage or the loss of off-line task data can be effectively avoided, and the data safety is ensured.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a flowchart illustrating a task execution method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an offline operating mode entering manner in a task execution method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a task list obtaining manner in a task execution method according to an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an online work mode entering manner in a task execution method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a network environment determination manner in a task execution method according to an embodiment of the present application;
fig. 6 is a schematic flow chart illustrating a fault tolerant manner in a task execution method according to an embodiment of the present application;
fig. 7 shows a schematic structural diagram of a task execution device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
An embodiment of the present application provides a task execution method, which is applied to a terminal device, and can keep working normally when the terminal device is disconnected or in a poor network environment, so as to improve the working efficiency of a user.
For example, referring to fig. 1, the task execution method includes the following steps S100 to S400:
step S100, when a terminal device enters an offline working mode, performing serialization processing on offline task data generated by the terminal device in the offline working mode to obtain serialized task data.
However, directly serializing the offline task data may result in too long serialization processing time and excessive time occupation, and the serialized task data obtained after serialization processing occupies too much memory.
In this embodiment, in order to avoid too long serialization processing time and too much memory occupied by the serialized task data, an implementation manner of the serialization processing process is provided, and offline task data is compressed to obtain compressed task data; judging whether the volume of the compressed task data is smaller than a volume threshold value or not; if the volume is larger than or equal to the volume threshold, returning to the step of compressing the offline task data to obtain compressed task data; if the volume is smaller than the volume threshold, storing the compressed task data in an application sandbox; acquiring a storage path corresponding to the compressed task data in the application sandbox; and constructing an entity class based on the storage path and the compressed task data, converting the entity class into a binary stream by calling a binary stream conversion interface, and carrying out serialization processing on the binary stream by calling a serialization method.
Illustratively, the binary stream conversion interface may be a paretable interface, which may be specifically expressed as:
public class Bean implements Parcelable{
private List<String>files;
private String text;
}
the file set stores storage paths corresponding to compressed task data, the text field stores compressed task data, the parallel interface converts entity classes including the storage paths and the compressed task data into binary streams, and the binary streams are subjected to serialization processing by calling a serialization method to obtain files of the corresponding type of the 'bat'.
It can be understood that, in the embodiment, by compressing the offline task data and performing serialization processing on the compressed task data smaller than the volume threshold, the serialization processing time can be shortened, and the memory occupied by the serialized task data can be reduced.
And step S200, storing the serialized task data in the terminal equipment.
The serialized task data (which can be a bat type file) obtained through serialization processing is stored in the terminal equipment, the serialized task data cannot be used even if being acquired by other equipment, and can be deserialized into java entities only in corresponding application, so that the leakage or loss of offline task data can be effectively avoided.
Step S300, when the terminal equipment enters an online working mode, deserializing the serialized task data stored in the terminal equipment so as to restore the serialized task data to the offline task data.
It can be understood that the data serialized by the terminal device can be restored to the original offline task data only after being deserialized by the terminal device, and therefore when the terminal device enters the online working mode, the serialized task data stored in the terminal device can be deserialized to restore the serialized task data to the offline task data.
For example, the bat type file obtained after the serialization processing has information such as a packet name, and after the bat type file is subjected to the deserialization processing, the packet name is checked when the bat type file is recovered to the offline task data, if the packet name is not aligned, the bat type file cannot be recovered to the initial offline task data, and further information in a files set and a text field cannot be obtained, so even if other equipment obtains the serialized task data, the content of the opened file is binary messy code and cannot be normally used.
And step S400, uploading the recovered offline task data to a target end.
And uploading the recovered off-line task data to a target end, so as to ensure that the work of the user can be normally carried out.
In this embodiment, when a terminal device enters an offline working mode, performing serialization processing on offline task data generated by the terminal device in the offline working mode to obtain serialized task data; storing the serialized task data in the terminal equipment; when the terminal equipment enters an online working mode, performing deserialization processing on the serialized task data stored in the terminal equipment so as to restore the serialized task data to the offline task data; and uploading the recovered offline task data to a target end. On one hand, the embodiment realizes that the offline task data is stored in the terminal equipment after the terminal equipment enters the offline working mode when the network is disconnected or the network is poor, and the offline task data is uploaded when the terminal equipment is online, so that the working efficiency of network-dependent workers can be effectively improved, and the normal operation of the work can be ensured; on the other hand, through serialization processing, the leakage or the loss of off-line task data can be effectively avoided, and the data safety is ensured.
Example 2
Referring to fig. 2, the task execution method according to the second embodiment of the present application further includes, before the step S100, steps S10 to S30:
step S10, determining whether the terminal device has been manually turned on the offline operating mode.
And step S20, if the off-line working mode is not manually started, monitoring the throughput of the terminal equipment in real time.
And step S30, when the throughput is smaller than a throughput threshold, controlling the terminal device to automatically enter the offline working mode.
It can be understood that, in this embodiment, a terminal device is provided to support manual entering of an offline working mode, if the terminal device manually enters the offline working mode, a user wants to enter the offline working mode by the terminal device (for example, during a network maintenance period, during a company offline period, and the like), at this time, the terminal device enters the offline working mode, and if the terminal device does not manually start the offline working mode, the terminal device needs to monitor a network environment where the terminal device is located by monitoring throughput of the terminal device in real time, so that the terminal device can automatically enter the offline working mode under a condition of poor network environment or network disconnection, and then normally works under the offline working mode, and thus, the terminal device is prevented from not entering the offline working mode under a condition of poor network environment or network disconnection, and working failure is avoided.
Example 3
Referring to fig. 3, a task execution method according to a third embodiment of the present application further includes, before step S100:
step S40, respectively obtaining the first to-be-executed task list in the server and the second to-be-executed task list in the local cache from the server and the local cache of the terminal device.
Step S50, comparing the first to-be-executed task list and the second to-be-executed task list.
Step S60, adding the to-be-executed task that exists in the first to-be-executed task list and does not exist in the second to-be-executed task list to the second to-be-executed task list, so that the terminal device executes the task according to the second to-be-executed task list.
In this embodiment, the terminal device obtains the task from the server, and needs to ensure consistency between a first to-be-executed task list in the server and a second to-be-executed task list in a local cache of the terminal device, so as to ensure that when the terminal device enters an offline working mode, the terminal device can continue to execute the task based on the second to-be-executed task list in the local cache, and thus continuity of a task execution process can be ensured to the greatest extent.
Example 4
Referring to fig. 4, a task execution method according to a fourth embodiment of the present application further includes, before step S300:
step S210, determining whether the terminal device has been manually turned off the offline operating mode.
And step S220, if the off-line working mode is not manually closed, monitoring the throughput of the terminal equipment in real time.
And step S230, when the throughput is greater than or equal to a throughput threshold, controlling the terminal equipment to automatically enter the online working mode.
It can be understood that, in this embodiment, a terminal device is provided to support a manual offline-closing working mode, if the terminal device is in the manual offline-closing working mode, the terminal device automatically enters an online mode, and if the terminal device is not in the manual offline working mode, the terminal device needs to monitor a network environment where the terminal device is located by monitoring throughput of the terminal device in real time, so that the terminal device can automatically enter the online working mode under the condition that the network environment is stable, and further, data uploading work can be performed in time under the online working mode, thereby ensuring working efficiency.
Example 5
Referring to fig. 5, a task execution method according to a fifth embodiment of the present application further includes, before step S400:
step S310, judging whether the online working mode is manually entered.
Step S320, if the manual entry is made, determining whether the throughput of the terminal device in the WiFi environment is less than a throughput threshold.
Step S330, if the throughput is smaller than the throughput threshold, sending out prompt information of insufficient throughput so as to remind a user to upload the offline task data to the target end by using the self flow of the terminal equipment and/or remind the user to continuously wait until the WiFi environment is stable and upload the offline task data to the target end.
It can be understood that, in this embodiment, if the online working mode is a manual entry mode, that is, the offline mode of the terminal device is manually turned off, it is determined whether the current network environment is good or not, that is, whether data uploading is supported or not, according to the throughput of the terminal device in the WiFi environment, so that when the throughput of the terminal device in the WiFi environment is smaller than a throughput threshold, a prompt message indicating that the current throughput is insufficient is sent, so as to prompt the user to upload offline task data to the target end by using the own flow of the terminal device, and/or prompt the user to continue to wait until the WiFi environment is stable to upload the offline task data to the target end.
Example 6
Referring to fig. 6, a sixth embodiment of the present application provides a task execution method, after step S400, further including:
step S500, judging whether the off-line task data is successfully uploaded to the target terminal.
And step S600, if the uploading to the target terminal is not successful, recording the uploading error times.
Step S700, determining whether the error frequency is less than a frequency threshold.
And returning to the step S400 when the uploading error frequency is less than the frequency threshold, executing the step S800 when the uploading error frequency is more than or equal to the frequency threshold, stopping uploading the offline task data to the target terminal, and sending prompt information of uploading failure.
It can be understood that, in this embodiment, a fault tolerant technique is provided, that is, when the number of times of the uplink transmission error is smaller than the number threshold, the step of uploading the recovered offline task data to the target end is returned, so that an uploading abnormality caused by an accidental error is avoided, and the uploading efficiency is ensured.
Example 7
Referring to fig. 7, a seventh embodiment of the present application provides a task performing device 10, including: the device comprises a serialization module 11, a data storage module 12, an deserialization module 13 and a data uploading module 14.
The serialization module 11 is configured to perform serialization processing on offline task data generated by the terminal device in an offline working mode when the terminal device enters the offline working mode, so as to obtain serialized task data; a data storage module 12, configured to store the serialized task data in the terminal device; the deserializing module 13 is configured to perform deserializing processing on the serialized task data stored in the terminal device when the terminal device enters an online working mode, so as to restore the serialized task data to the offline task data; and the data uploading module 14 is configured to upload the recovered offline task data to a target end.
In this embodiment, the task execution device 10 is configured to execute the task execution method according to the above embodiment through the cooperative use of the serialization module 11, the data storage module 12, the deserialization module 13, and the data uploading module 14, and the implementation scheme and the beneficial effect related to the above embodiment are also applicable to this embodiment, and are not described herein again.
Example 8
An eighth embodiment of the present application provides a terminal device, which includes a memory and a processor, where the memory stores a computer program, and the computer program executes the task execution method according to the embodiment of the present application when running on the processor.
Example 9
In a ninth embodiment of the present application, a readable storage medium is provided, which stores a computer program, and the computer program executes the task execution method according to the above embodiment of the present application when running on a processor.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A method of task execution, the method comprising:
when a terminal device enters an offline working mode, performing serialization processing on offline task data generated by the terminal device in the offline working mode to obtain serialized task data;
storing the serialized task data in the terminal equipment;
when the terminal equipment enters an online working mode, performing deserialization processing on the serialized task data stored in the terminal equipment so as to restore the serialized task data to the offline task data;
and uploading the recovered offline task data to a target end.
2. The task execution method according to claim 1, wherein the performing the serialization processing on the offline task data generated by the terminal device in the offline operating mode includes:
compressing the offline task data to obtain compressed task data;
judging whether the volume of the compressed task data is smaller than a volume threshold value or not;
if the volume is larger than or equal to the volume threshold, returning to the step of compressing the offline task data to obtain compressed task data;
if the volume is smaller than the volume threshold, storing the compressed task data in an application sandbox;
acquiring a storage path corresponding to the compressed task data in the application sandbox;
and constructing an entity class based on the storage path and the compressed task data, converting the entity class into a binary stream by calling a binary stream conversion interface, and carrying out serialization processing on the binary stream by calling a serialization method.
3. The task execution method of claim 1, further comprising, before the terminal device enters the offline operating mode:
judging whether the terminal equipment has been manually started to the off-line working mode;
if the offline working mode is not manually started, monitoring the throughput of the terminal equipment in real time;
and when the throughput is smaller than a throughput threshold value, controlling the terminal equipment to automatically enter the offline working mode.
4. The task execution method of claim 1, further comprising, before the terminal device enters the offline operating mode:
respectively acquiring a first task list to be executed in a server and a second task list to be executed in a local cache from the server and the local cache of the terminal equipment;
comparing the first task list to be executed with the second task list to be executed;
and adding the tasks to be executed which exist in the first task list to be executed and do not exist in the second task list to be executed to the second task list to enable the terminal equipment to execute the tasks according to the second task list to be executed.
5. The task execution method of claim 1, further comprising, before the terminal device enters an online operating mode:
judging whether the terminal equipment is manually closed to the off-line working mode or not;
if the offline working mode is not manually closed, monitoring the throughput of the terminal equipment in real time;
and when the throughput is greater than or equal to a throughput threshold value, controlling the terminal equipment to automatically enter the online working mode.
6. The task execution method according to claim 1, further comprising, before uploading the recovered offline task data to a target end:
judging whether the online working mode is manually entered;
if the terminal equipment enters the WiFi environment manually, judging whether the throughput of the terminal equipment in the WiFi environment is smaller than a throughput threshold value;
if the current throughput is less than the throughput threshold, sending out prompt information of insufficient current throughput to remind a user of uploading the offline task data to the target end by utilizing the self flow of the terminal equipment, and/or reminding the user of continuously waiting until the WiFi environment is stable to upload the offline task data to the target end.
7. The task execution method according to any one of claims 1 to 6, further comprising:
judging whether the off-line task data is successfully uploaded to the target end;
if the uploading to the target end is not successful, recording the uploading error times;
when the uploading error frequency is smaller than a frequency threshold value, returning to the step of uploading the recovered offline task data to a target end;
and when the uploading error frequency is more than or equal to the frequency threshold value, stopping uploading the off-line task data to the target end, and sending prompt information of uploading failure.
8. A task execution apparatus, characterized in that the apparatus comprises:
the serialization module is used for carrying out serialization processing on offline task data generated by the terminal equipment in an offline working mode when the terminal equipment enters the offline working mode so as to obtain serialized task data;
the data storage module is used for storing the serialized task data in the terminal equipment;
the deserializing module is used for deserializing the serialized task data stored in the terminal equipment when the terminal equipment enters an online working mode so as to restore the serialized task data into the offline task data;
and the data uploading module is used for uploading the recovered offline task data to a target end.
9. A terminal device, characterized in that it comprises a memory and a processor, said memory storing a computer program which, when run on said processor, performs the task execution method of any one of claims 1 to 7.
10. A readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the task execution method of any one of claims 1 to 7.
CN202111526055.2A 2021-12-14 2021-12-14 Task execution method, device, terminal equipment and readable storage medium Active CN114257637B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111526055.2A CN114257637B (en) 2021-12-14 2021-12-14 Task execution method, device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111526055.2A CN114257637B (en) 2021-12-14 2021-12-14 Task execution method, device, terminal equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114257637A true CN114257637A (en) 2022-03-29
CN114257637B CN114257637B (en) 2023-12-08

Family

ID=80792174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111526055.2A Active CN114257637B (en) 2021-12-14 2021-12-14 Task execution method, device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114257637B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787511A (en) * 2004-12-07 2006-06-14 联想(北京)有限公司 Method and system for realizing off-line application of computer
CN103458000A (en) * 2013-08-07 2013-12-18 广东电网公司佛山供电局 Terminal data synchronizing system and method
WO2018054217A1 (en) * 2016-09-21 2018-03-29 中国科学院信息工程研究所 Method, system, and apparatus for monitoring network traffic and generating summary
WO2020037919A1 (en) * 2018-08-22 2020-02-27 平安科技(深圳)有限公司 User behavior recognition method and device employing prediction model
CN111897846A (en) * 2020-07-31 2020-11-06 平安普惠企业管理有限公司 Cache data verification method, device, equipment and storage medium
CN111898055A (en) * 2020-08-10 2020-11-06 冯帆 Screen recording and playback method for browser webpage
CN112256989A (en) * 2020-10-21 2021-01-22 平安科技(深圳)有限公司 Page loading method and device based on offline package, terminal equipment and storage medium
CN112581233A (en) * 2020-12-24 2021-03-30 北京顺达同行科技有限公司 Method, device, equipment and computer-readable storage medium for order offline operation
CN112786188A (en) * 2021-02-05 2021-05-11 北京致医健康信息技术有限公司 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium
CN112948393A (en) * 2021-03-26 2021-06-11 山东浪潮通软信息科技有限公司 Web application program service data processing method, equipment and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787511A (en) * 2004-12-07 2006-06-14 联想(北京)有限公司 Method and system for realizing off-line application of computer
CN103458000A (en) * 2013-08-07 2013-12-18 广东电网公司佛山供电局 Terminal data synchronizing system and method
WO2018054217A1 (en) * 2016-09-21 2018-03-29 中国科学院信息工程研究所 Method, system, and apparatus for monitoring network traffic and generating summary
WO2020037919A1 (en) * 2018-08-22 2020-02-27 平安科技(深圳)有限公司 User behavior recognition method and device employing prediction model
CN111897846A (en) * 2020-07-31 2020-11-06 平安普惠企业管理有限公司 Cache data verification method, device, equipment and storage medium
CN111898055A (en) * 2020-08-10 2020-11-06 冯帆 Screen recording and playback method for browser webpage
CN112256989A (en) * 2020-10-21 2021-01-22 平安科技(深圳)有限公司 Page loading method and device based on offline package, terminal equipment and storage medium
CN112581233A (en) * 2020-12-24 2021-03-30 北京顺达同行科技有限公司 Method, device, equipment and computer-readable storage medium for order offline operation
CN112786188A (en) * 2021-02-05 2021-05-11 北京致医健康信息技术有限公司 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium
CN112948393A (en) * 2021-03-26 2021-06-11 山东浪潮通软信息科技有限公司 Web application program service data processing method, equipment and medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
AOA SALEM等: ""Classification of transaction models in mobile database system"", 《IEEE》 *
徐健: ""基于差分算法的离线资源更新平台的研究与实现"", 《中国优秀硕士学位论文全文数据库》 *
赵冬;: "序列化技术的综述和展望", 电脑与电信, no. 09 *
郭文亮;: "Hadoop环境下医学影像存储的设计", 中国医疗设备, no. 09 *

Also Published As

Publication number Publication date
CN114257637B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN108665239B (en) Workflow processing method, workflow processing device, computer equipment and storage medium
CN105871587A (en) Log uploading method and device
CN109783014B (en) Data storage method and device
CN104391716A (en) Plug-in-based application program implementing method and device
CN110727581A (en) Collapse positioning method and electronic equipment
CN114647519A (en) Data transmission method and device between native platform and Flutter platform and storage medium
US9772892B2 (en) Recovery method for portable touch-control device and portable touch-control device using the same
CN114257637B (en) Task execution method, device, terminal equipment and readable storage medium
CN110879756A (en) Method and device for processing abnormal cooperation process, computer equipment and storage medium
CN104536892A (en) Software online debugging method and system
CN112395194B (en) Method and device for accessing test platform
CN111414270B (en) Exception handling method and device
CN105630554B (en) A kind of reloading method and user terminal of third-party application
US10872019B2 (en) Load and save recovery partition using mobile device
CN110837431A (en) Service control method, service control device, computer equipment and computer-readable storage medium
CN117033084B (en) Virtual machine backup method and device, electronic equipment and storage medium
CN105320853B (en) Information monitoring method and device and terminal
CN111324368A (en) Data sharing method and server
CN113568719B (en) Service fault processing method and device, electronic equipment and storage medium
CN116954869B (en) Task scheduling system, method and equipment
CN113076236A (en) Page loading monitoring method and device
CN116107609A (en) Configuration file management method and device, electronic equipment and storage medium
CN111367666A (en) Data reading and writing method and system
CN114756515A (en) File merging method and device, electronic equipment and storage medium
CN114398189A (en) Method and device for returning analog interface data, 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
GR01 Patent grant
GR01 Patent grant