CN117609170A - Information processing method, device, equipment and storage medium - Google Patents

Information processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117609170A
CN117609170A CN202311651219.3A CN202311651219A CN117609170A CN 117609170 A CN117609170 A CN 117609170A CN 202311651219 A CN202311651219 A CN 202311651219A CN 117609170 A CN117609170 A CN 117609170A
Authority
CN
China
Prior art keywords
file
result information
target
server
program
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
CN202311651219.3A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311651219.3A priority Critical patent/CN117609170A/en
Publication of CN117609170A publication Critical patent/CN117609170A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • G06F16/1767Concurrency control, e.g. optimistic or pessimistic approaches
    • G06F16/1774Locking methods, e.g. locking methods for file systems allowing shared and concurrent access to files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides an information processing method, an information processing device, information processing equipment and a storage medium. The method comprises the following steps: receiving a job execution instruction sent by a server, and analyzing the job execution instruction to determine a target program; starting a target program to execute a pre-configured business operation, and feeding back result information containing the running state of the target program to a server; if the failure of sending the result information is detected, the result information is written into the locked file, and after the writing is completed, the file is stored and the lock of the file is released; locking the file at intervals of preset time; if the file is successfully locked, reading result information, and sending the result information to a server; if the result information is detected to be successfully sent, deleting the file and unlocking the file. According to the method, the success rate of sending the result information can be improved through multiple times of sending, the server can receive the running state of the target program in time, the file where the information is located is locked before the information is written and read, and the monopolization of the file can be ensured.

Description

