Search

CN-121985357-A - Task processing method

CN121985357ACN 121985357 ACN121985357 ACN 121985357ACN-121985357-A

Abstract

The application provides a task processing method which is applied to first equipment and comprises the steps of obtaining a target task if electric quantity of the first equipment is lower than a target electric quantity threshold value, determining a first parameter, wherein the first parameter characterizes the capacity of the first equipment for executing the target task, and transmitting the target task to second equipment if the first parameter is smaller than the first parameter threshold value.

Inventors

  • ZHANG LIANG
  • GAO BIN

Assignees

  • 联想(北京)有限公司

Dates

Publication Date
20260505
Application Date
20251231

Claims (10)

  1. 1. A task processing method is applied to a first device and comprises the following steps: if the electric quantity of the first equipment is lower than a target electric quantity threshold value, acquiring a target task; determining a first parameter, wherein the first parameter characterizes the capability of the first device to execute the target task; and if the first parameter is smaller than a first parameter threshold value, transmitting the target task to second equipment.
  2. 2. The method of claim 1, the target task characterization performing a target operation upon detecting that a target condition is met; The transmitting the target task to a second device if the first parameter is less than a first parameter threshold includes transmitting task information of the target task to the second device in response to the first parameter being less than a first parameter threshold, such that the second device creates the target task based on the task information.
  3. 3. The method of claim 1, the target task being a task being performed on the first device; the transmitting the target task to the second device if the first parameter is less than a first parameter threshold includes transmitting task information of the target task to the second device in response to the first parameter being less than the first parameter threshold, so that the second device executes the target task based on the task information.
  4. 4. The method of claim 1, the transmitting the target task to a second device, comprising: obtaining a candidate device list; determining a second device meeting an executable condition from the candidate device list based on the task information of the target task, wherein the executable condition characterizes that the second device can execute the target task; And establishing connection with the second device and sending the target task to the second device.
  5. 5. The method of claim 4, the determining, in the candidate device list, a second device that satisfies an executable condition, comprising: obtaining attribute information corresponding to each device in the candidate device list; Determining second parameters corresponding to the devices based on the attribute information corresponding to the devices, wherein the second parameters characterize the capability of the devices for executing the target task; And determining a second device meeting the executable condition from a candidate device list based on the execution condition of the target task and the second parameters corresponding to the devices.
  6. 6. The method of claim 2, the method further comprising: Responding to the first parameter of the first equipment being larger than a second parameter threshold value, and obtaining a transmission record corresponding to the target task, wherein the second parameter threshold value is larger than the first parameter threshold value; If the target condition is not detected to be met to execute the target operation, sending a second instruction to the second device, so that the second device deletes the target task based on the second instruction; and if the target task is not executed in the second device, executing the target task in the first device.
  7. 7. The method of claim 1, the acquiring a target task comprising: Acquiring configuration information corresponding to a transferable first task; and determining that the configuration information is configured as a target task representing the transferable task based on the configuration information corresponding to each first task.
  8. 8. The method of claim 1, the method further comprising: The method comprises the steps of responding to the first parameter being smaller than a set first parameter threshold value, displaying a first control on the first device, wherein the first control is used for receiving an interaction instruction, and the interaction instruction is used for transferring the target task; And in response to receiving the interaction instruction for the first control, transmitting the target task to a second device so that the second device executes the target task.
  9. 9. A method according to claim 3, the method further comprising: obtaining execution conditions corresponding to at least two target tasks respectively; determining at least two second devices corresponding to the at least two target tasks respectively based on the execution conditions and attribute information of the plurality of second devices; And respectively transmitting the at least two target tasks to corresponding second equipment so as to enable each second equipment to execute the corresponding target tasks.
  10. 10. A task processing device, applied to a first apparatus, comprising: the acquisition module is used for acquiring a target task if the electric quantity of the first equipment is lower than a target electric quantity threshold value; The system comprises a determining module, a first parameter determining module and a second parameter determining module, wherein the first parameter characterizes the capability of the first equipment to execute the target task; And the processing module is used for transmitting the target task to the second equipment if the first parameter is smaller than a first parameter threshold value.

Description

Task processing method Technical Field The application relates to the technical field of computers, in particular to a task processing method. Background At present, when the electric quantity of the electronic equipment is exhausted, the executing task is often interrupted, and a plurality of inconveniences are brought to a user. For example, a smartphone may automatically shut down when there is insufficient power, causing the user to miss important reminders, meetings, or navigation information. Users often require manual intervention to recover or transfer tasks, resulting in task execution discontinuities and data loss. Therefore, the current task processing method has the problems of discontinuous task execution and data loss caused by insufficient electric quantity of equipment. Disclosure of Invention The embodiment of the application provides a task processing method. The application provides a task processing method which is applied to first equipment and comprises the steps of obtaining a target task if electric quantity of the first equipment is lower than a target electric quantity threshold value, determining a first parameter, wherein the first parameter characterizes the capacity of the first equipment for executing the target task, and transmitting the target task to second equipment if the first parameter is smaller than the first parameter threshold value. According to one embodiment of the application, the target task characterization performs a target operation when the target condition is detected to be met, and the transmitting the target task to a second device if the first parameter is smaller than a first parameter threshold value comprises transmitting task information of the target task to the second device in response to the first parameter being smaller than the first parameter threshold value, so that the second device creates the target task based on the task information. According to one embodiment of the application, the target task is a task being executed on the first device, and the transmitting the target task to the second device if the first parameter is smaller than a first parameter threshold value comprises transmitting task information of the target task to the second device in response to the first parameter being smaller than the first parameter threshold value, so that the second device executes the target task based on the task information. According to one embodiment of the application, the method for transmitting the target task to the second device comprises the steps of obtaining a candidate device list, determining the second device meeting executable conditions in the candidate device list based on task information of the target task, wherein the executable conditions characterize the second device to execute the target task, establishing connection with the second device, and sending the target task to the second device. According to one embodiment of the application, the method for determining the second equipment meeting the executable condition in the candidate equipment list comprises the steps of obtaining attribute information corresponding to each equipment in the candidate equipment list, determining second parameters corresponding to each equipment based on the attribute information corresponding to each equipment, wherein the second parameters represent the capacity of the equipment for executing the target task, and determining the second equipment meeting the executable condition from the candidate equipment list based on the execution condition of the target task and the second parameters corresponding to each equipment. According to one embodiment of the application, the method further comprises the steps of responding to the fact that a first parameter of the first device is larger than a second parameter threshold, obtaining a transmission record corresponding to the target task, wherein the second parameter threshold is larger than the first parameter threshold, the transmission record at least comprises device information for receiving the target task, sending a second instruction to the second device to enable the second device to delete the target task based on the second instruction if the target condition is not detected to be met to execute the target operation, and executing the target task on the first device if the target task is not completed on the second device. According to one embodiment of the application, the method comprises the steps of obtaining configuration information corresponding to transferable first tasks, and determining that the configuration information is configured to represent the target task of the transferable tasks based on the configuration information corresponding to each first task. According to one embodiment of the application, the method further comprises the steps of responding to the fact that the first parameter is smaller than a set first parameter threshold value, displaying a first control