Information processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to an information processing method, an apparatus, a device, and a storage medium.
Background
With the rapid increase of access users of a dispatching system, the network flow rate between a client and a server is high, and the risks of incapability of initiating connection, sending interruption or finding an error of the client caused by network fault fluctuation, related service crash paralysis and the like are increased due to the difference of the used application software/hardware environments.
At present, when the problem is encountered, the client side cannot keep the result of executing the job, and only can wait for the manual intervention of related staff, the job flow state can be continuously transferred and executed, the timeliness of the data processing task is affected, and the operation and maintenance burden is increased.
Disclosure of Invention
The application provides an information processing method, an information processing device, information processing equipment and a storage medium, which are used for solving the problem that the timeliness is affected by manual intervention processing because the result of executing a job cannot be sent to a server side due to network fault fluctuation.
In a first aspect, the present application provides an information processing method, including:
receiving a job execution instruction sent by a server, and analyzing the job execution instruction to determine a target program;
starting the target program to execute a pre-configured business operation, and feeding back result information containing the running state of the target program to the server;
if the failure of sending the result information is detected, writing the result information into the locked file, and after the writing is completed, storing the file and unlocking the file;
locking the file at intervals of preset time;
if the file is successfully locked, the result information is read, and the result information is sent to the server;
and if the result information is detected to be successfully sent, deleting the file and unlocking the file.
Optionally, the method further comprises:
and if the failure of sending the result information is detected, unlocking the file, and executing the step of locking the file at preset intervals.
Optionally, the parsing the job execution instruction to determine the target program includes:
analyzing the job execution instruction, acquiring path information and a program identifier of a program to be started, and determining the program corresponding to the program identifier as the target program;
the starting the target program to execute the preconfigured service operation comprises the following steps:
and starting the target program to execute the preconfigured service operation based on the path information and the program identification.
Optionally, before writing the result information into the locked file, the method further includes:
creating an empty folder, adding a file lock to the empty folder, and performing the step of writing the result information to the locked file.
Optionally, the method further comprises:
reading a file list, selecting one file from a plurality of stored files based on the file list as a target file, and locking the target file, wherein the result information in the target file is target result information; recording file identifications of a plurality of files in the file list;
if the target file is successfully locked, the target result information is read, and the target result information is sent to the server;
if the successful sending of the target result information is detected, deleting the target file and unlocking the target file;
and if the failure of sending the target result information is detected, selecting the next file from the stored files to serve as a target file based on the file list, and executing the step of locking the target file.
Optionally, the selecting a file from the saved files based on the file list as the target file includes:
deleting the files based on the naming, the types and the modification time of the files corresponding to the file identifiers so as to delete the files which do not meet the naming, the types and the modification time requirements;
deleting the file identification of the deleted file from the file list to update the file list, and selecting one file from the plurality of files as a target file based on the order of the file identifications in the updated file list.
Optionally, the method further comprises:
and if the locking of the target file is overtime, selecting the next file from the stored files to serve as the target file based on the file list, and executing the step of locking the target file.
In a second aspect, the present application provides an information processing apparatus including:
a receiving unit for receiving the job execution instruction sent by the server,
the processing unit is used for analyzing the job execution instruction to determine a target program;
the processing unit is also used for starting the target program to execute the preconfigured service operation and feeding back the result information containing the running state of the target program to the server;
the processing unit is also used for writing the result information into the locked file if the failure of sending the result information is detected, and storing the file and unlocking the file after the writing is completed;
the processing unit is also used for locking the file at intervals of preset time;
the processing unit is further used for reading the result information if the file is successfully locked;
the receiving unit is also used for sending the result information to the server;
and the processing unit is also used for deleting the file and unlocking the file if the result information is detected to be successfully sent.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a transceiver;
a processor, memory, and transceiver circuitry interconnect;
the memory stores computer-executable instructions;
a transceiver for transceiving data;
the processor executes computer-executable instructions stored in the memory to cause the processor to perform the method as described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method according to the first aspect when executed by a processor.
The information processing method, the information processing device, the information processing equipment and the storage medium are used for analyzing the job execution instruction to determine a target program by receiving the job execution instruction sent by the server; starting the target program to execute a pre-configured business operation, and feeding back result information containing the running state of the target program to the server; if the failure of sending the result information is detected, writing the result information into the locked file, and after the writing is completed, storing the file and unlocking the file; locking the file at intervals of preset time; if the file is successfully locked, the result information is read, and the result information is sent to the server; if the result information is detected to be successfully sent, deleting the file and unlocking the file, and sending the result information for multiple times can improve the success rate of sending the result information, so that a server can receive the running state of a target program in time, the file where the information is located is locked before the information is written and read, and the file monopolization can be ensured.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of a network architecture of an information processing method provided in the present application;
FIG. 2 is a schematic flow chart of an information processing method provided in the present application;
FIG. 3 is a schematic flow chart of another information processing method provided in the present application;
FIG. 4 is a schematic diagram of an information processing apparatus according to the present application;
FIG. 5 is a first block diagram of an electronic device for implementing the information processing method of the embodiments of the present application;
fig. 6 is a second block diagram of an electronic device for implementing the information processing method according to the embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
For a clear understanding of the technical solutions of the present application, the prior art solutions will be described in detail first.
With the rapid increase of access users of a dispatching system, the network flow rate between a client and a server is high, and the risks of incapability of initiating connection, sending interruption or finding an error of the client caused by network fault fluctuation, related service crash paralysis and the like are increased due to the difference of the used application software/hardware environments.
At present, when the problem is encountered, the client side cannot keep the result of executing the job, and only can wait for the manual intervention of related staff, the job flow state can be continuously transferred and executed, the timeliness of the data processing task is affected, and the operation and maintenance burden is increased.
Therefore, aiming at the problems that the result of executing the operation cannot be sent to the server side due to network fault fluctuation in the prior art and timeliness is influenced by manual intervention processing, the inventor finds out in the study that the job execution instruction sent by the server side is received, the job execution instruction is analyzed to determine a target program, the target program is started to execute the preset business operation, the result information containing the running state of the target program is returned to the server side, if the failure of sending the result information is detected, the result information is written into a locked file, the file information is saved after the completion of writing, the lock of the file is released, the file is locked at preset intervals, if the successful locking of the file is detected, the result information is read, the result information is sent to the server side, if the successful sending of the result information is detected, the file is deleted, the lock of the file is released, the result information is written into the file under the condition that the sending of the result information containing the running state of the target program fails, the result information in the file is resent after the preset time, the success rate of sending the result information can be improved through multiple times, the server side can receive the running state of the target program in time, the file can be locked before the writing information and the read information can be locked.
The inventor proposes the technical solution of the embodiments of the present application based on the inventive findings described above. The following describes a network architecture and an application scenario of the information processing method provided in the embodiments of the present application.
As shown in fig. 1, the network architecture corresponding to the information processing method provided in the embodiment of the present application includes: the system comprises a server 101 and a terminal 102, wherein the server 101 is in communication connection with the terminal 102, the terminal 102 receives a job execution instruction sent by the server 101, and analyzes the job execution instruction to determine a target program; the terminal 102 starts a target program to execute a pre-configured service operation, and feeds back result information containing the running state of the target program to the server 101; if the terminal 102 detects that the sending of the result information fails, the result information is written into the locked file, and after the writing is completed, the file is saved and the lock of the file is released; the terminal 102 locks the file at intervals of preset time; if the file is successfully locked, the terminal 102 reads the result information and sends the result information to the server 101; if the terminal 102 detects that the result information is successfully sent, the file is deleted and the lock of the file is released, the success rate of sending the result information can be improved through multiple times of sending, the server can receive the running state of the target program in time conveniently, the file where the information is located is locked before the information is written and the information is read, and the monopolization of the file can be ensured.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of an information processing method provided in the present application, where the method is applied to an electronic device. Wherein the electronic device may be a digital computer representing various forms. Such as cellular telephones, smart phones, laptops, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. As shown in fig. 2, the method includes:
step 201, receiving a job execution instruction sent by a server, and analyzing the job execution instruction to determine a target program.
In this embodiment, the electronic device receives a job execution instruction sent by the server, where the job execution instruction is triggered when the server makes the program execute a preset service operation, for example, makes the program calculate an aggregate of the import and the export in the deposit system, and needs to perform the aggregate of the import and the export in the deposit system when 23 points are taken every day, and the server sends the job execution instruction to the electronic device corresponding to the deposit system. The electronic equipment receives the job execution instruction sent by the server side, and analyzes the job execution instruction to determine the target program.
Step 202, starting the target program to execute the preconfigured service operation, and feeding back the result information containing the running state of the target program to the server.
In this embodiment, the target program is started to execute the preconfigured service operation, the running state of the target program is obtained, the running state is classified as running success or running failure, and the result information including the running state of the target program is returned to the server.
Step 203, if it is detected that the transmission of the result information fails, the result information is written into the locked file, and after the writing is completed, the file is saved and the lock of the file is released.
In this embodiment, whether the result information is successful is detected, if the failure of sending the result information is detected, it is indicated that the electronic device may not initiate tcp/ip connection due to network failure fluctuation, related service breakdown paralysis, etc., so that the result information cannot return to the server side, at this time, the result information is written into a locked file, and the purpose of locking is to be able to monopolize the file, specifically, write binary data of the result information into the file, ensure the integrity of the result information, save the file after the completion of writing, and keep the file to a preset position, where the preset position is used for saving the file, and unlock the file after saving.
Optionally, if the result information is detected to be successfully sent, waiting for receiving, executing and returning a new job execution instruction next time.
Step 204, locking the file at intervals of preset time.
In this embodiment, the preset time is set according to the actual situation, for example, the preset time is set to 1min, and the interval is 1min, so that the file is locked and the file is monopolized.
Step 205, if the file is successfully locked, the result information is read, and the result information is sent to the server.
In this embodiment, if it is determined that the file is successfully locked, the result information in the file is read, and the result information is sent to the server again.
And 206, deleting the file and unlocking the file if the successful transmission of the result information is detected.
In this embodiment, if the successful transmission of the result information is detected, the file is deleted and the lock of the file is released, and after the first transmission failure, the result information can be retransmitted, so that the server can timely receive the running state of the target program.
According to the method and the device, the job execution instruction sent by the server side is received, the job execution instruction is analyzed to determine the target program, the target program is started to execute the preset business operation, the result information containing the running state of the target program is returned to the server side, if the failure of sending the result information is detected, the result information is written into the locked file, the file information is stored after the writing is completed, the locking of the file is released, the preset time is reserved, the file is locked, if the file is successfully locked, the result information is read and sent to the server side, if the success of sending the result information is detected, the file is deleted, the locking of the file is released, under the condition that the sending of the result information containing the running state of the target program fails, the result information in the file is written into the file, and the result information in the file is resent after the preset time, the success rate of sending the result information can be improved through repeated sending, the server side can receive the running state of the target program in time, the file is locked exclusively before the writing information and the reading information are all written.
Fig. 3 is a flow chart of another information processing method provided in the present application, where the method is applied to an electronic device, as shown in fig. 3, and the method includes:
step 301, receiving a job execution instruction sent by the server, and analyzing the job execution instruction to determine a target program.
In this embodiment, a client in the electronic device receives a job execution instruction sent by a server, where the job execution instruction is triggered when the server makes a program execute a preconfigured service operation, for example, makes the program calculate an aggregate of an import and an export in a deposit system, and needs to perform the aggregate of the import and the export in the deposit system when 23 points are taken every day, and the server sends the job execution instruction to the electronic device corresponding to the deposit system. The method comprises the steps that a client of the electronic equipment receives a job execution instruction sent by a server, the client forwards the job execution instruction to a job execution module of the electronic equipment, and the job execution module analyzes the job execution instruction to determine a target program.
In one possible implementation, parsing the job execution instructions to determine the target program includes:
analyzing the job execution instruction, acquiring path information and a program identifier of a program to be started, and determining the program corresponding to the program identifier as a target program.
In this embodiment, a job execution module in the electronic device parses a job execution instruction, obtains path information and a program identifier of a program to be started, and determines a program corresponding to the program identifier as a target program.
Step 302, the target program is started to execute the preconfigured service operation, and the result information including the running state of the target program is fed back to the server.
In this embodiment, a client of the electronic device starts a target program to execute a preconfigured service operation, the client obtains a running state of the target program, the running state is classified as running success or running failure, the client sends result information including the running state of the target program to a job execution module, and the job execution module returns the result information including the running state of the target program to the server.
In one possible implementation, the starting target program performs a preconfigured service operation, including:
and executing the pre-configured business operation by the starting target program based on the path information and the program identification.
In this embodiment, the client of the electronic device starts the target program to execute the preconfigured service operation based on the path information and the program identifier.
Step 303, if it is detected that the transmission of the result information fails, the result information is written into the locked file, and after the writing is completed, the file is saved and the lock of the file is released.
In this embodiment, the job execution module detects whether the result information is successful, if it detects that the result information is failed to be sent, it indicates that the client cannot initiate tcp/ip connection due to network failure fluctuation, related service breakdown paralysis, etc., so that the result information cannot be returned to the server, the result information is written into the locked file, the purpose of locking is to be able to monopolize the file, specifically, binary data of the result information is written into the file, the integrity of the result information is ensured, the file is saved after the writing is completed, and is kept to a preset position, where the preset position is used for saving the file, and the lock of the file is released after the saving.
Optionally, if the result information is detected to be successfully sent, waiting for receiving, executing and returning a new job execution instruction next time.
In one possible implementation, before writing the result information to the locked file, the method further includes:
creating an empty folder, adding a file lock to the empty folder, and performing the step of writing the result information to the locked file.
In this embodiment, an empty folder is created, an exclusive POSIX file lock is added to an empty folder request, and binary data of result information is written into a file, so that the completeness of the result information is ensured.
Step 304, locking the file at intervals of preset time.
In this embodiment, the preset time is set according to the actual situation, for example, the preset time is set to 1min, and the interval is 1min, so that the file is locked and the file is monopolized.
Step 305, if the file is successfully locked, the result information is read, and the result information is sent to the server.
In this embodiment, if it is determined that the file is successfully locked, the result information in the file is read, and the result information is sent to the server again.
And 306, deleting the file and unlocking the file if the successful transmission of the result information is detected.
In this embodiment, if the successful transmission of the result information is detected, the file is deleted and the lock of the file is released, and after the first transmission failure, the result information can be retransmitted, so that the server can timely receive the running state of the target program.
If the failure of sending the result information is detected, the step 307 is to unlock the file, execute the preset time interval, and lock the file.
In this embodiment, if failure in sending the result information is detected, the lock of the file is released, the file is locked after a preset time interval, and the file is sent again, so that the success rate of sending the result information can be improved through multiple times of sending.
Optionally, the method further comprises:
reading a file list, selecting one file from a plurality of stored files based on the file list as a target file, locking the target file, wherein the result information in the target file is target result information; recording file identifications of a plurality of files in a file list; if the target file is successfully locked, reading target result information and sending the target result information to a server; and if the successful sending of the target result information is detected, deleting the target file and unlocking the target file. And if the failure of sending the target result information is detected, selecting the next file from the stored files to serve as a target file based on the file list, and executing the step of locking the target file.
In this embodiment, files which are not successfully transmitted and contain result information are all saved to a preset position, a job response retransmission module of the electronic device scans the preset position, a file list is read, file identifiers of a plurality of files are recorded in the file list, one file is sequentially selected from the saved files to serve as a target file based on the file list, the target file is locked, specifically, an exclusive POSIX file lock is added, and the result information in the target file is target result information; and if the target file is successfully locked, reading target result information, and sending the target result information to the server by the job response retransmission module.
Further, whether the target result information is successfully transmitted is detected, and if the target result information is detected to be successfully transmitted, the target file is deleted and the lock of the target file is released; if the failure of sending the target result information is detected, selecting the next file from the stored sequence of file identifications in the files based on the file list, locking the target file, adding an exclusive POSIX file lock, and sending the target result information in the file to the server.
Optionally, the method further comprises:
if the locking of the target file is overtime, selecting the next file from the stored files as the target file based on the file list.
In this embodiment, the target file is locked, if the target file is locked overtime, the next file is selected for transmission, specifically, the next file is selected as the target file from the file identification sequences of the stored files based on the file list, the target file is locked, and further the target result information is read to attempt to be transmitted again.
In one possible implementation, selecting a file from the saved plurality of files as the target file based on the file list includes:
deleting the files based on the naming, the types and the modification time of the files corresponding to the file identifiers so as to delete the files which do not meet the requirements of the naming, the types and the modification time; the file identification of the deleted file is deleted from the file list to update the file list, and one file is selected from the plurality of files as the target file based on the order of the file identifications in the updated file list.
In this embodiment, files which are not successfully transmitted and contain result information are all saved to a preset position, an operation response retransmission module of the electronic device scans the preset position, reads a file list, deletes the files based on the names of the files corresponding to the file identifiers, the types of the files and the last modification time of the files, specifically, determines files which do not meet the naming requirements, deletes the files which do not meet the naming requirements in the preset position, deletes the file identifiers which do not meet the naming requirements in the file list, and reserves the files which meet the naming requirements and the file identifiers; determining files which do not accord with the file type, deleting the files which do not accord with the file type in a preset position, deleting the files which accord with the file type in a file list, and reserving the files and file identifications which accord with the file type; determining files which do not meet the requirement of the final modification time, deleting the files which do not meet the requirement of the final modification time at preset positions, deleting the file identifiers of the files which do not meet the requirement of the final modification time in a file list, reserving the files which meet the requirement of the final modification time and the file identifiers, deleting the files which do not meet the requirements of naming, types and modification time, deleting the files which are not result information and deleting the files which are past outdated result information, and reserving the files which contain the result information of the running state of the target program in the last period of time. Thereby deleting the file identification of the deleted file from the file list to update the file list, and selecting one file from the plurality of files as the target file based on the order of the file identifications in the updated file list.
Optionally, in order to ensure the persistent operation of the module, the client parent process monitoring module of the electronic device is responsible for monitoring and raising the modules such as executing the job, retransmitting the job and the like, so that after the client parent process is prevented from being restarted, a plurality of job response retransmission modules are started, the new parent process cannot monitor the old modules, a timer is also built in the job response retransmission module to detect the death of the parent process, the timer is shielded during the process of scanning the directory to process the job retransmission file, the blocking waiting is effective, the normal start and exit mechanism of the module is realized, and the robustness and the persistent operation capability of the client are improved.
According to the method and the device, the success rate of sending the result information can be improved through multiple times of sending, the service end can receive the running state of the target program in time, the file where the information is located is locked before the information is written and the information is read, and the monopolization of the file can be ensured.
Fig. 4 is a schematic structural diagram of an information processing apparatus provided in the present application, and as shown in fig. 4, an information processing apparatus 400 provided in the present embodiment includes a receiving unit 401 and a processing unit 402.
The receiving unit 401 is configured to receive a job execution instruction sent by the server. The processing unit 402 is configured to parse the job execution instruction to determine a target program. The processing unit 402 is further configured to start the target program to execute the preconfigured service operation, and feed back the result information including the running state of the target program to the server. The processing unit 402 is further configured to write the result information into the locked file if the failure of sending the result information is detected, save the file and unlock the file after the writing is completed. The processing unit 402 is further configured to lock the file at intervals of a preset time. The processing unit 402 is further configured to read the result information if the locking of the file is successful. The receiving unit 401 is further configured to send the result information to the server. The processing unit 402 is further configured to delete the file and unlock the file if the successful transmission of the result information is detected.
Optionally, the processing unit 402 is further configured to unlock the file if the failure of sending the result information is detected, and perform the step of locking the file at intervals of a preset time.
Optionally, the processing unit 402 is further configured to parse a job execution instruction, obtain path information and a program identifier of a program to be started, and determine a program corresponding to the program identifier as a target program. The processing unit 402 is further configured to initiate the target program to perform the preconfigured service operation based on the path information and the program identification.
Optionally, the processing unit 402 is further configured to read a file list, select a file from the saved files as a target file based on the file list, lock the target file, and obtain result information in the target file as target result information; recording file identifications of a plurality of files in a file list; and if the target file is successfully locked, reading target result information. The transceiver unit 401 is further configured to send the target result information to the server. The processing unit 402 is further configured to delete the target file and unlock the target file if the successful transmission of the target result information is detected; and if the failure of sending the target result information is detected, selecting the next file from the stored files to serve as a target file based on the file list, and executing the step of locking the target file.
Optionally, the processing unit 402 is further configured to delete the file based on the naming, the type and the modification time of each file corresponding to the plurality of file identifications, so as to delete the file that does not meet the naming, the type and the modification time requirements; the file identification of the deleted file is deleted from the file list to update the file list, and one file is selected from the plurality of files as the target file based on the order of the file identifications in the updated file list.
Optionally, the processing unit 402 is further configured to, if the locking of the target file is timed out, select a next file from the saved files as the target file based on the file list, and perform the step of locking the target file.
Fig. 5 is a first block diagram of an electronic device for implementing the information processing method according to the embodiment of the present application, and as shown in fig. 5, the electronic device 500 includes: a memory 501, a processor 502 and a transceiver 503.
Processor 502, memory 501 and transceiver 503 are electrically interconnected;
a transceiver 503 for transmitting and receiving data;
memory 501 stores computer-executable instructions;
processor 502 executes computer-executable instructions stored in memory 501, causing processor 502 to perform the methods provided by any of the embodiments described above.
Fig. 6 is a second block diagram of an electronic device, which may be a computer, a digital broadcast terminal, a messaging device, a tablet device, a personal digital assistant, a server cluster, etc., as shown in fig. 6, for implementing the information processing method according to the embodiment of the present application.
Electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, there is also provided a computer-readable storage medium having stored therein computer-executable instructions for performing the method of any one of the above embodiments by a processor.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program for executing the method of any of the above embodiments by a processor.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. An information processing method, characterized in that the method comprises:
receiving a job execution instruction sent by a server, and analyzing the job execution instruction to determine a target program;
starting the target program to execute a pre-configured business operation, and feeding back result information containing the running state of the target program to the server;
if the failure of sending the result information is detected, writing the result information into the locked file, and after the writing is completed, storing the file and unlocking the file;
locking the file at intervals of preset time;
if the file is successfully locked, the result information is read, and the result information is sent to the server;
and if the result information is detected to be successfully sent, deleting the file and unlocking the file.
2. The method as recited in claim 1, further comprising:
and if the failure of sending the result information is detected, unlocking the file, and executing the step of locking the file at preset intervals.
3. The method of claim 1, wherein the parsing the job execution instruction to determine the target program comprises:
analyzing the job execution instruction, acquiring path information and a program identifier of a program to be started, and determining the program corresponding to the program identifier as the target program;
the starting the target program to execute the preconfigured service operation comprises the following steps:
and starting the target program to execute the preconfigured service operation based on the path information and the program identification.
4. The method of claim 1, wherein prior to writing the result information to the locked file, further comprising:
creating an empty folder, adding a file lock to the empty folder, and performing the step of writing the result information to the locked file.
5. The method as recited in claim 1, further comprising:
reading a file list, selecting one file from a plurality of stored files based on the file list as a target file, and locking the target file, wherein the result information in the target file is target result information; recording file identifications of a plurality of files in the file list;
if the target file is successfully locked, the target result information is read, and the target result information is sent to the server;
if the successful sending of the target result information is detected, deleting the target file and unlocking the target file;
and if the failure of sending the target result information is detected, selecting the next file from the stored files to serve as a target file based on the file list, and executing the step of locking the target file.
6. The method of claim 5, wherein selecting a file from the saved plurality of files as the target file based on the file list comprises:
deleting the files based on the naming, the types and the modification time of the files corresponding to the file identifiers so as to delete the files which do not meet the naming, the types and the modification time requirements;
deleting the file identification of the deleted file from the file list to update the file list, and selecting one file from the plurality of files as a target file based on the order of the file identifications in the updated file list.
7. The method as recited in claim 5, further comprising:
and if the locking of the target file is overtime, selecting the next file from the stored files to serve as the target file based on the file list, and executing the step of locking the target file.
8. An information processing apparatus, characterized in that the apparatus comprises:
a receiving unit for receiving the job execution instruction sent by the server,
the processing unit is used for analyzing the job execution instruction to determine a target program;
the processing unit is also used for starting the target program to execute the preconfigured service operation and feeding back the result information containing the running state of the target program to the server;
the processing unit is also used for writing the result information into the locked file if the failure of sending the result information is detected, and storing the file and unlocking the file after the writing is completed;
the processing unit is also used for locking the file at intervals of preset time;
the processing unit is further used for reading the result information if the file is successfully locked;
the receiving unit is also used for sending the result information to the server;
and the processing unit is also used for deleting the file and unlocking the file if the result information is detected to be successfully sent.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 7.
CN202311651219.3A 2023-12-04 2023-12-04 Information processing method, device, equipment and storage medium Pending CN117609170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311651219.3A CN117609170A (en) 2023-12-04 2023-12-04 Information processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311651219.3A CN117609170A (en) 2023-12-04 2023-12-04 Information processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117609170A true CN117609170A (en) 2024-02-27

Family

ID=89951429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311651219.3A Pending CN117609170A (en) 2023-12-04 2023-12-04 Information processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117609170A (en)

Similar Documents

Publication Publication Date Title
CN110515709B (en) Task scheduling system, method, device, electronic equipment and storage medium
US8010158B2 (en) Synchronization of mobile terminals
US11184305B2 (en) Method and apparatus for updating group member data, and terminal, system and storage medium
RU2642843C2 (en) Method and device for processing recording contacts
WO2023024435A1 (en) Device registration method and apparatus, electronic device, storage medium, and computer program product
CN107463419B (en) Application restarting method and device and computer readable storage medium
CN108647285B (en) Renaming method and device in distributed file system and distributed file system
CN117609170A (en) Information processing method, device, equipment and storage medium
CN111723353A (en) Identity authentication method, device, terminal and storage medium based on face recognition
CN112883314B (en) Request processing method and device
CN111290882B (en) Data file backup method, data file backup device and electronic equipment
CN111241134B (en) Data processing method and device
CN115086295A (en) File transmission method, file transmission device, server and storage medium
CN107463414B (en) Application installation method and device
CN115185571A (en) Application data management method and device, electronic equipment and storage medium
CN112632184A (en) Data processing method and device, electronic equipment and storage medium
CN112966147A (en) File access method and device, electronic equipment and storage medium
CN110995767B (en) Request processing method and device
CN116828405B (en) Short message transmission method and device, storage medium, terminal and network equipment
CN111274210B (en) Metadata processing method and device and electronic equipment
CN113360341B (en) Front-end application maintenance and loading method and device
CN112685061B (en) Access method and device
CN116501515A (en) Information synchronization method, device, electronic equipment and storage medium
CN117076059A (en) Transaction processing method, device, computer equipment and storage medium
CN112486588A (en) Display control method, display control device, 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