WO2014022968A1 - Media service processing method and media service system - Google Patents

Media service processing method and media service system Download PDF

Info

Publication number
WO2014022968A1
WO2014022968A1 PCT/CN2012/079775 CN2012079775W WO2014022968A1 WO 2014022968 A1 WO2014022968 A1 WO 2014022968A1 CN 2012079775 W CN2012079775 W CN 2012079775W WO 2014022968 A1 WO2014022968 A1 WO 2014022968A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
data
execution
type
task execution
Prior art date
Application number
PCT/CN2012/079775
Other languages
French (fr)
Chinese (zh)
Inventor
李勇
施有铸
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280002468.3A priority Critical patent/CN103748567B/en
Priority to PCT/CN2012/079775 priority patent/WO2014022968A1/en
Publication of WO2014022968A1 publication Critical patent/WO2014022968A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Definitions

  • the present invention relates to the field of information processing technologies, and in particular, to a media service processing method and a media service system.
  • the existing media service system generally has two implementation modes when performing business processing: controlling the execution order between multiple media tasks by a workflow, or controlling the interaction between multiple media tasks by the solidified business logic.
  • the order of execution can be thought of as a sequence of execution between a solidified workflow control media task.
  • the first executed media task is the media file acquisition, and the file that needs to be transcoded is acquired to the system; then the second executed media task is the media asset review, and the examiner is notified to review. Whether the file meets the technical and policy requirements; Finally, the third executed media task is the media asset archive, which archives the approved documents to the specified destination.
  • the service centralized control point sequentially calls the media task to be executed according to the requirements of the business processing, and waits for the execution of the invoked media task to execute the response, and then determines the next step according to the execution response.
  • the embodiment of the invention provides a media service processing method and a media service system, which avoids the risk of a single point failure caused by single point control in the system.
  • a first aspect of the embodiments of the present invention provides a media service system, including at least two task execution subsystems, where the task execution subsystem includes: a task policy device, a task data storage device, and at least one task execution device, where: The task data storage device acquires first task data and executes a task according to the first task data; the task processing policy includes a service type of the first task data and a first task type;
  • the task policy device is configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the task execution device for the first task data, and generate the second task data when the second task data needs to be generated.
  • the task data storage device is configured to receive first task data sent by the task policy device in the previous task execution subsystem, and store the first task data.
  • the system further includes: at least one service request receiving device, configured to generate, according to the received service request, information including a service type, a first task execution object, and a First task data of a task type;
  • the task data storage device is further configured to store first task data generated by the service request receiving device.
  • a second aspect of the embodiments of the present invention provides a media service system, including: at least two task execution subsystems, where the task execution subsystem includes: a task data storage device and at least one task processing device, the task processing device And including a task policy module and a task execution module, where: the task execution module is configured to acquire first task data from the task data storage device according to the task processing policy stored in the task policy module, and according to the first a task data execution task; the task processing policy includes a service type of the first task data and a first task type; the task policy module is configured to store the task processing policy, and generate a policy according to the second task And executing, by the task execution module, the task execution result of the first task data, when the second task data needs to be generated, generating second task data including a service type, second task execution object information, and a second task type, and The second task data is stored to another one corresponding to the second task type Service task execution subsystem data storage device, the second task generates policy includes business logic corresponding to the service type;
  • the task data storage device is configured to receive first task data sent by the task processing device in the previous task execution subsystem, and store the first task data.
  • the system further includes: at least one service request receiving device, configured to generate, according to the received service request, a service type, a first task execution object information, and a First task data of a task type;
  • the task data storage device is further configured to store first task data generated by the service request receiving device.
  • a third aspect of the embodiments of the present invention provides a media service system, including: a data storage device, and at least two task execution subsystems, where the task execution subsystem includes: a task policy device and at least one task execution device, where Obtaining first task data from the data storage device and executing a task according to the first task data; the task processing policy includes a service type of the first task data and a first task type;
  • the task policy device is configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the task execution device for the first task data, and generate the second task data when the second task data needs to be generated. Include a service type, a second task execution object information, and a second task type second task data, and store the second task data in the data storage device, where the second task generation policy includes the service Type of business processing logic;
  • the data storage device is configured to receive first task data sent by the task policy device in the previous task execution subsystem, and store the first task data.
  • the system further includes: at least one service request receiving device, configured to generate, according to the received service request, information including a service type, a second task execution object, and the first First task data of the task type;
  • the data storage device is further configured to store first task data generated by the service request receiving device.
  • a fourth aspect of the embodiments of the present invention provides a media service system, including a data storage device, and at least one first task execution subsystem and at least one second task execution subsystem;
  • the first task execution subsystem includes: a task policy device and at least one task execution device;
  • the second task execution subsystem includes: a task policy device, a task data storage device, and at least one task execution device; acquiring the first task And performing a task according to the first task data;
  • the task processing policy includes a service type of the first task data and a first task type;
  • the task policy device is configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the task execution device for the first task data, and generate the second task data when the second task data needs to be generated.
  • the task generation policy includes business processing logic corresponding to the service type;
  • the task data storage device is configured to store the first task data acquired by the task execution device in the second task execution subsystem
  • the data storage device is configured to store the first task data obtained by the task execution device in the first task execution subsystem.
  • the system further includes: at least one service request receiving device, configured to generate, according to the received service request, information including a service type, a first task execution object, and a First task data of a task type;
  • the task data storage device or the data storage device is further configured to store first task data generated by the service request receiving device.
  • a fifth aspect of the embodiments of the present invention further provides a media service system, including: at least one first task execution subsystem and at least one second task execution subsystem, where:
  • the first task execution subsystem includes a task data storage device and at least one task processing device, the task processing device includes a task policy module and a task execution module; the second task execution subsystem includes a task policy device, and task data storage.
  • the task processing policy includes the first task data Business type and first task type;
  • the task policy module and the task policy device are configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the first task data, and generate, when the second task data needs to be generated, generate a service type, second task execution object information, and second task data of the second task type, and storing the second task data to task data storage in a second task execution subsystem corresponding to the second task type a device, or a task data storage device in the first task execution subsystem, the second task generation policy includes service processing logic corresponding to the service type; the task data storage device is configured to receive a previous task execution device The first task data sent by the system, and storing the first task data.
  • the system further includes: Having one less service request receiving device, configured to generate, according to the received service request, first task data including a service type, first task execution object information, and a first task type;
  • the task data storage device is further configured to store first task data generated by the service request receiving device.
  • a sixth aspect of the embodiments of the present invention provides a media service processing method, which is used for service processing of a task execution subsystem included in a media service system, including:
  • the task execution subsystem acquires a task processing policy, where the task processing policy includes a service type of the first task data and a first task type;
  • the task execution subsystem acquires corresponding first task data according to the task processing policy and executes a task according to the first task data;
  • the task execution subsystem generates a policy including a service type, a second task execution object information, and a second task type according to the second task generation policy and the task execution result of the first task data, when the second task data needs to be generated.
  • Second task data so that another task execution subsystem corresponding to the second task type performs a task according to the second task data, and the second task generation policy includes a business processing logic corresponding to the service type .
  • the task execution subsystem acquires a task processing policy, and further includes:
  • the task request receiving device in the media service system receives the task request, and generates first task data including the first task type and the service type according to the task request.
  • the task execution policy further includes: when the task is Obtain task data when the load of the execution subsystem does not exceed the preset threshold;
  • the generated second task data further includes at least one of the following: a task identifier, a task execution parameter, and task control information.
  • the task executive The system generates a policy according to the second task and a task execution result of the task execution device for the first task data, and outputs a task execution result of the first task data when the second task data is not required to be generated.
  • the service processing logic includes at least two tasks, and an execution order relationship of the at least two tasks.
  • the task execution result of the task execution subsystem to the first task data specifically includes: The instruction of the task execution completion of the first task type included in the first task type and the object data after execution;
  • the second task execution object information in the second task data generated by the task execution subsystem includes the executed object data, and the second task type is a type of the next task corresponding to the first task type.
  • the media service system in this embodiment can be executed by multiple task execution subsystems, but there is no centralized control point to control the execution order between the task execution subsystems, but the function of controlling the execution order.
  • the task execution subsystem Distributed to each task execution subsystem, the task execution subsystem generates second task data according to the current task execution result of the first task data and the second task generation policy, and is executed by another task execution subsystem according to the second Task data performs tasks to correlate tasks performed by multiple task execution subsystems to implement a specific media service, thereby avoiding the risk of single point of failure caused by a centralized control point to control the order of task execution .
  • FIG. 1 is a schematic structural diagram of a media service system according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a transcoding service system according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of another media service system according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another media service system according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another media service system according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a media service processing method according to an embodiment of the present invention
  • FIG. 8 is a flowchart of another media service processing method according to an embodiment of the present invention. detailed description
  • the embodiment of the present invention provides a media service system, such as a transcoding service system or a media asset management system, and the schematic diagram is as shown in FIG. 1 , including: at least two task execution subsystems 100 (only two are shown in FIG. 1 )
  • the tasks performed by the plurality of task execution subsystems 100 are different, for example, one task execution subsystem 100 performs file uploading, another task execution subsystem 100 performs file segmentation, etc., and one task execution subsystem 100 can execute one or more tasks. .
  • the task management device 10 For any of the task execution subsystems 100, the task management device 10, the task data storage device 11, and the at least one task execution device 12, wherein:
  • the task execution device 12 is configured to acquire the first task data from the task data storage device 11 according to the task processing policy stored in the task policy device 10, and execute the task according to the acquired first task data.
  • the task execution device 12 is a device that can perform certain tasks, such as a device that performs tasks such as file uploading, file sharding, or file transcoding. In a specific process of executing a task, the task executing device 12 can periodically actively submit tasks to the task.
  • the data storage device 11 acquires the first task data, and then performs a certain task according to the first task data.
  • the task processing policy refers to a policy for acquiring the first task data, which may be stored in the task policy device 10, and mainly specifies what tasks the task execution device 12 processes under what type of service, for example, the task processing policy indicates task execution.
  • the device 12 may perform one or more or all tasks in one or more types of services, and may include a service type in the task processing policy, and further include a first task type in the service type, where
  • the business type can be one type or multiple types.
  • the business and tasks are different.
  • the business is composed of multiple tasks controlled by the solidified logic or workflow, and certain user requirements such as transcoding services or asset management services or rendering services can be realized, and the tasks are business processing.
  • the function implementation in the process is the minimum unit for file execution.
  • the above service type refers to the business attribute
  • the task type refers to the function attribute of the task.
  • the task processing strategy can also specify under what circumstances the first task data is obtained,
  • the first task data is acquired, for example, when the current load of the task execution device 12 does not exceed the preset threshold, otherwise the first task data is not acquired from the task data storage device 11.
  • the task processing policy may further include other policies for acquiring the first task data, and the specific content may be preset by the user in the task policy device 10 according to actual needs.
  • the first task data acquired by the task execution device 12 may include a service type, a first task type, and first task execution object information, where the first task execution object information refers to data information that is used when the task is executed, such as a source task object. That is, the task object that starts execution (such as the file after transcoding), or the task object that is the target task, that is, the task object that ends the execution.
  • each task execution subsystem 100 can deploy a plurality of task execution devices 12 (the plurality of task execution devices 12 are represented by interleaved overlapping boxes in FIG. 1), and each task execution device 12 They operate independently of each other without a coupling relationship, so that the plurality of task execution devices 12 can execute tasks concurrently, thereby shortening the completion time of the tasks, thereby improving the performance of the system; and when a certain task execution task device 12 fails due to a fault or overload When the task is executed, it can be executed by the other task execution device 12, thereby avoiding the risk of a single point of failure, thereby improving the reliability of the system.
  • the task policy device 10 is configured to store the foregoing task processing policy, and generate a policy and a task execution result of the task execution device 12 for the first task data according to the second task, and generate a service type, when the second task data needs to be generated.
  • the second task executes the object information and the second task data of the second task type, and stores the generated second task data to the task data storage device 11 included in the other task execution subsystem 100 corresponding to the second task type.
  • the task execution result of the first task data is output when the second task data is not required to be generated.
  • the task execution device 12 may send the task execution result to the task policy device 10 during the execution of the task, where the task execution result may include the first task data acquired by the task execution device 12, and the object after the task is executed (for example, transcoding) Subsequent files, etc.) and task execution status information (including states such as not yet started, executing, normal completion, or abnormal termination), etc. Further, if the task performed by the task execution device 12 is abnormally terminated, in addition to the task execution result In addition to the task execution status information, information such as the cause of the abnormal termination may also be included.
  • the second task generation policy refers to a policy for generating the next task data of the task performed by the current task execution device 12, and may mainly include a policy of whether to generate the second task data, a policy of generating a type of task, etc., specifically
  • the service processing logic corresponding to the service type in the first task data is acquired by the task execution device 12, where the business processing logic Refers to the relationship between multiple tasks that implement a business.
  • the task execution device 12 performs a task execution result on the first task data.
  • the method includes: an instruction to complete execution of the task of the first task type included in the first task data, and object data after execution, and the like.
  • the second task execution object information in the second task data generated by the task policy device 10 may include the object data after execution in the task execution result, and the second task type is the type of the next task corresponding to the task in the first task type. .
  • the business processing logic includes: file uploading - file fragmentation - file transcoding - file merging - file output, if the current task execution device 12 performs the task of file transcoding, and the task is completed normally, the task
  • the second task type included in the second task data generated by the policy device 10 is file merge, and the service type is a transcoding service, and the second task execution object information is a transcoded file, and the second task data is It is stored in the task data storage device 11 of the task execution subsystem 100 that performs file merge.
  • the task policy device 10 determines that the second task data does not need to be generated.
  • the second task data generated by the task policy device 10 may further include at least one of the following information: task identifier, task execution. Parameters and task control information, etc.
  • the task execution parameter refers to specific requirements during the task execution process.
  • the task execution parameter may include parameters such as a code rate, an encoding format, or a file encapsulation format;
  • the task control information refers to the current task or
  • the information required for subsequent task control for example, for the task of file merging, the merging can be performed only after the transcoding task of all the partial files is completed, so all the file points in the task control information of the file merging task are required.
  • the related information of the slice such as the transcoding output identification information (such as a file name) list of the entire partial file
  • the task execution device 12 may find the corresponding transcoded slice file according to the identification information list when performing file combination, and perform The file is merged, and the information about all the file fragments can be determined only when the file fragmentation task is executed. Therefore, the control information needs to be included when the subsequent task data is generated after the file fragmentation task is completed.
  • the task data storage device 11 is configured to store first task data, which may be generated and sent by the task policy device 10 of the previous task execution subsystem 100.
  • the task data is stored
  • the storage device 11 can provide management functions such as distributed access of the first task data, but does not provide a service control function, allowing the plurality of task execution devices 12 to concurrently acquire task data, specifically, based on an existing distributed file system or distribution.
  • a technology such as a database is implemented, and a plurality of task data storage devices 11 can be deployed in each task execution subsystem 100 to avoid the risk of a single point of failure.
  • first task data and the second task data, the first task execution object information and the second task execution object information, and the first task type and the second task type do not represent a sequential relationship, but represent Different task data, task execution object information, and task type.
  • the media service system of this embodiment includes multiple task execution subsystems 100, but there is no centralized control point to control the execution order between the task execution subsystems 100, but is distributed to each task execution subsystem.
  • 100 includes a task policy device 10 for generating a next task data according to a task execution result of the task execution device 12 and a next task generation policy in the task execution subsystem 100, and storing the generated next task data to the next task Executing the task data storage device 11 of the subsystem 100, thereby associating the tasks performed by the plurality of task execution subsystems, realizing a specific media service, thereby avoiding controlling the task execution order through a centralized control point The risk of a single point of failure.
  • each task execution subsystem since each task execution subsystem always acquires task data through the task execution device actively polling when executing the task, so that there is no mutual dependency relationship between the plurality of task execution subsystems, thereby avoiding the single point control It brings the constraints of system performance expansion, which improves the performance of the system.
  • 1 media service request can be implemented by 5 tasks, that is, 5 tasks can be executed by 5 task execution subsystems 100, and 1 task execution device 12 in task execution subsystem 100 can achieve maximum processing performance. If it is 500 tasks/second, then the service processing performance of the system is 100 media service requests/second. If the deployment of the task execution device 12 is added to each task execution subsystem 100, the system performance can be improved to 200 media services. Request / sec.
  • the media service system may include at least one service request receiving device in addition to the plurality of task execution subsystems 100 as shown in FIG.
  • the method is configured to generate, according to the received service request, first task data including a service type, first task execution object information, and a first task type, and store the first task data to a task performer corresponding to the first task type.
  • the task data storage device 11 in the system 100 the task data storage device 11 is further configured to store the first task data generated by the service request receiving device 101.
  • a service request is a request for requesting the media service system to implement a certain service, such as a transcoding request for a file.
  • the service request receiving device 101 may generate the first task data according to the first task generation policy, where the first task generation policy includes service processing logic of the service type corresponding to the service request, for example, the service request is a transcoding service.
  • the requesting, the generated first task type is a file uploading task, and the first task execution object information included in the generated first task data may include information such as a file to be uplinked.
  • the first task data may be stored to the task execution subsystem corresponding to the first task type.
  • multiple service request receiving devices 101 may be deployed in the media service system.
  • the plurality of service request receiving devices 101 are represented by interleaved blocks in Fig. 1), thereby avoiding the risk of a single point of failure and improving system performance.
  • the user interface that is, the service request receiving device, can be included in the media service system.
  • the transcoding service system includes a transcoding service request receiving device 200, an upload task execution subsystem 201, a fragmentation task execution subsystem 202, and a transcoding task.
  • the transcoding service request receiving device 200 receives the service request for transcoding, and generates the first task data according to the first task generation policy, that is, the service processing logic of the transcoding service, and sends the first task data to the uploading in the upload task execution subsystem 201.
  • the task data storage device wherein the first task data may include: a service type corresponding to the service request, that is, a transcoding, and the task type is a file uploading and task execution object information, that is, a file to be uploaded, and may also include information such as a service request identifier.
  • the upload task execution subsystem 201 includes an upload task data storage device, an upload task execution device, and an upload task policy device, wherein the upload task execution device acquires a first task processing policy from the upload task policy device, and the first task processing Policy stipulates that the upload task execution device can handle If the service type is any type of service and the task type is a file uploading task, the uploading task executing device periodically and actively acquires the first task data from the uploading task data storage device according to the first task processing policy, and needs to be needed therein.
  • the uploaded file is uploaded locally.
  • the upload task execution device may further determine whether the current load exceeds a threshold, and if not, remove the first task data from the upload task data storage device.
  • the upload task execution result is reported to the upload task policy device, which may include information such as whether to complete the upload or upload abnormal termination, and may also include the storage address of the uploaded file and the like.
  • the uploading task policy device generates a policy according to the second task (including the business processing logic of the transcoding service) and the uploading task execution result. If the uploading task execution result indicates that the uploading task is completed, the task type may be fragmented, and the service type is rotated.
  • the code, and the task execution object is the second task data of the uploaded file, and the second task data is sent to the fragmentation task data storage device of the fragmentation task execution subsystem 202.
  • the fragmentation task execution subsystem 202 includes a fragmentation task data storage device, a fragmentation task execution device, and a fragmentation task policy device, wherein the fragmentation task execution device acquires the second task processing from the fragmentation task policy device.
  • the second task processing policy stipulates that the fragmentation task execution device can process the service type of the transcoding or rendering service, and the task type is a file fragmentation task, and the fragmentation task execution device periodically processes the policy according to the second task.
  • the second task data is obtained from the fragmentation task data storage device, and the files that need to be sliced are fragmented.
  • the shard task execution device may also determine whether the current load exceeds the threshold value during the process of acquiring the second task data, and if not, exceeds the second task data from the shard task data storage device.
  • the fragmentation task execution device reports the fragmentation task execution result to the fragmentation task policy device after the fragmentation of the file, and may include information such as whether the fragmentation or fragmentation is abnormally terminated, and may also include the identifier of the fragmented file. Or content and so on.
  • the fragmentation task policy device generates a policy and a fragmentation task execution result according to the third task. If the fragmentation task execution result indicates that the fragmentation task is completed, the generated task type and the service type are all transcoded, and the task execution object is a sub-division.
  • the third task data of the transcoded file is required after the slice, and the third task data is sent to the transcoding task data storage device of the transcoding task execution subsystem 203.
  • task control information including file fragmentation, such as a full partial slice file identifier list, all The fragment transcoding output file name list and the current fragment file identifier, etc., to facilitate the processing of subsequent tasks.
  • the transcoding task execution subsystem 203 includes a transcoding task data storage device, a transcoding task execution device, and a transcoding task policy device, wherein the transcoding task execution device obtains a third task processing from the transcoding task policy device.
  • the third task processing policy stipulates that the transcoding task execution device can process the task whose service type is a transcoding service and the task type is file transcoding, and the transcoding task execution device periodically actively takes the initiative according to the third task processing policy.
  • the third task data is obtained in the transcoding task data storage device, and the fragmented file in which the transcoding needs to be transcoded is transcoded.
  • the process of acquiring the third task data may further determine whether the current load exceeds a threshold value, and if not, the third task data is retrieved from the transcoding task data storage device.
  • the transcoding task execution device obtains a fragmented file from the transcoding task data storage device, the transcoding process can be started, and the transcoding process is not performed after all the fragmented files are obtained. In this way, the transcoding operations of multiple post-fragment files can be performed concurrently, which further improves the system processing performance.
  • the transcoding task execution device After transcoding the file, the transcoding task execution device reports the execution result of the transcoding task to the transcoding task, and may also include the identifier or content of the file after transcoding.
  • the transcoding task policy device generates a policy and a transcoding task execution result according to the fourth task. If the transcoding task execution result indicates that all the fragments are transcoded, the generated task type is merged, and the task execution object is transcoded. The merged file is required, and the service type is the transcoded fourth task data, and the fourth task data is sent to the merge task data storage device of the merge task execution subsystem 204. In the fourth task data, task control information including file transcoding is also required, such as a list of all transcoded file identifiers, a list of all transcoded output file names, and a current transcoded file identifier, etc., to facilitate subsequent processing of the task.
  • the merge task execution subsystem 204 includes a merge task data storage device, a merge task execution device, and a merge task policy device, wherein the merge task execution device obtains a fourth task processing policy from the merge task policy device, the fourth task
  • the processing policy stipulates that the merge task execution device can process the task whose service type is transcoded or rendered and the task type is file merge, and the merge task execution device periodically and actively obtains from the merge task data storage device according to the fourth task processing policy.
  • the executing device may further determine whether the current load exceeds the threshold, and if not, remove the fourth task data from the merged task data storage device.
  • the merged task execution device reports the merged task execution result to the merged task policy device after the file is merged, and may include information such as whether to merge or merge the abnormally terminated transcoded files, and may also include the merged file. logo or content, etc.
  • the merge task policy device generates a policy and merges the task execution result according to the fifth task. If the merge task execution result indicates that all the transcoded files are merged, the file may be generated including the task type as the output, and the task execution object is the file to be output after the merge. And the service type is the transcoded fifth task data, and the fifth task data is sent to the output task data storage device of the output task execution subsystem 205. In the fifth task data, it is also necessary to include the merged file, the destination address of the merged file, and the file identifier of the merged output.
  • the output task execution subsystem 205 includes an output task data storage device, an output task execution device, and an output task policy device, wherein the output task execution device obtains a fifth task processing policy from the output task policy device, the fifth task
  • the processing policy specifies that the output task execution device can process any service type and the task type is a file output task, and the output task execution device periodically and actively obtains the fifth task from the output task data storage device according to the fifth task processing policy. Data, and output the output file to the specified address.
  • the output task execution device may further determine whether the current load exceeds the threshold, and if not, remove the fifth task data from the output task data storage device.
  • the output task execution device After outputting the file, the output task execution device reports the output task execution result to the output task policy, including the identifier or content of the output file, and the like.
  • the output task policy device determines that the transcoding service request processing received by the transcoding service request receiving device 200 is completed according to the sixth task generating policy and the output task execution result, and determining that the sixth task data does not need to be generated.
  • the embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system, and the schematic diagram is as shown in FIG. 3, including: at least two task execution subsystems 300 (only two are shown in FIG. 3)
  • the tasks performed by the plurality of task execution subsystems 300 are different, for example, one task execution subsystem 300 performs file uploading, another task execution subsystem performs file segmentation, etc., and one Task execution subsystem 300 can perform one or more tasks.
  • each task processing device 31 may include a task policy module 32 and a task execution module 33, specifically :
  • the task execution module 33 is configured to acquire the first task data from the task data storage device 30 according to the task processing policy stored in the task policy module 32, and execute the task according to the first task data; the task processing policy includes the first task data. Business type and first task type;
  • the task policy module 34 is configured to store a task processing policy, and generate a task execution result according to the second task according to the second task generation task and the task execution module 33, and generate a service type and a second when the second task data needs to be generated.
  • the task execution result of the first task data is outputted by the second task generation policy, where the second task generation policy includes a service processing logic corresponding to the service type;
  • the task data storage device 30 is configured to store the first task data, where the first task data may be task data generated and sent by the task policy module 32 in the task processing device 31 of the previous task execution subsystem 300.
  • the media service system in this embodiment is similar to the system in the corresponding embodiment of FIG. 1.
  • the task policy module 32 in the system of this embodiment can implement the function of the task policy device 10 in the corresponding embodiment of FIG.
  • the task execution module 33 can implement the functions of the task execution device 12 of the corresponding embodiment of FIG. 1, and details are not described herein. The difference is that the function of the next task data and the function of executing the task are generated in the system of this embodiment. Integration into one device, task processing device 31, can reduce deployment of devices in the media service system, and multiple task processing devices 31 can be deployed in task execution subsystem 300 (multiple task processing devices 31 in Figure 3 are interleaved) Overlapping boxes are used to avoid the risk of single point control and improve system performance.
  • the media service system may include at least one service request receiving device 301 for receiving services according to the plurality of task execution subsystems 300 as shown in FIG. Requesting, generating first task data including a service type, first task execution object information, and a first task type, and storing the first task data to a first task type pair
  • the task data storage device 30 is further configured to store the first task data generated by the service request receiving device 301, wherein the function of the service request receiving device 301 is The functions of the task request receiving device 101 in the corresponding embodiment are similar, and are not described herein.
  • multiple service request receiving devices 301 can be deployed in the media service system, thereby avoiding the risk of single point of failure. And can improve system performance.
  • the embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system.
  • the schematic diagram of the structure is as shown in FIG. 4, including: a data storage device 400 and at least two task execution subsystems 401 (FIG. 4 Only two of them are drawn, the tasks performed by the plurality of task execution subsystems 401 are different, and one task execution subsystem 401 can execute one or more tasks.
  • a task policy device For any of the task execution subsystems 401, it may include: a task policy device
  • the task execution device 41 is configured to acquire the first task data from the data storage device 400 according to the task processing policy stored in the task policy device 40, and execute the task according to the first task data, where the task processing policy includes the first task data.
  • the task policy device 40 is configured to store a task processing policy, and generate a policy and a task execution result of the task execution device 41 for the first task data according to the second task, and generate a service type and a second when the second task data needs to be generated.
  • the task execution object information and the second task data of the second task type and storing the second task data in the data storage device 400; when the second task data is not required to be generated, outputting the task execution result of the first task data,
  • the second task generation strategy includes business processing logic corresponding to the service type;
  • the data storage device 400 is configured to store the foregoing first task data, where the first task data may be task data generated and sent by the previous task execution subsystem 401.
  • the data storage device 400 may include multiple task data.
  • the storage module is configured to separately store task data generated by the task policy device 40 in the plurality of task execution subsystems 401.
  • the media service system may include at least one service request receiving device 402, in addition to the data storage device 400 and the at least two task execution subsystems 401 as shown in FIG.
  • the data storage device 400 may be further configured to store the first generated by the service request receiving device 402, according to the received service request, generating the first task data including the service type, the first task execution object information, and the first task type. Task data.
  • the business request The function of the receiving device 402 is similar to that of the service request receiving device 101 in the corresponding embodiment of FIG. 1, and details are not described herein.
  • the media service system of this embodiment is similar to the media service system shown in FIG. 1 and is not described here.
  • the difference is that the task policy device 40 in each task execution subsystem 401 is used in this embodiment.
  • the generated next task data is placed in the same device, data storage device 400, so that these task data can be centrally managed.
  • the embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system.
  • the schematic diagram of the structure is as shown in FIG. 5, including: a data storage device 500 and at least one first task execution subsystem 501 (FIG. Draw two in 5) and at least one second task execution subsystem 502 (one in Figure 5), where:
  • the structure of the first task execution subsystem 501 is similar to that of the task execution subsystem 400 of FIG. 4, including the task policy device 50 and at least one task execution device 51, and the structure of the second task execution subsystem 502 is the same as that of FIG.
  • the task execution subsystem 100 has a similar structure, including a task policy device 50, a task data storage device 52, and at least one task execution device 51, specifically:
  • the task execution device 51 is configured to acquire the first task data according to the task processing policy stored in the task policy device 50, and execute the task according to the first task data, where the task processing policy includes the service type of the first task data and the first task type. If it is the task execution device 51 in the first task execution subsystem 501, the first task data is acquired from the data storage device 500, and if it is the task execution device 51 in the second task execution subsystem 502, the slave task data The storage device 52 is used to acquire the first task data.
  • the task policy device 50 is configured to store the foregoing task processing policy, and generate a policy and a task execution result of the task execution device 51 for the first task data according to the second task, and generate a service type, when the second task data needs to be generated.
  • the second task execution object information and the second task data of the second task type if the second task data needs to be executed by the first task execution subsystem 501, storing the second task data into the data storage device 500, if The second task data needs to be executed by the second task execution subsystem 502, and the second task data is stored in the task data storage device 52 in another second task execution subsystem 502 corresponding to the second task type;
  • the task execution result of the first task data is output.
  • the second task generation policy includes business processing logic corresponding to the service type.
  • the task data storage device 52 is configured to store the first task data acquired by the task execution device 51 in the second task execution subsystem 502.
  • the data storage device 500 is configured to store the task execution device 51 acquired by the task execution device 51 in the first task execution subsystem 501.
  • the first task data wherein the data storage device 500 can separately store the task data that the task execution device 51 needs to acquire in the different first task execution subsystem 501 through the plurality of task data storage modules.
  • the first task data stored in the task data storage device 52 and the data storage device 500 may be task data generated by the task policy device 50 in the previous task execution subsystem (first or second task execution subsystem).
  • the media service system may include, in addition to the data storage device 500, the at least one first task execution subsystem 501, and the at least one second task execution subsystem 502 as shown in FIG. And the at least one service request receiving device 503 is further configured to generate the first task data including the service type, the second task execution object information, and the first task type according to the received service request, where the data storage device 500 or The task data storage device 52 is further configured to store the first task data generated by the service request receiving device 503.
  • first task execution subsystem and the second task execution subsystem and the first task data and the second task data, and the first task type and the second task type are only for indicating different objects, and Indicates the order relationship.
  • the task data required by the task execution device 51 in the plurality of first task execution subsystems 501 to perform tasks is stored in the same device, that is, the data storage device 500, to facilitate unified management.
  • the embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system.
  • the structure diagram is as shown in FIG. 6, and includes: at least one first task execution subsystem 600 (drawn in FIG. 6) And at least one second task execution subsystem 601 (one drawn in Figure 6), wherein:
  • the structure of the first task execution subsystem 600 includes a task data storage device 64 and at least one task processing device 61, wherein the task processing device 61, in turn, may include a task policy module. 62 and the task execution module 63;
  • the functions of the task execution module 63 in the task processing device 61 are similar to those of the task execution device 66, Both are used to acquire the first task data from the task data storage device 64 according to the task processing policy and execute the task according to the first task data. The difference is that the task execution module 63 and the task execution module 63 in the task processing device 61 are different according to different tasks.
  • the processing strategy is to obtain different first task data and perform different tasks according to the task processing policies stored in the task policy module 62 and the task policy device 65, respectively.
  • the task processing policy may include a service type of the first task data and a first task type.
  • the function of the task policy module 62 in the task processing device 61 is similar to the function of the task policy device 65, and is used to store a task processing policy, and generate a policy according to the second task and a task execution result for the first task data. And when the second task data is generated, generating second task data including the service type and the second task type, and storing the second task data to the task data storage device 64 in the first task execution subsystem 600 corresponding to the second task type or The task data storage device 64 in the second task execution subsystem 601 is different in that the task policy module 62 and the task policy device 65 in the task processing device 61 use different second task generation strategies and different task execution results. Generate different second task data.
  • the second task generation policy includes the service processing logic corresponding to the service type, and may also include other information, as described in the corresponding embodiment in FIG. 1, and details are not described herein.
  • the task data storage device 64 is configured to store first task data, where the first task data may be a previous task execution subsystem of the task execution subsystem where the task data storage device 64 is located (may be the first task execution subsystem 600) Or the task data generated and transmitted by the second task execution subsystem 601).
  • the task data storage device 64 in the first task execution subsystem 600 is configured to store the first task data required by the task execution module 63 to execute the task, and to execute the child first task data for the second task.
  • the media service system may include at least one first task execution subsystem 600 and at least one second task execution subsystem 601 as shown in FIG. 6, and may further include at least A service request receiving device 602 is configured to generate first task data including a service type, first task execution object information, and a first task type according to the received service request, where the task data storage device 64 is further configured to store the service.
  • the first task data generated by the device 602 is requested to be received.
  • first task execution subsystem and the second task execution subsystem and the first task data and the second task data, and the first task type and the second task type are only for indicating different The object, not the order relationship.
  • the functions of executing the tasks and generating the next task data in the task execution subsystems of the certain task execution subsystems are integrated into the same device, that is, the task processing device 61, which can be reduced.
  • the number of devices deployed in the system is integrated into the same device, that is, the task processing device 61, which can be reduced.
  • the media service system may have other function partitioning structures, as long as it can implement the periodic active acquisition of the first task data and perform tasks, and
  • the second task generation strategy and the task execution result of the first task data generate second task data and store the function structure of the other storage device, and distribute the functional structure of the second task data to the media service system in different devices
  • the structure will all fall within the scope of the embodiments of the present invention.
  • the embodiment of the present invention further provides a media service processing method, which is mainly used in a media service system shown in FIG. 1 to FIG. 6 , a method performed by a task execution subsystem included in a media service system, and a flowchart, such as As shown in Figure 7, it includes:
  • Step 701 A task execution subsystem acquires a task processing policy, where the task processing policy may be preset in the task execution subsystem, and may specify what kind of tasks under the type of service performed by the task execution subsystem, specifically including the first The service type of the task data and the first task type, etc.; the task processing policy may also specify under what circumstances the first task data is acquired, specifically, when the load of the task execution subsystem does not exceed the preset threshold, Obtain the first task data, otherwise the first task data is not obtained.
  • the task processing policy may be preset in the task execution subsystem, and may specify what kind of tasks under the type of service performed by the task execution subsystem, specifically including the first The service type of the task data and the first task type, etc.; the task processing policy may also specify under what circumstances the first task data is acquired, specifically, when the load of the task execution subsystem does not exceed the preset threshold, Obtain the first task data, otherwise the first task data is not obtained.
  • Step 702 The task execution subsystem acquires the corresponding first task data according to the acquired task processing policy, and executes the task according to the first task data, where the acquired first task data includes data such as a service type and a first task type.
  • the first task data may be generated and sent by other task execution subsystems and stored in the task execution subsystem, or stored in another data storage device, and the task execution subsystem may periodically acquire the first task data.
  • the service type, the first task execution object information, and the executed first task type may be included, and the first task execution data may further include at least one of the following information: a task identifier, a task execution parameter, and a task. Control information and other information.
  • Step 703 The task execution subsystem generates a policy according to the second task and a task execution result of the first task data, and when the second task data needs to be generated, generates a service type and a second task execution. Object information and second task data of the second task type, so that another task execution subsystem corresponding to the second task type performs a task according to the second task data, and specifically performs a task according to the second task data and the above step 701
  • the method described in 703 is similar; it can be understood that, when the second task data is not required to be generated, the task execution result of the first task data is output, wherein the second task generation policy includes service processing logic corresponding to the service type.
  • the task execution result of the task execution subsystem for the first task data may include: first task data, object after task execution, and task execution state information, etc., if the task execution is abnormal, may also include information such as the cause of the task abnormality, Further, the task execution information may further include task control information, for example, after the file is fragmented, the task execution result may include an identifier list of the file after the fragment as the control information of the subsequent task (such as transcoding);
  • the second task generation policy refers to a policy for generating the next task data of the current task, and may mainly include a strategy for generating the second task data, and a strategy for generating the type of task.
  • the second task data is generated according to the business processing logic in the second task generation policy.
  • the generated second task data may include at least one of the following information in addition to the service type, the second task execution object information, and the second task type: task identifier, task execution parameters, and task control information. .
  • the task execution result of the task execution subsystem for the first task data specifically includes the first included in the first task data.
  • the task of the task type performs the instruction of the completion and the object data after the execution; the task execution subsystem, when the step 703 is executed, the second task execution object information in the generated second task data includes the object data after the execution,
  • the second task type is a type of the next task corresponding to the first task type.
  • the task execution subsystem may store the generated second task data into another task execution subsystem corresponding to the second task type, or store it in a data storage device included in the media service system, such that another task performer The system periodically acquires the second task data to perform the task.
  • the media service system in this embodiment can be executed by multiple task execution subsystems, but there is no centralized control point to control the execution order between the task execution subsystems, but the function of controlling the execution order. Scattered into each task execution subsystem, by the task execution subsystem root Generating the second task data according to the current task execution result of the first task data and the second task generation strategy, and executing the task according to the second task data by another task execution subsystem, thereby executing the plurality of task execution subsystems The tasks performed are linked together to implement a specific media service, which avoids the risk of a single point of failure caused by a centralized control point to control the order of task execution.
  • each task execution subsystem since each task execution subsystem always actively polls and acquires task data when executing tasks, there is no mutual dependency between multiple task execution subsystems, thereby avoiding system performance expansion caused by single point control. Restrictions, thereby improving the performance of the media business system.
  • the task execution subsystem further needs to perform step 704 before performing the foregoing step 701, that is, the service request receiving device in the media service system can also receive the service request, and according to the service.
  • the request generates the first task data including the first task type, the first task execution object information, and the service type, where the service request is used to request the media service system to complete a certain service, and specifically includes a service type such as transcoding or rendering.
  • the service request receiving device when the first task data is generated, may be generated according to the first task generation policy, where the first task generation policy may include a service processing logic corresponding to the service type of the service request, that is, a service is implemented. Relationship between multiple tasks, etc.
  • the first task data may be stored in the task execution subsystem corresponding to the first task type, or stored in the data storage device in the media service system. Medium, thereby triggering the steps of steps 701 to 703 above.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A media service processing method and a media service system, applicable in the technical field of information processing. A media service system comprises at least two task execution subsystems. Each task execution subsystem comprises a task policy device, a task data storage device and at least one task execution device, wherein the task execution device is used for obtaining first task data according to a task processing policy, and executing a task according to the first task data; and the task policy device is used for generating second task data comprising a service type, information about the execution object of second task and a second task type when needing to generate the second task data according to a second task generating policy and the task execution result by the task execution device of the first task data, and storing the second task data in a task data storage device of another task execution subsystem corresponding to the second task type, the second task generating policy comprising service processing logic corresponding to the service type. The present invention achieves the processing of a media service.

Description

媒体业务处理方法及媒体业务系统  Media business processing method and media business system
技术领域 Technical field
本发明涉及信息处理技术领域,特别涉及媒体业务处理方法及媒体业务系 统。  The present invention relates to the field of information processing technologies, and in particular, to a media service processing method and a media service system.
背景技术 Background technique
现有的媒体业务系统在进行业务处理时一般有如下两种实现方式:由工作 流(workflow )控制多个媒体任务之间的执行顺序, 或由固化的业务逻辑控制 多个媒体任务之间的执行顺序,可以认为是一种固化了的工作流控制媒体任务 之间的执行顺序。 比如, 在媒体资产管理系统, 首先调用第一个执行的媒体任 务是媒体文件获取,将需要转码的文件获取至系统; 然后调用第二个执行的媒 体任务是媒体资产审核, 通知审查员审核文件是否符合技术及政策要求; 最后 调用第三个执行的媒体任务是媒体资产归档,将审核通过的文件归档至指定目 的地。  The existing media service system generally has two implementation modes when performing business processing: controlling the execution order between multiple media tasks by a workflow, or controlling the interaction between multiple media tasks by the solidified business logic. The order of execution can be thought of as a sequence of execution between a solidified workflow control media task. For example, in the media asset management system, firstly, the first executed media task is the media file acquisition, and the file that needs to be transcoded is acquired to the system; then the second executed media task is the media asset review, and the examiner is notified to review. Whether the file meets the technical and policy requirements; Finally, the third executed media task is the media asset archive, which archives the approved documents to the specified destination.
上述媒体业务系统中存在一个业务集中控制点,由这个业务集中控制点按 照业务处理的要求,依次调用需要执行的媒体任务, 并等待调用的媒体任务的 执行响应, 然后根据执行响应决定下一步需要调用的媒体任务。 这样使得媒体 业务存在单点 (即系统中的集中控制点)故障的风险。  There is a service centralized control point in the above media service system. The service centralized control point sequentially calls the media task to be executed according to the requirements of the business processing, and waits for the execution of the invoked media task to execute the response, and then determines the next step according to the execution response. The media task called. This puts the media business at risk of a single point (ie, a centralized point of control in the system) failure.
发明内容 Summary of the invention
本发明实施例提供媒体业务处理方法及媒体业务系统,避免了系统中由于 单点控制带来的单点故障的风险。  The embodiment of the invention provides a media service processing method and a media service system, which avoids the risk of a single point failure caused by single point control in the system.
本发明实施例的第一方面提供一种媒体业务系统,包括至少两个任务执行 子系统, 所述任务执行子系统包括: 任务策略设备、 任务数据存储设备和至少 一个任务执行设备, 其中: 从所述任务数据存储设备获取第一任务数据并根据所述第一任务数据执行任 务; 所述任务处理策略包括第一任务数据的业务类型和第一任务类型;  A first aspect of the embodiments of the present invention provides a media service system, including at least two task execution subsystems, where the task execution subsystem includes: a task policy device, a task data storage device, and at least one task execution device, where: The task data storage device acquires first task data and executes a task according to the first task data; the task processing policy includes a service type of the first task data and a first task type;
所述任务策略设备, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行设备对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据,并将所述第二任务数据储存到与第二任务类型对应的另一任务执 行子系统的任务数据存储设备中,所述第二任务产生策略包括与所述业务类型 对应的业务处理逻辑; The task policy device is configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the task execution device for the first task data, and generate the second task data when the second task data needs to be generated. Including the business type, the second task execution object information, and the second task type Two task data, and the second task data is stored in a task data storage device of another task execution subsystem corresponding to the second task type, the second task generation policy including a service corresponding to the service type Processing logic
所述任务数据存储设备,用于接收前一个任务执行子系统中的任务策略设 备发送的第一任务数据, 并储存所述第一任务数据。  The task data storage device is configured to receive first task data sent by the task policy device in the previous task execution subsystem, and store the first task data.
本发明实施例的第一方面的一种可能实现方式中, 所述系统还包括: 至少 一个业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第一 任务执行对象信息和第一任务类型的第一任务数据;  In a possible implementation manner of the first aspect of the embodiments of the present invention, the system further includes: at least one service request receiving device, configured to generate, according to the received service request, information including a service type, a first task execution object, and a First task data of a task type;
所述任务数据存储设备,还用于储存所述业务请求接收设备生成的第一任 务数据。  The task data storage device is further configured to store first task data generated by the service request receiving device.
本发明实施例的第二方面提供一种媒体业务系统, 包括: 包括至少两个任 务执行子系统, 所述任务执行子系统包括: 任务数据存储设备和至少一个任务 处理设备, 所述任务处理设备包括任务策略模块和任务执行模块, 其中: 所述任务执行模块, 用于根据所述任务策略模块中储存的任务处理策略, 从所述任务数据存储设备中获取第一任务数据并根据所述第一任务数据执行 任务; 所述任务处理策略包括第一任务数据的业务类型和第一任务类型; 所述任务策略模块, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行模块对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据,并将所述第二任务数据储存到与第二任务类型对应的另一任务执 行子系统的任务数据存储设备中,所述第二任务产生策略包括与所述业务类型 对应的业务处理逻辑;  A second aspect of the embodiments of the present invention provides a media service system, including: at least two task execution subsystems, where the task execution subsystem includes: a task data storage device and at least one task processing device, the task processing device And including a task policy module and a task execution module, where: the task execution module is configured to acquire first task data from the task data storage device according to the task processing policy stored in the task policy module, and according to the first a task data execution task; the task processing policy includes a service type of the first task data and a first task type; the task policy module is configured to store the task processing policy, and generate a policy according to the second task And executing, by the task execution module, the task execution result of the first task data, when the second task data needs to be generated, generating second task data including a service type, second task execution object information, and a second task type, and The second task data is stored to another one corresponding to the second task type Service task execution subsystem data storage device, the second task generates policy includes business logic corresponding to the service type;
所述任务数据存储设备,用于接收前一个任务执行子系统中的任务处理设 备发送的第一任务数据, 并储存所述第一任务数据。  The task data storage device is configured to receive first task data sent by the task processing device in the previous task execution subsystem, and store the first task data.
本发明实施例的第二方面的一种可能实现方式中, 所述系统还包括: 至少 一个业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第一 任务执行对象信息和第一任务类型的第一任务数据;  In a possible implementation manner of the second aspect of the embodiments of the present invention, the system further includes: at least one service request receiving device, configured to generate, according to the received service request, a service type, a first task execution object information, and a First task data of a task type;
所述任务数据存储设备,还用于储存所述业务请求接收设备生成的第一任 务数据。 本发明实施例的第三方面提供一种媒体业务系统, 包括: 包括数据存储设 备, 和至少两个任务执行子系统, 所述任务执行子系统包括: 任务策略设备和 至少一个任务执行设备, 其中: 从所述数据存储设备中获取第一任务数据并根据所述第一任务数据执行任务; 所述任务处理策略包括第一任务数据的业务类型和第一任务类型; The task data storage device is further configured to store first task data generated by the service request receiving device. A third aspect of the embodiments of the present invention provides a media service system, including: a data storage device, and at least two task execution subsystems, where the task execution subsystem includes: a task policy device and at least one task execution device, where Obtaining first task data from the data storage device and executing a task according to the first task data; the task processing policy includes a service type of the first task data and a first task type;
所述任务策略设备, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行设备对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据, 并将所述第二任务数据储存到所述数据存储设备中, 所述第二任 务产生策略包括与所述业务类型对应的业务处理逻辑;  The task policy device is configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the task execution device for the first task data, and generate the second task data when the second task data needs to be generated. Include a service type, a second task execution object information, and a second task type second task data, and store the second task data in the data storage device, where the second task generation policy includes the service Type of business processing logic;
所述数据存储设备,用于接收前一个任务执行子系统中的任务策略设备发 送的第一任务数据, 并储存所述第一任务数据。  The data storage device is configured to receive first task data sent by the task policy device in the previous task execution subsystem, and store the first task data.
本发明实施例第三方面的一种可能实现方式中, 所述系统还包括: 至少一 个业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第二任 务执行对象信息和第一任务类型的第一任务数据;  In a possible implementation manner of the third aspect of the embodiments of the present invention, the system further includes: at least one service request receiving device, configured to generate, according to the received service request, information including a service type, a second task execution object, and the first First task data of the task type;
所述数据存储设备,还用于储存所述业务请求接收设备生成的第一任务数 据。  The data storage device is further configured to store first task data generated by the service request receiving device.
本发明实施例的第四方面提供一种媒体业务系统, 包括数据存储设备, 和 至少一个第一任务执行子系统和至少一个第二任务执行子系统;  A fourth aspect of the embodiments of the present invention provides a media service system, including a data storage device, and at least one first task execution subsystem and at least one second task execution subsystem;
其中所述第一任务执行子系统包括:任务策略设备和至少一个任务执行设 备; 所述第二任务执行子系统包括: 任务策略设备、 任务数据存储设备和至少 一个任务执行设备; 获取第一任务数据并根据所述第一任务数据执行任务;所述任务处理策略包括 第一任务数据的业务类型和第一任务类型;  The first task execution subsystem includes: a task policy device and at least one task execution device; the second task execution subsystem includes: a task policy device, a task data storage device, and at least one task execution device; acquiring the first task And performing a task according to the first task data; the task processing policy includes a service type of the first task data and a first task type;
所述任务策略设备, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行设备对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据, 并将所述第二任务数据储存到所述数据存储设备, 或储存到与所 述第二任务类型对应的第二任务执行子系统中的任务数据存储设备中,所述第 二任务产生策略包括与所述业务类型对应的业务处理逻辑; The task policy device is configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the task execution device for the first task data, and generate the second task data when the second task data needs to be generated. Including the business type, the second task execution object information, and the second task type Two task data, and storing the second task data to the data storage device, or to a task data storage device in a second task execution subsystem corresponding to the second task type, the second The task generation policy includes business processing logic corresponding to the service type;
所述任务数据存储设备,用于储存所述第二任务执行子系统中任务执行设 备获取的所述第一任务数据;  The task data storage device is configured to store the first task data acquired by the task execution device in the second task execution subsystem;
所述数据存储设备,用于储存所述第一任务执行子系统中任务执行设备获 取的所述第一任务数据。  The data storage device is configured to store the first task data obtained by the task execution device in the first task execution subsystem.
本发明实施例的第四方面的一种可能实现方式中, 所述系统还包括: 至少 一个业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第一 任务执行对象信息和第一任务类型的第一任务数据;  In a possible implementation manner of the fourth aspect of the embodiments of the present invention, the system further includes: at least one service request receiving device, configured to generate, according to the received service request, information including a service type, a first task execution object, and a First task data of a task type;
所述任务数据存储设备或所述数据存储设备,还用于储存所述业务请求接 收设备生成的第一任务数据。  The task data storage device or the data storage device is further configured to store first task data generated by the service request receiving device.
本发明实施例的第五方面还提供一种媒体业务系统, 包括: 至少一个第一 任务执行子系统和至少一个第二任务执行子系统, 其中:  A fifth aspect of the embodiments of the present invention further provides a media service system, including: at least one first task execution subsystem and at least one second task execution subsystem, where:
所述第一任务执行子系统包括任务数据存储设备和至少一个任务处理设 备, 所述任务处理设备包括任务策略模块和任务执行模块; 所述第二任务执行 子系统包括任务策略设备、 任务数据存储设备和至少一个任务执行设备; 所述任务执行模块和任务执行设备,用于根据任务处理策略获取第一任务 数据并根据所述第一任务数据执行任务;所述任务处理策略包括第一任务数据 的业务类型和第一任务类型;  The first task execution subsystem includes a task data storage device and at least one task processing device, the task processing device includes a task policy module and a task execution module; the second task execution subsystem includes a task policy device, and task data storage. The device and the at least one task execution device; the task execution module and the task execution device, configured to acquire the first task data according to the task processing policy and execute the task according to the first task data; the task processing policy includes the first task data Business type and first task type;
所述任务策略模块和任务策略设备, 用于储存所述任务处理策略,且根据 第二任务产生策略及对所述第一任务数据的任务执行结果,在需要生成第二任 务数据时, 生成包括业务类型、第二任务执行对象信息和第二任务类型的第二 任务数据 ,并将所述第二任务数据储存到与所述第二任务类型对应的第二任务 执行子系统中的任务数据存储设备,或第一任务执行子系统中的任务数据存储 设备, 所述第二任务产生策略包括与所述业务类型对应的业务处理逻辑; 所述任务数据存储设备,用于接收前一个任务执行子系统发送的第一任务 数据, 并储存所述第一任务数据。  The task policy module and the task policy device are configured to store the task processing policy, and generate a policy according to the second task and a task execution result of the first task data, and generate, when the second task data needs to be generated, generate a service type, second task execution object information, and second task data of the second task type, and storing the second task data to task data storage in a second task execution subsystem corresponding to the second task type a device, or a task data storage device in the first task execution subsystem, the second task generation policy includes service processing logic corresponding to the service type; the task data storage device is configured to receive a previous task execution device The first task data sent by the system, and storing the first task data.
本发明实施例的第五方面的一种可能的实现方式中, 所述系统还包括: 至 少一个业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第 一任务执行对象信息和第一任务类型的第一任务数据; In a possible implementation manner of the fifth aspect of the embodiment of the present invention, the system further includes: Having one less service request receiving device, configured to generate, according to the received service request, first task data including a service type, first task execution object information, and a first task type;
所述任务数据存储设备,还用于储存所述业务请求接收设备生成的第一任 务数据。  The task data storage device is further configured to store first task data generated by the service request receiving device.
本发明实施例的第六方面提供一种媒体业务处理方法,用于媒体业务系统 中所包括的任务执行子系统的业务处理, 包括:  A sixth aspect of the embodiments of the present invention provides a media service processing method, which is used for service processing of a task execution subsystem included in a media service system, including:
所述任务执行子系统获取任务处理策略,所述任务处理策略包括第一任务 数据的业务类型和第一任务类型;  The task execution subsystem acquires a task processing policy, where the task processing policy includes a service type of the first task data and a first task type;
所述任务执行子系统根据所述任务处理策略获取对应的第一任务数据并 根据所述第一任务数据执行任务;  The task execution subsystem acquires corresponding first task data according to the task processing policy and executes a task according to the first task data;
所述任务执行子系统根据第二任务产生策略及对所述第一任务数据的任 务执行结果, 在需要生成第二任务数据时, 生成包括业务类型、 第二任务执行 对象信息和第二任务类型的第二任务数据,以便与所述第二任务类型对应的另 一任务执行子系统根据所述第二任务数据执行任务,所述第二任务产生策略包 括与所述业务类型对应的业务处理逻辑。  The task execution subsystem generates a policy including a service type, a second task execution object information, and a second task type according to the second task generation policy and the task execution result of the first task data, when the second task data needs to be generated. Second task data, so that another task execution subsystem corresponding to the second task type performs a task according to the second task data, and the second task generation policy includes a business processing logic corresponding to the service type .
本发明实施例的第六方面的第一种可能的实现方式中,所述任务执行子系 统获取任务处理策略, 之前还包括:  In a first possible implementation manner of the sixth aspect of the embodiments of the present invention, the task execution subsystem acquires a task processing policy, and further includes:
所述媒体业务系统中的任务请求接收设备接收任务请求,并根据所述任务 请求生成包括第一任务类型和业务类型的第一任务数据。  The task request receiving device in the media service system receives the task request, and generates first task data including the first task type and the service type according to the task request.
结合本发明实施例的第六方面, 或第六方面的第一种可能实现方式,在本 发明实施例第六方面的第二种实现方式中, 所述任务执行策略还包括: 当所述 任务执行子系统的负荷未超过预置的阔值时, 获取任务数据;  With reference to the sixth aspect of the embodiments of the present invention, or the first possible implementation manner of the sixth aspect, in a second implementation manner of the sixth aspect of the embodiments, the task execution policy further includes: when the task is Obtain task data when the load of the execution subsystem does not exceed the preset threshold;
所述生成的第二任务数据还包括如下信息的至少一个: 任务标识、任务执 行的参数和任务控制信息。  The generated second task data further includes at least one of the following: a task identifier, a task execution parameter, and task control information.
结合本发明实施例的第六方面,或第六方面的第一种可能实现方式或第二 种可能实现方式, 在本发明实施例第六方面的第三种实现方式中, 所述任务执 行子系统根据第二任务产生策略及所述任务执行设备对所述第一任务数据的 任务执行结果,在不需要生成第二任务数据时,输出所述第一任务数据的任务 执行结果。 结合本发明实施例的第六方面,或第六方面的第一种可能实现方式或第二 种可能实现方式或第三种实现方式,在本发明实施例第六方面的第四种实现方 式中, 所述业务处理逻辑中包括至少两个任务,及所述至少两个任务的执行顺 序关系; 所述任务执行子系统对所述第一任务数据的任务执行结果具体包括: 对第一任务数据中包括的第一任务类型的任务执行完成的指示和执行后的对 象数据; With reference to the sixth aspect of the embodiments of the present invention, or the first possible implementation manner or the second possible implementation manner of the sixth aspect, in a third implementation manner of the sixth aspect of the embodiments of the present invention, the task executive The system generates a policy according to the second task and a task execution result of the task execution device for the first task data, and outputs a task execution result of the first task data when the second task data is not required to be generated. With reference to the sixth aspect of the embodiments of the present invention, or the first possible implementation manner of the sixth aspect, or the second possible implementation manner or the third implementation manner, in the fourth implementation manner of the sixth aspect of the embodiment of the present invention, The service processing logic includes at least two tasks, and an execution order relationship of the at least two tasks. The task execution result of the task execution subsystem to the first task data specifically includes: The instruction of the task execution completion of the first task type included in the first task type and the object data after execution;
则所述任务执行子系统生成的第二任务数据中的第二任务执行对象信息 包括所述执行后的对象数据 ,第二任务类型为所述第一任务类型对应任务的下 一个任务的类型。  Then, the second task execution object information in the second task data generated by the task execution subsystem includes the executed object data, and the second task type is a type of the next task corresponding to the first task type.
可见, 本实施例的媒体业务系统中可以由多个任务执行子系统来执行任 务,但并没有一个集中控制点来控制各个任务执行子系统之间的执行顺序, 而 是将控制执行顺序的功能分散到各个任务执行子系统中,由任务执行子系统根 据当前对第一任务数据的任务执行结果及第二任务产生策略来产生第二任务 数据, 并将由另一任务执行子系统根据该第二任务数据执行任务,从而将多个 任务执行子系统所执行的任务关联起来, 实现了某一特定的媒体业务, 这样可 以避免通过一个集中控制点来控制任务执行顺序所带来的单点故障风险。 附图说明  It can be seen that the media service system in this embodiment can be executed by multiple task execution subsystems, but there is no centralized control point to control the execution order between the task execution subsystems, but the function of controlling the execution order. Distributed to each task execution subsystem, the task execution subsystem generates second task data according to the current task execution result of the first task data and the second task generation policy, and is executed by another task execution subsystem according to the second Task data performs tasks to correlate tasks performed by multiple task execution subsystems to implement a specific media service, thereby avoiding the risk of single point of failure caused by a centralized control point to control the order of task execution . DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1是本发明实施例提供的一种媒体业务系统的结构示意图;  1 is a schematic structural diagram of a media service system according to an embodiment of the present invention;
图 2是本发明实施例提供的一种转码业务系统的结构示意图;  2 is a schematic structural diagram of a transcoding service system according to an embodiment of the present invention;
图 3是本发明实施例提供的另一种媒体业务系统的结构示意图; 图 4是本发明实施例提供的另一种媒体业务系统的结构示意图; 图 5是本发明实施例提供的另一种媒体业务系统的结构示意图; 图 6是本发明实施例提供的另一种媒体业务系统的结构示意图; 图 7是本发明实施例提供的一种媒体业务处理方法的流程图;  3 is a schematic structural diagram of another media service system according to an embodiment of the present invention; FIG. 4 is a schematic structural diagram of another media service system according to an embodiment of the present invention; FIG. FIG. 6 is a schematic structural diagram of another media service system according to an embodiment of the present invention; FIG. 7 is a flowchart of a media service processing method according to an embodiment of the present invention;
图 8是本发明实施例提供的另一种媒体业务处理方法的流程图。 具体实施方式 FIG. 8 is a flowchart of another media service processing method according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
本发明实施例提供一种媒体业务系统比如转码业务系统或媒体资产管理 系统等, 结构示意图如图 1所示, 包括: 至少两个任务执行子系统 100 (图 1 中只画出两个), 多个任务执行子系统 100执行的任务不同比如一个任务执行 子系统 100执行文件上载, 另一个任务执行子系统 100执行文件分片等,且一 个任务执行子系统 100可以执行一个或多个任务。  The embodiment of the present invention provides a media service system, such as a transcoding service system or a media asset management system, and the schematic diagram is as shown in FIG. 1 , including: at least two task execution subsystems 100 (only two are shown in FIG. 1 ) The tasks performed by the plurality of task execution subsystems 100 are different, for example, one task execution subsystem 100 performs file uploading, another task execution subsystem 100 performs file segmentation, etc., and one task execution subsystem 100 can execute one or more tasks. .
而对于其中任意一个任务执行子系统 100 来说可以包括: 任务策略设备 10、 任务数据存储设备 11和至少一个任务执行设备 12, 其中:  For any of the task execution subsystems 100, the task management device 10, the task data storage device 11, and the at least one task execution device 12, wherein:
任务执行设备 12, 用于根据任务策略设备 10中储存的任务处理策略, 从 任务数据存储设备 11 获取第一任务数据并根据获取的第一任务数据执行任 务。  The task execution device 12 is configured to acquire the first task data from the task data storage device 11 according to the task processing policy stored in the task policy device 10, and execute the task according to the acquired first task data.
可以理解, 任务执行设备 12是可以执行一定任务的设备, 比如执行文件 上载、 文件分片或文件转码等任务的设备, 在执行任务的具体过程中, 任务执 行设备 12可以周期性地主动向任务数据存储设备 11获取第一任务数据,然后 才会根据第一任务数据执行一定的任务。其中,任务处理策略是指获取第一任 务数据的策略, 可以储存在任务策略设备 10中, 主要规定该任务执行设备 12 处理什么类型业务下的何种任务, 比如该任务处理策略指示了任务执行设备 12执行一种或多种类型业务下的一个或多个或全部的任务, 则在任务处理策 略中可以包括业务类型, 进一步地, 还可以包括业务类型下的第一任务类型, 其中包括的业务类型可以是一种类型或多种类型。 这里业务和任务是不同的, 业务是由通过固化的逻辑或工作流控制的多个任务所组成,可以实现的一定用 户需求比如转码业务或资产管理业务或渲染业务等,而任务是业务处理过程中 的功能实现, 是对于文件执行的最小单位, 则上述的业务类型是指业务属性, 而任务类型是指任务的功能属性。  It can be understood that the task execution device 12 is a device that can perform certain tasks, such as a device that performs tasks such as file uploading, file sharding, or file transcoding. In a specific process of executing a task, the task executing device 12 can periodically actively submit tasks to the task. The data storage device 11 acquires the first task data, and then performs a certain task according to the first task data. The task processing policy refers to a policy for acquiring the first task data, which may be stored in the task policy device 10, and mainly specifies what tasks the task execution device 12 processes under what type of service, for example, the task processing policy indicates task execution. The device 12 may perform one or more or all tasks in one or more types of services, and may include a service type in the task processing policy, and further include a first task type in the service type, where The business type can be one type or multiple types. Here, the business and tasks are different. The business is composed of multiple tasks controlled by the solidified logic or workflow, and certain user requirements such as transcoding services or asset management services or rendering services can be realized, and the tasks are business processing. The function implementation in the process is the minimum unit for file execution. The above service type refers to the business attribute, and the task type refers to the function attribute of the task.
可以理解,任务处理策略还可以规定在什么情况下获取第一任务数据, 比 如当任务执行设备 12当前的负荷未超过预置的阔值时, 才会获取第一任务数 据, 否则不会从任务数据存储设备 11获取第一任务数据。 任务处理策略还可 以包括其它获取第一任务数据的策略,其具体的内容可以是用户根据实际需要 预置在任务策略设备 10中的。且任务执行设备 12获取的第一任务数据可以包 括业务类型、第一任务类型及第一任务执行对象信息, 其中第一任务执行对象 信息是指执行任务时所作用的数据信息,比如源任务对象即开始执行的任务对 象(比如转码后的文件), 或目的任务对象即执行结束的任务对象等。 It can be understood that the task processing strategy can also specify under what circumstances the first task data is obtained, The first task data is acquired, for example, when the current load of the task execution device 12 does not exceed the preset threshold, otherwise the first task data is not acquired from the task data storage device 11. The task processing policy may further include other policies for acquiring the first task data, and the specific content may be preset by the user in the task policy device 10 according to actual needs. The first task data acquired by the task execution device 12 may include a service type, a first task type, and first task execution object information, where the first task execution object information refers to data information that is used when the task is executed, such as a source task object. That is, the task object that starts execution (such as the file after transcoding), or the task object that is the target task, that is, the task object that ends the execution.
需要说明的是,在每个任务执行子系统 100都可以部署多个任务执行设备 12 (在图 1中多个任务执行设备 12用交错重叠的方框来表示 ),每个任务执行 设备 12之间相互独立运行而没有耦合关系 ,这样多个任务执行设备 12可以并 发执行任务, 因此可以缩短任务的完成时间, 进而提高了系统的性能; 且当某 个任务执行任务设备 12因故障或过载不能执行任务时, 可以由其它任务执行 设备 12来执行, 从而避免了单点故障风险, 进而提高了系统的可靠性。  It should be noted that each task execution subsystem 100 can deploy a plurality of task execution devices 12 (the plurality of task execution devices 12 are represented by interleaved overlapping boxes in FIG. 1), and each task execution device 12 They operate independently of each other without a coupling relationship, so that the plurality of task execution devices 12 can execute tasks concurrently, thereby shortening the completion time of the tasks, thereby improving the performance of the system; and when a certain task execution task device 12 fails due to a fault or overload When the task is executed, it can be executed by the other task execution device 12, thereby avoiding the risk of a single point of failure, thereby improving the reliability of the system.
任务策略设备 10 , 用于储存上述的任务处理策略, 且根据第二任务产生 策略及任务执行设备 12对第一任务数据的任务执行结果, 在需要生成第二任 务数据时, 生成包括业务类型、第二任务执行对象信息和第二任务类型的第二 任务数据 ,并将生成的第二任务数据储存到与该第二任务类型对应的另一任务 执行子系统 100所包括的任务数据存储设备 11中; 在不需要生成第二任务数 据时, 输出第一任务数据的任务执行结果。  The task policy device 10 is configured to store the foregoing task processing policy, and generate a policy and a task execution result of the task execution device 12 for the first task data according to the second task, and generate a service type, when the second task data needs to be generated. The second task executes the object information and the second task data of the second task type, and stores the generated second task data to the task data storage device 11 included in the other task execution subsystem 100 corresponding to the second task type. The task execution result of the first task data is output when the second task data is not required to be generated.
任务执行设备 12在执行任务的过程中, 可以将任务执行结果发送到任务 策略设备 10 , 这里任务执行结果可以包括任务执行设备 12获取的第一任务数 据, 任务执行后的对象(比如进行转码后的文件等)和任务执行状态信息(包 括尚未开始、 正在执行、 正常完成或异常终止等状态)等结果, 进一步地, 如 果任务执行设备 12执行的任务异常终止, 在在任务执行结果中除了任务执行 状态信息之外, 还可以包括导致异常终止的原因等信息。  The task execution device 12 may send the task execution result to the task policy device 10 during the execution of the task, where the task execution result may include the first task data acquired by the task execution device 12, and the object after the task is executed (for example, transcoding) Subsequent files, etc.) and task execution status information (including states such as not yet started, executing, normal completion, or abnormal termination), etc. Further, if the task performed by the task execution device 12 is abnormally terminated, in addition to the task execution result In addition to the task execution status information, information such as the cause of the abnormal termination may also be included.
这里第二任务产生策略是指产生当前任务执行设备 12所执行任务的下一 个任务数据的策略, 主要可以包括是否需要产生第二任务数据的策略, 及产生 何种类型任务的策略等, 具体地, 在第二任务产生策略中包括与任务执行设备 12 获取第一任务数据中的业务类型对应的业务处理逻辑, 其中业务处理逻辑 是指实现一个业务的多个任务之间的关系。 Here, the second task generation policy refers to a policy for generating the next task data of the task performed by the current task execution device 12, and may mainly include a policy of whether to generate the second task data, a policy of generating a type of task, etc., specifically In the second task generation policy, the service processing logic corresponding to the service type in the first task data is acquired by the task execution device 12, where the business processing logic Refers to the relationship between multiple tasks that implement a business.
具体地,如果在业务处理逻辑中可以包括业务类型对应的业务所包括的至 少两个任务, 及所述至少两个任务的执行顺序关系等, 任务执行设备 12对第 一任务数据的任务执行结果包括:对第一任务数据中包括的第一任务类型的任 务执行完成的指示和执行后的对象数据等。 这样任务策略设备 10生成的第二 任务数据中的第二任务执行对象信息就可以包括任务执行结果的中执行后的 对象数据, 第二任务类型为第一任务类型对应任务的下一个任务的类型。  Specifically, if the service processing logic includes at least two tasks included in the service corresponding to the service type, and an execution order relationship of the at least two tasks, the task execution device 12 performs a task execution result on the first task data. The method includes: an instruction to complete execution of the task of the first task type included in the first task data, and object data after execution, and the like. The second task execution object information in the second task data generated by the task policy device 10 may include the object data after execution in the task execution result, and the second task type is the type of the next task corresponding to the task in the first task type. .
例如: 对于转码业务来说, 业务处理逻辑包括: 文件上载-文件分片 -文件 转码-文件合并 -文件输出, 如果当前任务执行设备 12执行文件转码的任务, 且正常完成, 则任务策略设备 10生成的第二任务数据中包括的第二任务类型 即为文件合并, 而业务类型为转码业务,且第二任务执行对象信息为进行转码 后的文件,并将第二任务数据储存到执行文件合并的任务执行子系统 100的任 务数据存储设备 11中。  For example: For the transcoding service, the business processing logic includes: file uploading - file fragmentation - file transcoding - file merging - file output, if the current task execution device 12 performs the task of file transcoding, and the task is completed normally, the task The second task type included in the second task data generated by the policy device 10 is file merge, and the service type is a transcoding service, and the second task execution object information is a transcoded file, and the second task data is It is stored in the task data storage device 11 of the task execution subsystem 100 that performs file merge.
如果当前任务执行设备 12执行文件输出的任务, 且正常完成, 则任务策 略设备 10确定不需要生成第二任务数据。  If the current task execution device 12 performs the task of file output and is normally completed, the task policy device 10 determines that the second task data does not need to be generated.
需要说明的是, 经过任务策略设备 10生成的第二任务数据中除了包括业 务类型、第二任务执行对象信息和第二任务类型之外,还可以包括如下信息的 至少一个: 任务标识、 任务执行的参数和任务控制信息等。 其中的任务执行参 数是指在任务执行过程中的具体要求, 比如对于文件转码任务来说,任务执行 参数可以包括码率、编码格式或文件封装格式等参数; 任务控制信息是指当前 任务或后续任务控制需要的信息, 例如对于文件合并的任务来说, 只有当全部 分片文件的转码任务都完成后, 才可以执行合并, 因此文件合并任务的任务控 制信息中就要有全部文件分片的相关信息比如全部分片文件的转码输出标识 信息 (如文件名) 列表等, 则任务执行设备 12在进行文件合并时可根据标识 信息列表找到对应的转码后分片文件, 并进行文件合并, 其中全部文件分片的 相关信息只有在执行文件分片任务时才能确定,因此在文件分片任务完成后生 成后续的任务数据时需要包括该控制信息。  It should be noted that, in addition to the service type, the second task execution object information, and the second task type, the second task data generated by the task policy device 10 may further include at least one of the following information: task identifier, task execution. Parameters and task control information, etc. The task execution parameter refers to specific requirements during the task execution process. For example, for the file transcoding task, the task execution parameter may include parameters such as a code rate, an encoding format, or a file encapsulation format; the task control information refers to the current task or The information required for subsequent task control, for example, for the task of file merging, the merging can be performed only after the transcoding task of all the partial files is completed, so all the file points in the task control information of the file merging task are required. The related information of the slice, such as the transcoding output identification information (such as a file name) list of the entire partial file, and the task execution device 12 may find the corresponding transcoded slice file according to the identification information list when performing file combination, and perform The file is merged, and the information about all the file fragments can be determined only when the file fragmentation task is executed. Therefore, the control information needs to be included when the subsequent task data is generated after the file fragmentation task is completed.
任务数据存储设备 11 , 用于储存第一任务数据, 该第一任务数据可以是 前一个任务执行子系统 100的任务策略设备 10生成并发送的。 该任务数据存 储设备 11可以提供第一任务数据的分布式存取等管理功能, 但是不提供业务 控制功能, 允许多个任务执行设备 12并发获取任务数据, 具体地, 可基于现 有分布式文件系统或分布式数据库等技术实现, 且每个任务执行子系统 100 中也可以部署多个任务数据存储设备 11来避免单点故障的风险。 The task data storage device 11 is configured to store first task data, which may be generated and sent by the task policy device 10 of the previous task execution subsystem 100. The task data is stored The storage device 11 can provide management functions such as distributed access of the first task data, but does not provide a service control function, allowing the plurality of task execution devices 12 to concurrently acquire task data, specifically, based on an existing distributed file system or distribution. A technology such as a database is implemented, and a plurality of task data storage devices 11 can be deployed in each task execution subsystem 100 to avoid the risk of a single point of failure.
需要说明的是, 上述的第一任务数据和第二任务数据, 第一任务执行对象 信息和第二任务执行对象信息,及第一任务类型和第二任务类型并不表示顺序 关系, 而是表示不同的任务数据、 任务执行对象信息和任务类型。  It should be noted that the first task data and the second task data, the first task execution object information and the second task execution object information, and the first task type and the second task type do not represent a sequential relationship, but represent Different task data, task execution object information, and task type.
可见, 本实施例的媒体业务系统中包括多个任务执行子系统 100, 但并没 有一个集中控制点来控制各个任务执行子系统 100之间的执行顺序,而是由分 散到各个任务执行子系统 100 包括的任务策略设备 10, 来根据任务执行子系 统 100中任务执行设备 12的任务执行结果及下一任务产生策略来产生下一任 务数据,并将产生的下一任务数据储存到下一任务执行子系统 100的任务数据 存储设备 11 中, 从而将多个任务执行子系统所执行的任务关联起来, 实现了 某一特定的媒体业务,这样可以避免通过一个集中控制点来控制任务执行顺序 所带来的单点故障风险。  It can be seen that the media service system of this embodiment includes multiple task execution subsystems 100, but there is no centralized control point to control the execution order between the task execution subsystems 100, but is distributed to each task execution subsystem. 100 includes a task policy device 10 for generating a next task data according to a task execution result of the task execution device 12 and a next task generation policy in the task execution subsystem 100, and storing the generated next task data to the next task Executing the task data storage device 11 of the subsystem 100, thereby associating the tasks performed by the plurality of task execution subsystems, realizing a specific media service, thereby avoiding controlling the task execution order through a centralized control point The risk of a single point of failure.
另夕卜,由于每个任务执行子系统在执行任务时总是通过任务执行设备主动 轮询获取任务数据,使得多个任务执行子系统之间没有相互依赖关系, 这样可 以避免由于单点控制所带来系统性能扩展的制约,从而提高了系统的性能。例 如: 1个媒体业务请求可以通过 5个任务来实现, 即可以通过 5个任务执行子 系统 100分别执行 5个任务来实现,而任务执行子系统 100中的 1个任务执行 设备 12最大处理性能是 500任务 /秒, 则此时系统的业务处理性能是 100媒体 业务请求 /秒, 如果在每个任务执行子系统 100中增加部署 1任务执行设备 12 后, 系统性能即可提升到 200媒体业务请求 /秒。  In addition, since each task execution subsystem always acquires task data through the task execution device actively polling when executing the task, so that there is no mutual dependency relationship between the plurality of task execution subsystems, thereby avoiding the single point control It brings the constraints of system performance expansion, which improves the performance of the system. For example: 1 media service request can be implemented by 5 tasks, that is, 5 tasks can be executed by 5 task execution subsystems 100, and 1 task execution device 12 in task execution subsystem 100 can achieve maximum processing performance. If it is 500 tasks/second, then the service processing performance of the system is 100 media service requests/second. If the deployment of the task execution device 12 is added to each task execution subsystem 100, the system performance can be improved to 200 media services. Request / sec.
进一步地, 在一个具体的实施例中, 媒体业务系统除了可以包括如图 1 所示的多个任务执行子系统 100之外,还可以包括至少一个业务请求接收设备 Further, in a specific embodiment, the media service system may include at least one service request receiving device in addition to the plurality of task execution subsystems 100 as shown in FIG.
101 , 用于根据接收的业务请求, 生成包括业务类型、 第一任务执行对象信息 和第一任务类型的第一任务数据,并将第一任务数据储存到与第一任务类型对 应的任务执行子系统 100中的任务数据存储设备 11中, 这样上述的任务数据 存储设备 11还用于储存业务请求接收设备 101生成的第一任务数据。 其中该 业务请求是用来请求该媒体业务系统实现某个业务的请求,比如对文件的转码 请求等。 101. The method is configured to generate, according to the received service request, first task data including a service type, first task execution object information, and a first task type, and store the first task data to a task performer corresponding to the first task type. In the task data storage device 11 in the system 100, the task data storage device 11 is further configured to store the first task data generated by the service request receiving device 101. Which should A service request is a request for requesting the media service system to implement a certain service, such as a transcoding request for a file.
其中,业务请求接收设备 101可以根据第一任务产生策略来生成第一任务 数据, 该第一任务产生策略中包括该业务请求对应的业务类型的业务处理逻 辑, 比如该业务请求是转码业务的请求, 则生成的第一任务类型为文件上载的 任务,且生成的第一任务数据中包括的第一任务执行对象信息可以包括需要进 行上行的文件等信息。当业务请求接收设备 101接收业务请求并生成第一任务 数据后,可以将该第一任务数据储存到与第一任务类型对应的任务执行子系统 The service request receiving device 101 may generate the first task data according to the first task generation policy, where the first task generation policy includes service processing logic of the service type corresponding to the service request, for example, the service request is a transcoding service. The requesting, the generated first task type is a file uploading task, and the first task execution object information included in the generated first task data may include information such as a file to be uplinked. After the service request receiving device 101 receives the service request and generates the first task data, the first task data may be stored to the task execution subsystem corresponding to the first task type.
100的任务数据存储设备 11中。 100 of the task data storage device 11 .
在具体实现时, 在媒体业务系统中可以部署多个业务请求接收设备 101 In a specific implementation, multiple service request receiving devices 101 may be deployed in the media service system.
(在图 1中多个业务请求接收设备 101用交错重叠的方框来表示), 从而避免 单点故障的风险且能提高系统性能。 (The plurality of service request receiving devices 101 are represented by interleaved blocks in Fig. 1), thereby avoiding the risk of a single point of failure and improving system performance.
可以理解, 在媒体业务系统中可以包括用户接口即业务请求接收设备 It can be understood that the user interface, that is, the service request receiving device, can be included in the media service system.
101 , 来接收用户触发的任业务请求, 并根据业务请求来生成第一任务数据, 在这种情况下, 第一任务数据中除了该业务请求对应的业务类型、第一任务执 行对象信息和第一任务类型之外, 还可以包括业务请求标识、 任务标识、 任务 执行的参数和任务控制信息等。 以下以具体的转码业务系统为例来说明, 参考图 2所示,转码业务系统包 括转码业务请求接收设备 200、 上载任务执行子系统 201、 分片任务执行子系 统 202、 转码任务执行子系统 203、 合并任务执行子系统 204和输出任务执行 子系统 205 , 其中: 101. Receive a service request triggered by a user, and generate first task data according to the service request. In this case, the service type corresponding to the service request, the first task execution object information, and the first task data. In addition to a task type, it may also include a service request identifier, a task identifier, a task execution parameter, and task control information. The following is a specific transcoding service system as an example. Referring to FIG. 2, the transcoding service system includes a transcoding service request receiving device 200, an upload task execution subsystem 201, a fragmentation task execution subsystem 202, and a transcoding task. An execution subsystem 203, a merge task execution subsystem 204, and an output task execution subsystem 205, wherein:
( 1 )转码业务请求接收设备 200接收进行转码的业务请求, 根据第一任 务产生策略即转码业务的业务处理逻辑,生成第一任务数据并发送给上载任务 执行子系统 201中的上载任务数据存储设备, 其中第一任务数据可以包括: 该 业务请求对应的业务类型即转码,任务类型为文件上载及任务执行对象信息即 需要上载的文件, 还可以包括业务请求标识等信息。  (1) The transcoding service request receiving device 200 receives the service request for transcoding, and generates the first task data according to the first task generation policy, that is, the service processing logic of the transcoding service, and sends the first task data to the uploading in the upload task execution subsystem 201. The task data storage device, wherein the first task data may include: a service type corresponding to the service request, that is, a transcoding, and the task type is a file uploading and task execution object information, that is, a file to be uploaded, and may also include information such as a service request identifier.
( 2 )上载任务执行子系统 201中包括上载任务数据存储设备、 上载任务 执行设备和上载任务策略设备,其中上载任务执行设备从上载任务策略设备中 获取第一任务处理策略,该第一任务处理策略规定上载任务执行设备可以处理 业务类型为任何类型业务且任务类型为文件上载的任务,则该上载任务执行设 备根据第一任务处理策略周期性地主动从上载任务数据存储设备中获取上述 的第一任务数据, 并将其中需要上载的文件上载到本地。 该上载任务执行设备 在获取第一任务数据的过程中,还可以判断当前的负荷是否超过阔值, 如果未 超过才从上载任务数据存储设备中取出第一任务数据。 (2) The upload task execution subsystem 201 includes an upload task data storage device, an upload task execution device, and an upload task policy device, wherein the upload task execution device acquires a first task processing policy from the upload task policy device, and the first task processing Policy stipulates that the upload task execution device can handle If the service type is any type of service and the task type is a file uploading task, the uploading task executing device periodically and actively acquires the first task data from the uploading task data storage device according to the first task processing policy, and needs to be needed therein. The uploaded file is uploaded locally. During the process of acquiring the first task data, the upload task execution device may further determine whether the current load exceeds a threshold, and if not, remove the first task data from the upload task data storage device.
上载任务执行设备在上载完文件后,将上载任务执行结果报告给上载任务 策略设备, 具体可以包括是否完成上载或上载异常终止等信息,还可以包括上 载的文件的存储地址等等。  After the uploaded task execution device uploads the file, the upload task execution result is reported to the upload task policy device, which may include information such as whether to complete the upload or upload abnormal termination, and may also include the storage address of the uploaded file and the like.
上载任务策略设备根据第二任务产生策略(包括转码业务的业务处理逻 辑)和上载任务执行结果, 如果上载任务执行结果指示上载任务完成, 则可以 生成包括任务类型为分片, 业务类型为转码,且任务执行对象为上载后的文件 的第二任务数据,并将第二任务数据送到分片任务执行子系统 202的分片任务 数据存储设备中。  The uploading task policy device generates a policy according to the second task (including the business processing logic of the transcoding service) and the uploading task execution result. If the uploading task execution result indicates that the uploading task is completed, the task type may be fragmented, and the service type is rotated. The code, and the task execution object is the second task data of the uploaded file, and the second task data is sent to the fragmentation task data storage device of the fragmentation task execution subsystem 202.
( 3 )分片任务执行子系统 202中包括分片任务数据存储设备、 分片任务 执行设备和分片任务策略设备,其中的分片任务执行设备从分片任务策略设备 中获取第二任务处理策略,该第二任务处理策略规定分片任务执行设备可以处 理业务类型为转码或渲染业务, 且任务类型为文件分片的任务, 则该分片任务 执行设备根据第二任务处理策略周期性地主动从分片任务数据存储设备中获 取上述的第二任务数据, 并将其中需要分片的文件进行分片。该分片任务执行 设备在获取第二任务数据的过程中,还可以判断当前的负荷是否超过阔值,如 果未超过才从分片任务数据存储设备中取出第二任务数据。  (3) The fragmentation task execution subsystem 202 includes a fragmentation task data storage device, a fragmentation task execution device, and a fragmentation task policy device, wherein the fragmentation task execution device acquires the second task processing from the fragmentation task policy device. a policy, the second task processing policy stipulates that the fragmentation task execution device can process the service type of the transcoding or rendering service, and the task type is a file fragmentation task, and the fragmentation task execution device periodically processes the policy according to the second task. The second task data is obtained from the fragmentation task data storage device, and the files that need to be sliced are fragmented. The shard task execution device may also determine whether the current load exceeds the threshold value during the process of acquiring the second task data, and if not, exceeds the second task data from the shard task data storage device.
分片任务执行设备在对文件分片后,将分片任务执行结果报告给分片任务 策略设备, 具体可以包括是否完成分片或分片异常终止等信息,还可以包括分 片后文件的标识或内容等等。  The fragmentation task execution device reports the fragmentation task execution result to the fragmentation task policy device after the fragmentation of the file, and may include information such as whether the fragmentation or fragmentation is abnormally terminated, and may also include the identifier of the fragmented file. Or content and so on.
分片任务策略设备根据第三任务产生策略和分片任务执行结果,如果分片 任务执行结果指示分片任务完成,则可以生成包括任务类型和业务类型都为转 码,且任务执行对象为分片后需要转码的文件的第三任务数据, 并将第三任务 数据送到转码任务执行子系统 203的转码任务数据存储设备中。在第三任务数 据中还需要包括文件分片的任务控制信息, 例如全部分片文件标识列表, 全部 分片转码输出文件名列表和当前分片文件标识等, 以便于后续任务的处理。The fragmentation task policy device generates a policy and a fragmentation task execution result according to the third task. If the fragmentation task execution result indicates that the fragmentation task is completed, the generated task type and the service type are all transcoded, and the task execution object is a sub-division. The third task data of the transcoded file is required after the slice, and the third task data is sent to the transcoding task data storage device of the transcoding task execution subsystem 203. In the third task data, task control information including file fragmentation, such as a full partial slice file identifier list, all The fragment transcoding output file name list and the current fragment file identifier, etc., to facilitate the processing of subsequent tasks.
( 4 )转码任务执行子系统 203中包括转码任务数据存储设备、 转码任务 执行设备和转码任务策略设备,其中的转码任务执行设备从转码任务策略设备 中获取第三任务处理策略,该第三任务处理策略规定转码任务执行设备可以处 理业务类型为转码业务且任务类型为文件转码的任务,则该转码任务执行设备 根据第三任务处理策略周期性地主动从转码任务数据存储设备中获取上述的 第三任务数据, 并将其中需要转码的分片后文件进行转码。该转码任务执行设 备在获取第三任务数据的过程中,还可以判断当前的负荷是否超过阔值,如果 未超过才从转码任务数据存储设备中取出第三任务数据。 (4) The transcoding task execution subsystem 203 includes a transcoding task data storage device, a transcoding task execution device, and a transcoding task policy device, wherein the transcoding task execution device obtains a third task processing from the transcoding task policy device. a policy, the third task processing policy stipulates that the transcoding task execution device can process the task whose service type is a transcoding service and the task type is file transcoding, and the transcoding task execution device periodically actively takes the initiative according to the third task processing policy. The third task data is obtained in the transcoding task data storage device, and the fragmented file in which the transcoding needs to be transcoded is transcoded. The process of acquiring the third task data may further determine whether the current load exceeds a threshold value, and if not, the third task data is retrieved from the transcoding task data storage device.
需要说明的是,转码任务执行设备只要从转码任务数据存储设备中获取了 一个分片后文件, 即可开始进行转码处理, 而无需获得所有的分片后文件才进 行转码处理, 这样可以对多个分片后文件的转码操作进行并发执行, 进一步地 提高了系统处理性能。  It should be noted that, if the transcoding task execution device obtains a fragmented file from the transcoding task data storage device, the transcoding process can be started, and the transcoding process is not performed after all the fragmented files are obtained. In this way, the transcoding operations of multiple post-fragment files can be performed concurrently, which further improves the system processing performance.
转码任务执行设备在对文件转码后,将转码任务执行结果报告给转码任务 息, 还可以包括转码后文件的标识或内容等等。  After transcoding the file, the transcoding task execution device reports the execution result of the transcoding task to the transcoding task, and may also include the identifier or content of the file after transcoding.
转码任务策略设备根据第四任务产生策略和转码任务执行结果,如果转码 任务执行结果指示所有分片后文件都进行转码,则可以生成包括任务类型为合 并,任务执行对象为转码后需要合并的文件,且业务类型为转码的第四任务数 据,并将第四任务数据送到合并任务执行子系统 204的合并任务数据存储设备 中。在第四任务数据中还需要包括文件转码的任务控制信息, 例如全部转码文 件标识列表,全部转码输出文件名列表和当前转码文件标识等, 以便于后续任 务的处理。  The transcoding task policy device generates a policy and a transcoding task execution result according to the fourth task. If the transcoding task execution result indicates that all the fragments are transcoded, the generated task type is merged, and the task execution object is transcoded. The merged file is required, and the service type is the transcoded fourth task data, and the fourth task data is sent to the merge task data storage device of the merge task execution subsystem 204. In the fourth task data, task control information including file transcoding is also required, such as a list of all transcoded file identifiers, a list of all transcoded output file names, and a current transcoded file identifier, etc., to facilitate subsequent processing of the task.
( 5 )合并任务执行子系统 204中包括合并任务数据存储设备、 合并任务 执行设备和合并任务策略设备,其中的合并任务执行设备从合并任务策略设备 中获取第四任务处理策略,该第四任务处理策略规定合并任务执行设备可以处 理业务类型为转码或渲染业务且任务类型为文件合并的任务,则该合并任务执 行设备根据第四任务处理策略周期性地主动从合并任务数据存储设备中获取 上述的第四任务数据, 并将其中需要合并的转码后文件进行合并。该合并任务 执行设备在获取第四任务数据的过程中, 还可以判断当前的负荷是否超过阔 值, 如果未超过才从合并任务数据存储设备中取出第四任务数据。 (5) The merge task execution subsystem 204 includes a merge task data storage device, a merge task execution device, and a merge task policy device, wherein the merge task execution device obtains a fourth task processing policy from the merge task policy device, the fourth task The processing policy stipulates that the merge task execution device can process the task whose service type is transcoded or rendered and the task type is file merge, and the merge task execution device periodically and actively obtains from the merge task data storage device according to the fourth task processing policy. The fourth task data described above, and merges the transcoded files in which the merge is required. The merge task During the process of obtaining the fourth task data, the executing device may further determine whether the current load exceeds the threshold, and if not, remove the fourth task data from the merged task data storage device.
合并任务执行设备在对文件合并后 ,将合并任务执行结果报告给合并任务 策略设备,具体可以包括是否对所有需要合并的转码文件进行合并或合并异常 终止等信息, 还可以包括合并后文件的标识或内容等等。  The merged task execution device reports the merged task execution result to the merged task policy device after the file is merged, and may include information such as whether to merge or merge the abnormally terminated transcoded files, and may also include the merged file. Logo or content, etc.
合并任务策略设备根据第五任务产生策略和合并任务执行结果,如果合并 任务执行结果指示所有转码后文件都进行合并,则可以生成包括任务类型为输 出,任务执行对象为合并后需要输出的文件,且业务类型为转码的第五任务数 据,并将第五任务数据送到输出任务执行子系统 205的输出任务数据存储设备 中。在第五任务数据中还需要包括合并后的文件、合并文件的目的地址及合并 输出的文件标识等。  The merge task policy device generates a policy and merges the task execution result according to the fifth task. If the merge task execution result indicates that all the transcoded files are merged, the file may be generated including the task type as the output, and the task execution object is the file to be output after the merge. And the service type is the transcoded fifth task data, and the fifth task data is sent to the output task data storage device of the output task execution subsystem 205. In the fifth task data, it is also necessary to include the merged file, the destination address of the merged file, and the file identifier of the merged output.
( 6 )输出任务执行子系统 205中包括输出任务数据存储设备、 输出任务 执行设备和输出任务策略设备,其中的输出任务执行设备从输出任务策略设备 中获取第五任务处理策略,该第五任务处理策略规定输出任务执行设备可以处 理任何业务类型且任务类型为文件输出的任务,则该输出任务执行设备根据第 五任务处理策略周期性地主动从输出任务数据存储设备中获取上述的第五任 务数据, 并将其中需要输出文件输出到指定的地址。该输出任务执行设备在获 取第五任务数据的过程中,还可以判断当前的负荷是否超过阔值,如果未超过 才从输出任务数据存储设备中取出第五任务数据。  (6) The output task execution subsystem 205 includes an output task data storage device, an output task execution device, and an output task policy device, wherein the output task execution device obtains a fifth task processing policy from the output task policy device, the fifth task The processing policy specifies that the output task execution device can process any service type and the task type is a file output task, and the output task execution device periodically and actively obtains the fifth task from the output task data storage device according to the fifth task processing policy. Data, and output the output file to the specified address. During the process of obtaining the fifth task data, the output task execution device may further determine whether the current load exceeds the threshold, and if not, remove the fifth task data from the output task data storage device.
输出任务执行设备在输出文件后,将输出任务执行结果报告给输出任务策 包括输出文件的标识或内容等等。  After outputting the file, the output task execution device reports the output task execution result to the output task policy, including the identifier or content of the output file, and the like.
输出任务策略设备根据第六任务产生策略和输出任务执行结果,确定不需 要生成第六任务数据,则说明对转码业务请求接收设备 200接收的转码业务请 求处理完成。 本发明实施例还提供另一种媒体业务系统比如转码业务系统或媒体资产 管理系统等,结构示意图如图 3所示, 包括:至少两个任务执行子系统 300 (图 3 中只画出两个), 多个任务执行子系统 300执行的任务不同比如一个任务执 行子系统 300执行文件上载, 另一个任务执行子系统执行文件分片等, 且一个 任务执行子系统 300可以执行一个或多个任务。 The output task policy device determines that the transcoding service request processing received by the transcoding service request receiving device 200 is completed according to the sixth task generating policy and the output task execution result, and determining that the sixth task data does not need to be generated. The embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system, and the schematic diagram is as shown in FIG. 3, including: at least two task execution subsystems 300 (only two are shown in FIG. 3) The tasks performed by the plurality of task execution subsystems 300 are different, for example, one task execution subsystem 300 performs file uploading, another task execution subsystem performs file segmentation, etc., and one Task execution subsystem 300 can perform one or more tasks.
而对于其中任意一个任务执行子系统 300来说可以包括:任务数据存储设 备 30和至少一个任务处理设备 31 , 其中每个任务处理设备 31都可以包括任 务策略模块 32和任务执行模块 33, 具体地:  For any one of the task execution subsystems 300, the task data storage device 30 and the at least one task processing device 31 may be included, wherein each task processing device 31 may include a task policy module 32 and a task execution module 33, specifically :
任务执行模块 33 , 用于根据任务策略模块 32中储存的任务处理策略, 从 任务数据存储设备 30获取第一任务数据, 并根据第一任务数据执行任务; 该 任务处理策略包括第一任务数据的业务类型和第一任务类型;  The task execution module 33 is configured to acquire the first task data from the task data storage device 30 according to the task processing policy stored in the task policy module 32, and execute the task according to the first task data; the task processing policy includes the first task data. Business type and first task type;
任务策略模块 34 , 用于储存任务处理策略, 且根据第二任务产生策略及 任务执行模块 33对第一任务数据的任务执行结果, 在需要生成第二任务数据 时, 生成包括业务类型、第二任务执行对象信息和第二任务类型的第二任务数 据, 并将第二任务数据储存到与第二任务类型对应的另一任务执行子系统 300 的任务数据存储设备 30中; 在不需要生成第二任务数据时, 输出第一任务数 据的任务执行结果,其中第二任务产生策略包括与业务类型对应的业务处理逻 辑;  The task policy module 34 is configured to store a task processing policy, and generate a task execution result according to the second task according to the second task generation task and the task execution module 33, and generate a service type and a second when the second task data needs to be generated. The task execution object information and the second task data of the second task type, and storing the second task data in the task data storage device 30 of the other task execution subsystem 300 corresponding to the second task type; And the task execution result of the first task data is outputted by the second task generation policy, where the second task generation policy includes a service processing logic corresponding to the service type;
任务数据存储设备 30 , 用于储存上述的第一任务数据, 该第一任务数据 可以是前一个任务执行子系统 300的任务处理设备 31中任务策略模块 32产生 并发送的任务数据。  The task data storage device 30 is configured to store the first task data, where the first task data may be task data generated and sent by the task policy module 32 in the task processing device 31 of the previous task execution subsystem 300.
需要说明的是, 本实施例的媒体业务系统如图 1 对应实施例中的系统类 似, 具体地, 本实施例的系统中任务策略模块 32可以实现图 1对应实施例的 任务策略设备 10的功能,而任务执行模块 33可以实现图 1对应实施例的任务 执行设备 12的功能, 在此不进行赘述, 不同的是, 本实施例的系统中将产生 下一任务数据的功能和执行任务的功能集成到一个设备即任务处理设备 31 中, 这样可以减少媒体业务系统中设备的部署,且在任务执行子系统 300中可 以部署多个任务处理设备 31 (图 3中多个任务处理设备 31通过交错重叠的方 框来表示)来避免单点控制的风险, 及提高系统的性能。  It should be noted that the media service system in this embodiment is similar to the system in the corresponding embodiment of FIG. 1. Specifically, the task policy module 32 in the system of this embodiment can implement the function of the task policy device 10 in the corresponding embodiment of FIG. The task execution module 33 can implement the functions of the task execution device 12 of the corresponding embodiment of FIG. 1, and details are not described herein. The difference is that the function of the next task data and the function of executing the task are generated in the system of this embodiment. Integration into one device, task processing device 31, can reduce deployment of devices in the media service system, and multiple task processing devices 31 can be deployed in task execution subsystem 300 (multiple task processing devices 31 in Figure 3 are interleaved) Overlapping boxes are used to avoid the risk of single point control and improve system performance.
进一步地, 在一个具体的实施例中, 媒体业务系统除了可以包括如图 3 所示的多个任务执行子系统 300之外,还可以包括至少一个业务请求接收设备 301 , 用于根据接收的业务请求, 生成包括业务类型、 第一任务执行对象信息 和第一任务类型的第一任务数据,并将第一任务数据储存到与第一任务类型对 应的任务执行子系统 300中的任务数据存储设备 30中, 这样上述的任务数据 存储设备 30还用于储存业务请求接收设备 301生成的第一任务数据, 其中, 业务请求接收设备 301 的功能与图 1 对应实施例中的任务请求接收设备 101 的功能类似, 在此不进行赞述, 在具体实现时, 在媒体业务系统中可以部署多 个业务请求接收设备 301 , 从而避免单点故障的风险且能提高系统性能。 本发明实施例还提供另一种媒体业务系统比如转码业务系统或媒体资产 管理系统等, 结构示意图如图 4所示, 包括: 数据存储设备 400和至少两个任 务执行子系统 401 (图 4中只画出两个), 多个任务执行子系统 401执行的任 务不同, 且一个任务执行子系统 401可以执行一个或多个任务。 Further, in a specific embodiment, the media service system may include at least one service request receiving device 301 for receiving services according to the plurality of task execution subsystems 300 as shown in FIG. Requesting, generating first task data including a service type, first task execution object information, and a first task type, and storing the first task data to a first task type pair In the task data storage device 30 in the task execution subsystem 300, the task data storage device 30 is further configured to store the first task data generated by the service request receiving device 301, wherein the function of the service request receiving device 301 is The functions of the task request receiving device 101 in the corresponding embodiment are similar, and are not described herein. In a specific implementation, multiple service request receiving devices 301 can be deployed in the media service system, thereby avoiding the risk of single point of failure. And can improve system performance. The embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system. The schematic diagram of the structure is as shown in FIG. 4, including: a data storage device 400 and at least two task execution subsystems 401 (FIG. 4 Only two of them are drawn, the tasks performed by the plurality of task execution subsystems 401 are different, and one task execution subsystem 401 can execute one or more tasks.
而对于其中任意一个任务执行子系统 401 来说可以包括: 任务策略设备 For any of the task execution subsystems 401, it may include: a task policy device
40和至少一个任务执行设备 41 , 其中: 40 and at least one task execution device 41, wherein:
任务执行设备 41 , 用于根据任务策略设备 40中储存的任务处理策略, 从 数据存储设备 400中获取第一任务数据, 并根据第一任务数据执行任务, 该任 务处理策略包括第一任务数据的业务类型和第一任务类型;  The task execution device 41 is configured to acquire the first task data from the data storage device 400 according to the task processing policy stored in the task policy device 40, and execute the task according to the first task data, where the task processing policy includes the first task data. Business type and first task type;
任务策略设备 40 , 用于储存任务处理策略, 并根据第二任务产生策略及 任务执行设备 41对第一任务数据的任务执行结果, 在需要生成第二任务数据 时, 生成包括业务类型、第二任务执行对象信息和第二任务类型的第二任务数 据, 并将第二任务数据储存到数据存储设备 400中; 在不需要生成第二任务数 据时,输出第一任务数据的任务执行结果, 第二任务产生策略包括与业务类型 对应的业务处理逻辑;  The task policy device 40 is configured to store a task processing policy, and generate a policy and a task execution result of the task execution device 41 for the first task data according to the second task, and generate a service type and a second when the second task data needs to be generated. The task execution object information and the second task data of the second task type, and storing the second task data in the data storage device 400; when the second task data is not required to be generated, outputting the task execution result of the first task data, The second task generation strategy includes business processing logic corresponding to the service type;
数据存储设备 400, 用于储存上述的第一任务数据, 该第一任务数据可以 是前一个任务执行子系统 401产生并发送的任务数据, 具体地,在数据存储设 备 400 可以包括多个任务数据存储模块, 用于分别储存多个任务执行子系统 401中的任务策略设备 40所产生的任务数据。  The data storage device 400 is configured to store the foregoing first task data, where the first task data may be task data generated and sent by the previous task execution subsystem 401. Specifically, the data storage device 400 may include multiple task data. The storage module is configured to separately store task data generated by the task policy device 40 in the plurality of task execution subsystems 401.
进一步地, 在一个具体的实施例中,媒体业务系统除了包括如图 4所示的 数据存储设备 400和至少两个任务执行子系统 401之外,还可以包括至少一个 业务请求接收设备 402, 用于根据接收的业务请求, 生成包括业务类型、 第一 任务执行对象信息和第一任务类型的第一任务数据, 则上述的数据存储设备 400还可以用于储存业务请求接收设备 402生成的第一任务数据。 该业务请求 接收设备 402的功能与图 1对应实施例中的业务请求接收设备 101 的功能类 似, 在此不进行赘述。 Further, in a specific embodiment, the media service system may include at least one service request receiving device 402, in addition to the data storage device 400 and the at least two task execution subsystems 401 as shown in FIG. The data storage device 400 may be further configured to store the first generated by the service request receiving device 402, according to the received service request, generating the first task data including the service type, the first task execution object information, and the first task type. Task data. The business request The function of the receiving device 402 is similar to that of the service request receiving device 101 in the corresponding embodiment of FIG. 1, and details are not described herein.
需要说明的是, 本实施例的媒体业务系统与图 1 所示的媒体业务系统类 似, 在此不进行赞述, 不同的是, 本实施例中将各个任务执行子系统 401中任 务策略设备 40所产生的下一任务数据放在同一个设备即数据存储设备 400中, 这样可以集中管理这些任务数据。 本发明实施例还提供另一种媒体业务系统比如转码业务系统或媒体资产 管理系统等, 结构示意图如图 5所示, 包括: 数据存储设备 500和至少一个第 一任务执行子系统 501 (图 5中画出两个)和至少一个第二任务执行子系统 502 (图 5中画出一个), 其中:  It should be noted that the media service system of this embodiment is similar to the media service system shown in FIG. 1 and is not described here. The difference is that the task policy device 40 in each task execution subsystem 401 is used in this embodiment. The generated next task data is placed in the same device, data storage device 400, so that these task data can be centrally managed. The embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system. The schematic diagram of the structure is as shown in FIG. 5, including: a data storage device 500 and at least one first task execution subsystem 501 (FIG. Draw two in 5) and at least one second task execution subsystem 502 (one in Figure 5), where:
第一任务执行子系统 501的结构与图 4中的任务执行子系统 400的结构类 似, 包括任务策略设备 50和至少一个任务执行设备 51 , 而第二任务执行子系 统 502的结构与图 1中的任务执行子系统 100的结构类似,包括任务策略设备 50、 任务数据存储设备 52和至少一个任务执行设备 51 , 具体地:  The structure of the first task execution subsystem 501 is similar to that of the task execution subsystem 400 of FIG. 4, including the task policy device 50 and at least one task execution device 51, and the structure of the second task execution subsystem 502 is the same as that of FIG. The task execution subsystem 100 has a similar structure, including a task policy device 50, a task data storage device 52, and at least one task execution device 51, specifically:
任务执行设备 51 , 用于根据任务策略设备 50中储存的任务处理策略获取 第一任务数据并根据第一任务数据执行任务,该任务处理策略包括第一任务数 据的业务类型和第一任务类型,如果是第一任务执行子系统 501中的任务执行 设备 51 , 则从数据存储设备 500中来获取第一任务数据, 如果是第二任务执 行子系统 502中的任务执行设备 51 , 则从任务数据存储设备 52中来获取第一 任务数据。  The task execution device 51 is configured to acquire the first task data according to the task processing policy stored in the task policy device 50, and execute the task according to the first task data, where the task processing policy includes the service type of the first task data and the first task type. If it is the task execution device 51 in the first task execution subsystem 501, the first task data is acquired from the data storage device 500, and if it is the task execution device 51 in the second task execution subsystem 502, the slave task data The storage device 52 is used to acquire the first task data.
任务策略设备 50 , 用于储存上述的任务处理策略, 且根据第二任务产生 策略及任务执行设备 51对第一任务数据的任务执行结果, 在需要生成第二任 务数据时, 生成包括业务类型、第二任务执行对象信息和第二任务类型的第二 任务数据, 如果该第二任务数据需要由第一任务执行子系统 501来执行,将第 二任务数据储存到数据存储设备 500中,如果该第二任务数据需要由第二任务 执行子系统 502来执行,则将第二任务数据储存到与第二任务类型对应的另一 第二任务执行子系统 502中的任务数据存储设备 52中; 在不需要生成第二任 务数据时, 输出所述第一任务数据的任务执行结果。其中第二任务产生策略包 括与业务类型对应的业务处理逻辑。 任务数据存储设备 52, 用于储存第二任务执行子系统 502中任务执行设 备 51获取的第一任务数据; 数据存储设备 500, 用于储存第一任务执行子系 统 501中任务执行设备 51获取的第一任务数据, 其中, 数据存储设备 500可 以通过多个任务数据存储模块来分别储存不同第一任务执行子系统 501 中任 务执行设备 51需要获取的任务数据。该任务数据存储设备 52和数据存储设备 500中储存的第一任务数据可以是前一任务执行子系统(第一或第二任务执行 子系统) 中任务策略设备 50所产生的任务数据。 The task policy device 50 is configured to store the foregoing task processing policy, and generate a policy and a task execution result of the task execution device 51 for the first task data according to the second task, and generate a service type, when the second task data needs to be generated. The second task execution object information and the second task data of the second task type, if the second task data needs to be executed by the first task execution subsystem 501, storing the second task data into the data storage device 500, if The second task data needs to be executed by the second task execution subsystem 502, and the second task data is stored in the task data storage device 52 in another second task execution subsystem 502 corresponding to the second task type; When it is not necessary to generate the second task data, the task execution result of the first task data is output. The second task generation policy includes business processing logic corresponding to the service type. The task data storage device 52 is configured to store the first task data acquired by the task execution device 51 in the second task execution subsystem 502. The data storage device 500 is configured to store the task execution device 51 acquired by the task execution device 51 in the first task execution subsystem 501. The first task data, wherein the data storage device 500 can separately store the task data that the task execution device 51 needs to acquire in the different first task execution subsystem 501 through the plurality of task data storage modules. The first task data stored in the task data storage device 52 and the data storage device 500 may be task data generated by the task policy device 50 in the previous task execution subsystem (first or second task execution subsystem).
进一步地, 在一个具体的实施例中, 媒体业务系统除了可以包括如图 5 所示的数据存储设备 500、 至少一个第一任务执行子系统 501和和至少一个第 二任务执行子系统 502之外, 还可以包括至少一个业务请求接收设备 503 , 用 于根据接收的业务请求, 生成包括业务类型、第二任务执行对象信息和第一任 务类型的第一任务数据, 则上述的数据存储设备 500或任务数据存储设备 52 还用于储存业务请求接收设备 503生成的第一任务数据。  Further, in a specific embodiment, the media service system may include, in addition to the data storage device 500, the at least one first task execution subsystem 501, and the at least one second task execution subsystem 502 as shown in FIG. And the at least one service request receiving device 503 is further configured to generate the first task data including the service type, the second task execution object information, and the first task type according to the received service request, where the data storage device 500 or The task data storage device 52 is further configured to store the first task data generated by the service request receiving device 503.
需要说明的是, 上述第一任务执行子系统和第二任务执行子系统,及第一 任务数据和第二任务数据,及第一任务类型和第二任务类型只是为了表示不同 的对象, 而不表示顺序关系。  It should be noted that, the first task execution subsystem and the second task execution subsystem, and the first task data and the second task data, and the first task type and the second task type are only for indicating different objects, and Indicates the order relationship.
可见, 本实施例中, 将多个第一任务执行子系统 501 中任务执行设备 51 执行任务所需要的任务数据储存在同一个设备即数据存储设备 500中,便于统 一管理。 本发明实施例还提供另一种媒体业务系统比如转码业务系统或媒体资产 管理系统等, 结构示意图如图 6 所示, 包括: 至少一个第一任务执行子系统 600 (图 6中画出一个)和至少一个第二任务执行子系统 601 (图 6中画出一 个), 其中:  It can be seen that, in this embodiment, the task data required by the task execution device 51 in the plurality of first task execution subsystems 501 to perform tasks is stored in the same device, that is, the data storage device 500, to facilitate unified management. The embodiment of the present invention further provides another media service system, such as a transcoding service system or a media asset management system. The structure diagram is as shown in FIG. 6, and includes: at least one first task execution subsystem 600 (drawn in FIG. 6) And at least one second task execution subsystem 601 (one drawn in Figure 6), wherein:
第一任务执行子系统 600的结构如图 3中的任务执行子系统 300的结构所 示, 包括任务数据存储设备 64和至少一个任务处理设备 61 , 而其中任务处理 设备 61 又可以包括任务策略模块 62和任务执行模块 63; 第二任务执行子系 统 601的结构如图 1中的任务执行子系统 100的结构所示,包括任务策略设备 65、 任务数据存储设备 64和至少一个任务执行设备 51 , 具体地:  The structure of the first task execution subsystem 600, as shown in the structure of the task execution subsystem 300 in FIG. 3, includes a task data storage device 64 and at least one task processing device 61, wherein the task processing device 61, in turn, may include a task policy module. 62 and the task execution module 63; the structure of the second task execution subsystem 601, as shown in the structure of the task execution subsystem 100 in FIG. 1, includes a task policy device 65, a task data storage device 64, and at least one task execution device 51, specifically:
任务处理设备 61中任务执行模块 63的功能与任务执行设备 66功能类似, 都用于根据任务处理策略从任务数据存储设备 64获取第一任务数据并根据第 一任务数据执行任务, 不同的是,任务处理设备 61中任务执行模块 63和任务 执行模块 63会根据不同的任务处理策略,即分别根据任务策略模块 62和任务 策略设备 65中储存的任务处理策略, 获取不同的第一任务数据并执行不同的 任务。 其中任务处理策略可以包括第一任务数据的业务类型和第一任务类型。 The functions of the task execution module 63 in the task processing device 61 are similar to those of the task execution device 66, Both are used to acquire the first task data from the task data storage device 64 according to the task processing policy and execute the task according to the first task data. The difference is that the task execution module 63 and the task execution module 63 in the task processing device 61 are different according to different tasks. The processing strategy is to obtain different first task data and perform different tasks according to the task processing policies stored in the task policy module 62 and the task policy device 65, respectively. The task processing policy may include a service type of the first task data and a first task type.
任务处理设备 61中任务策略模块 62的功能与任务策略设备 65的功能类 似, 都用于储存任务处理策略,且根据第二任务产生策略及对第一任务数据的 任务执行结果,如果需要生成第二任务数据时, 生成包括业务类型和第二任务 类型的第二任务数据 ,并将第二任务数据储存到与第二任务类型对应的第一任 务执行子系统 600中的任务数据存储设备 64或第二任务执行子系统 601中的 任务数据存储设备 64中, 不同的是, 任务处理设备 61中任务策略模块 62和 任务策略设备 65釆用不同的第二任务产生策略及不同的任务执行结果, 生成 不同的第二任务数据。其中第二任务产生策略包括与业务类型对应的业务处理 逻辑, 还可以包括其他信息, 如图 1对应实施例中所述, 在此不进行赘述。  The function of the task policy module 62 in the task processing device 61 is similar to the function of the task policy device 65, and is used to store a task processing policy, and generate a policy according to the second task and a task execution result for the first task data. And when the second task data is generated, generating second task data including the service type and the second task type, and storing the second task data to the task data storage device 64 in the first task execution subsystem 600 corresponding to the second task type or The task data storage device 64 in the second task execution subsystem 601 is different in that the task policy module 62 and the task policy device 65 in the task processing device 61 use different second task generation strategies and different task execution results. Generate different second task data. The second task generation policy includes the service processing logic corresponding to the service type, and may also include other information, as described in the corresponding embodiment in FIG. 1, and details are not described herein.
任务数据存储设备 64 , 用于储存第一任务数据, 该第一任务数据可以是 该任务数据存储设备 64所在的任务执行子系统的前一个任务执行子系统(可 以是第一任务执行子系统 600或第二任务执行子系统 601 )所产生并发送的任 务数据。 其中对于第一任务执行子系统 600中的任务数据存储设备 64用于储 存任务执行模块 63执行任务所需的第一任务数据, 而对于第二任务执行子系 第一任务数据。  The task data storage device 64 is configured to store first task data, where the first task data may be a previous task execution subsystem of the task execution subsystem where the task data storage device 64 is located (may be the first task execution subsystem 600) Or the task data generated and transmitted by the second task execution subsystem 601). The task data storage device 64 in the first task execution subsystem 600 is configured to store the first task data required by the task execution module 63 to execute the task, and to execute the child first task data for the second task.
进一步地, 在一个具体的实施例中, 媒体业务系统除了可以包括如图 6 所示的至少一个第一任务执行子系统 600和至少一个第二任务执行子系统 601 之夕卜,还可以包括至少一个业务请求接收设备 602 ,用于根据接收的业务请求, 生成包括业务类型、 第一任务执行对象信息和第一任务类型的第一任务数据, 则上述的任务数据存储设备 64还用于储存业务请求接收设备 602生成的第一 任务数据。  Further, in a specific embodiment, the media service system may include at least one first task execution subsystem 600 and at least one second task execution subsystem 601 as shown in FIG. 6, and may further include at least A service request receiving device 602 is configured to generate first task data including a service type, first task execution object information, and a first task type according to the received service request, where the task data storage device 64 is further configured to store the service. The first task data generated by the device 602 is requested to be received.
需要说明的是, 上述第一任务执行子系统和第二任务执行子系统,及第一 任务数据和第二任务数据,及第一任务类型和第二任务类型只是为了表示不同 的对象, 而不表示顺序关系。 It should be noted that the first task execution subsystem and the second task execution subsystem, and the first task data and the second task data, and the first task type and the second task type are only for indicating different The object, not the order relationship.
可见, 本实施例的媒体业务系统中,将某些任务执行子系统即第一任务执 行子系统 600 中执行任务及产生下一任务数据的功能集成到同一设备即任务 处理设备 61中, 可以减少系统中部署的设备数量。  It can be seen that, in the media service system of the embodiment, the functions of executing the tasks and generating the next task data in the task execution subsystems of the certain task execution subsystems are integrated into the same device, that is, the task processing device 61, which can be reduced. The number of devices deployed in the system.
需要说明的是,媒体业务系统除了上述图 1到图 6所示的结构外,还可以 有其它的功能划分结构 ,只要是能实现的周期性地主动获取第一任务数据并执 行任务,及根据第二任务产生策略及对第一任务数据的任务执行结果生成第二 任务数据并储存到其它存储设备的功能结构,且将生成第二任务数据的功能结 构分散到不同的设备中的媒体业务系统结构将都属于本发明实施例所保护的 范围。 本发明实施例还提供一种媒体业务处理方法,主要用于如图 1到 6中所示 的媒体业务系统中, 由媒体业务系统中所包括的任务执行子系统所执行的方 法, 流程图如图 7所示, 包括:  It should be noted that, in addition to the structures shown in FIG. 1 to FIG. 6 above, the media service system may have other function partitioning structures, as long as it can implement the periodic active acquisition of the first task data and perform tasks, and The second task generation strategy and the task execution result of the first task data generate second task data and store the function structure of the other storage device, and distribute the functional structure of the second task data to the media service system in different devices The structure will all fall within the scope of the embodiments of the present invention. The embodiment of the present invention further provides a media service processing method, which is mainly used in a media service system shown in FIG. 1 to FIG. 6 , a method performed by a task execution subsystem included in a media service system, and a flowchart, such as As shown in Figure 7, it includes:
步骤 701 , —个任务执行子系统获取任务处理策略, 该任务处理策略可以 预置在任务执行子系统中,可以规定该任务执行子系统执行什么类型业务下的 何种任务, 具体地包括第一任务数据的业务类型和第一任务类型等; 该任务处 理策略还可以规定在什么情况下获取第一任务数据, 具体地, 当任务执行子系 统的负荷未超过预置的阔值时, 才会获取第一任务数据, 否则不获取第一任务 数据。  Step 701: A task execution subsystem acquires a task processing policy, where the task processing policy may be preset in the task execution subsystem, and may specify what kind of tasks under the type of service performed by the task execution subsystem, specifically including the first The service type of the task data and the first task type, etc.; the task processing policy may also specify under what circumstances the first task data is acquired, specifically, when the load of the task execution subsystem does not exceed the preset threshold, Obtain the first task data, otherwise the first task data is not obtained.
步骤 702, 任务执行子系统根据获取的任务处理策略获取对应的第一任务 数据并根据第一任务数据执行任务, 其中获取的第一任务数据包括业务类型、 第一任务类型等数据。  Step 702: The task execution subsystem acquires the corresponding first task data according to the acquired task processing policy, and executes the task according to the first task data, where the acquired first task data includes data such as a service type and a first task type.
第一任务数据可以是其它任务执行子系统生成并发送的且储存在该任务 执行子系统中, 或储存在另外的数据存储设备中,任务执行子系统可以周期性 地获取该第一任务数据, 具体可以包括需要执行任务的业务类型、第一任务执 行对象信息和执行的第一任务类型等,该第一任务执行数据还可以包括如下信 息中的至少一个: 任务标识、 任务执行的参数和任务控制信息等信息。  The first task data may be generated and sent by other task execution subsystems and stored in the task execution subsystem, or stored in another data storage device, and the task execution subsystem may periodically acquire the first task data. Specifically, the service type, the first task execution object information, and the executed first task type may be included, and the first task execution data may further include at least one of the following information: a task identifier, a task execution parameter, and a task. Control information and other information.
步骤 703 , 任务执行子系统根据第二任务产生策略及对第一任务数据的任 务执行结果, 在需要生成第二任务数据时, 生成包括业务类型、 第二任务执行 对象信息和第二任务类型的第二任务数据,以便与第二任务类型对应的另一任 务执行子系统根据第二任务数据执行任务,具体根据第二任务数据执行任务的 过程与上述步骤 701到 703所述的方法类似; 可以理解,在不需要生成第二任 务数据时, 输出第一任务数据的任务执行结果, 其中, 第二任务产生策略包括 与业务类型对应的业务处理逻辑。 Step 703: The task execution subsystem generates a policy according to the second task and a task execution result of the first task data, and when the second task data needs to be generated, generates a service type and a second task execution. Object information and second task data of the second task type, so that another task execution subsystem corresponding to the second task type performs a task according to the second task data, and specifically performs a task according to the second task data and the above step 701 The method described in 703 is similar; it can be understood that, when the second task data is not required to be generated, the task execution result of the first task data is output, wherein the second task generation policy includes service processing logic corresponding to the service type.
任务执行子系统对第一任务数据的任务执行结果可以包括: 第一任务数 据, 任务执行后的对象和任务执行状态信息等结果, 如果任务执行异常, 还可 以包括导致任务异常的原因等信息, 进一步地,在任务执行结果中还可以包括 任务控制信息比如在对文件进行分片后,在任务执行结果中可以包括分片后文 件的标识列表来作为后续任务(比如转码)的控制信息; 而第二任务产生策略 是指产生当前执行任务的下一个任务数据的策略,主要可以包括是否需要产生 第二任务数据的策略,及产生何种类型任务的策略等。如果任务执行子系统根 据任务执行结果和第二任务产生策略确定需要生成第二任务数据 ,则根据第二 任务产生策略中的业务处理逻辑生成第二任务数据。其中, 生成的第二任务数 据除了可以包括业务类型、第二任务执行对象信息和第二任务类型之外,还可 以包括如下信息的至少一个: 任务标识、任务执行的参数和任务控制信息等信 息。  The task execution result of the task execution subsystem for the first task data may include: first task data, object after task execution, and task execution state information, etc., if the task execution is abnormal, may also include information such as the cause of the task abnormality, Further, the task execution information may further include task control information, for example, after the file is fragmented, the task execution result may include an identifier list of the file after the fragment as the control information of the subsequent task (such as transcoding); The second task generation policy refers to a policy for generating the next task data of the current task, and may mainly include a strategy for generating the second task data, and a strategy for generating the type of task. If the task execution subsystem determines that the second task data needs to be generated according to the task execution result and the second task generation policy, the second task data is generated according to the business processing logic in the second task generation policy. The generated second task data may include at least one of the following information in addition to the service type, the second task execution object information, and the second task type: task identifier, task execution parameters, and task control information. .
具体地,如果业务处理逻辑中包括至少两个任务, 及至少两个任务的执行 顺序关系,而任务执行子系统对第一任务数据的任务执行结果具体包括对第一 任务数据中包括的第一任务类型的任务执行完成的指示和执行后的对象数据; 则任务执行子系统在执行上述步骤 703时,生成的第二任务数据中的第二任务 执行对象信息包括所述执行后的对象数据,第二任务类型为所述第一任务类型 对应任务的下一个任务的类型。  Specifically, if the business processing logic includes at least two tasks, and an execution order relationship of the at least two tasks, the task execution result of the task execution subsystem for the first task data specifically includes the first included in the first task data. The task of the task type performs the instruction of the completion and the object data after the execution; the task execution subsystem, when the step 703 is executed, the second task execution object information in the generated second task data includes the object data after the execution, The second task type is a type of the next task corresponding to the first task type.
该任务执行子系统可以将生成的第二任务数据储存到与第二任务类型对 应的另一任务执行子系统中, 或储存到媒体业务系统中包括的数据存储设备 中, 这样另一任务执行子系统会周期性地获取该第二任务数据来执行任务。  The task execution subsystem may store the generated second task data into another task execution subsystem corresponding to the second task type, or store it in a data storage device included in the media service system, such that another task performer The system periodically acquires the second task data to perform the task.
可见, 本实施例的媒体业务系统中可以由多个任务执行子系统来执行任 务,但并没有一个集中控制点来控制各个任务执行子系统之间的执行顺序, 而 是将控制执行顺序的功能分散到各个任务执行子系统中,由任务执行子系统根 据当前对第一任务数据的任务执行结果及第二任务产生策略来产生第二任务 数据, 并将由另一任务执行子系统根据该第二任务数据执行任务,从而将多个 任务执行子系统所执行的任务关联起来, 实现了某一特定的媒体业务, 这样可 以避免通过一个集中控制点来控制任务执行顺序所带来的单点故障风险。 It can be seen that the media service system in this embodiment can be executed by multiple task execution subsystems, but there is no centralized control point to control the execution order between the task execution subsystems, but the function of controlling the execution order. Scattered into each task execution subsystem, by the task execution subsystem root Generating the second task data according to the current task execution result of the first task data and the second task generation strategy, and executing the task according to the second task data by another task execution subsystem, thereby executing the plurality of task execution subsystems The tasks performed are linked together to implement a specific media service, which avoids the risk of a single point of failure caused by a centralized control point to control the order of task execution.
另外, 由于每个任务执行子系统在执行任务时总是主动轮询获取任务数 据,使得多个任务执行子系统之间没有相互依赖关系, 这样可以避免由于单点 控制所带来系统性能扩展的制约, 从而提高了媒体业务系统的性能。  In addition, since each task execution subsystem always actively polls and acquires task data when executing tasks, there is no mutual dependency between multiple task execution subsystems, thereby avoiding system performance expansion caused by single point control. Restrictions, thereby improving the performance of the media business system.
参考图 8所示,在一个具体的实施例中,任务执行子系统在执行上述步骤 701之前, 还需要执行步骤 704, 即媒体业务系统中的业务请求接收设备还可 以接收业务请求, 并根据业务请求生成包括第一任务类型、第一任务执行对象 信息和业务类型的第一任务数据, 其中, 该业务请求是用于请求媒体业务系统 完成一定的业务, 具体可以包括业务类型比如转码或渲染等业务, 则业务请求 接收设备在生成第一任务数据时, 可以根据第一任务产生策略来生成, 该第一 任务产生策略可以包括与业务请求的业务类型对应的业务处理逻辑即实现一 个业务的多个任务之间的关系等。这样当业务请求接收设备接收业务请求并生 成第一任务数据后,可以将该第一任务数据储存到与第一任务类型对应的任务 执行子系统中, 或储存到媒体业务系统中的数据存储设备中,从而触发了上述 步骤 701到 703的步骤。  Referring to FIG. 8, in a specific embodiment, the task execution subsystem further needs to perform step 704 before performing the foregoing step 701, that is, the service request receiving device in the media service system can also receive the service request, and according to the service. The request generates the first task data including the first task type, the first task execution object information, and the service type, where the service request is used to request the media service system to complete a certain service, and specifically includes a service type such as transcoding or rendering. And the service request receiving device, when the first task data is generated, may be generated according to the first task generation policy, where the first task generation policy may include a service processing logic corresponding to the service type of the service request, that is, a service is implemented. Relationship between multiple tasks, etc. After the service request receiving device receives the service request and generates the first task data, the first task data may be stored in the task execution subsystem corresponding to the first task type, or stored in the data storage device in the media service system. Medium, thereby triggering the steps of steps 701 to 703 above.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: ROM、 RAM, 磁盘或光盘等。  A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD, etc.
以上对本发明实施例所提供的媒体业务系统和媒体业务处理方法,进行了 上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本 领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会 有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The above description of the media service system and the media service processing method provided by the embodiments of the present invention is only for helping to understand the method and core idea of the present invention. Meanwhile, for those skilled in the art, according to the present invention, The present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种媒体业务系统, 其特征在于, 包括至少两个任务执行子系统, 所 述任务执行子系统包括: 任务策略设备、任务数据存储设备和至少一个任务执 行设备, 其中: 从所述任务数据存储设备获取第一任务数据并根据所述第一任务数据执行任 务; 所述任务处理策略包括第一任务数据的业务类型和第一任务类型; 1. A media business system, characterized in that it includes at least two task execution subsystems. The task execution subsystem includes: a task strategy device, a task data storage device and at least one task execution device, wherein: from the task The data storage device obtains the first task data and performs the task according to the first task data; the task processing policy includes the business type of the first task data and the first task type;
所述任务策略设备, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行设备对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据,并将所述第二任务数据储存到与第二任务类型对应的另一任务执 行子系统的任务数据存储设备中,所述第二任务产生策略包括与所述业务类型 对应的业务处理逻辑; The task strategy device is used to store the task processing strategy, and according to the second task generation strategy and the task execution result of the task execution device on the first task data, when it is necessary to generate the second task data, generate including business type, second task execution object information and second task data of the second task type, and storing the second task data in a task data storage device of another task execution subsystem corresponding to the second task type , the second task generation strategy includes business processing logic corresponding to the business type;
所述任务数据存储设备,用于接收前一个任务执行子系统中的任务策略设 备发送的第一任务数据, 并储存所述第一任务数据。 The task data storage device is used to receive the first task data sent by the task strategy device in the previous task execution subsystem, and store the first task data.
2、 如权利要求 1所述的系统, 其特征在于, 所述系统还包括: 至少一个 业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第一任务 执行对象信息和第一任务类型的第一任务数据; 2. The system according to claim 1, characterized in that the system further includes: at least one service request receiving device, configured to generate a service request including service type, first task execution object information and first task execution object information according to the received service request. The first task data of the task type;
所述任务数据存储设备,还用于储存所述业务请求接收设备生成的第一任 务数据。 The task data storage device is also used to store the first task data generated by the service request receiving device.
3、 如权利要求 1或 2所述的系统, 其特征在于, 所述任务执行设备获取 的任务执行策略还包括: 当所述任务执行设备的负荷未超过预置的阔值时, 获 取第一任务数据; 3. The system according to claim 1 or 2, wherein the task execution policy obtained by the task execution device further includes: when the load of the task execution device does not exceed a preset threshold, obtain the first mission data;
所述任务策略设备生成的第二任务数据或业务请求接收设备生成的第一 任务数据还包括如下信息的至少一个: 任务标识、任务执行的参数和任务控制 信息。 The second task data generated by the task policy device or the first task data generated by the service request receiving device also includes at least one of the following information: task identification, task execution parameters, and task control information.
4、 如权利要求 1至 3任一项所述的系统, 其特征在于, 4. The system according to any one of claims 1 to 3, characterized in that,
所述任务策略设备,还用于根据第二任务产生策略及所述任务执行设备对 所述第一任务数据的任务执行结果,在不需要生成第二任务数据时,输出所述 第一任务数据的任务执行结果。 The task strategy device is also configured to output the second task data when there is no need to generate the second task data according to the second task generation strategy and the task execution result of the task execution device on the first task data. The task execution result of the first task data.
5、 如权利要求 1至 4任一项所述的系统, 其特征在于, 5. The system according to any one of claims 1 to 4, characterized in that,
所述业务处理逻辑中包括至少两个任务,及所述至少两个任务的执行顺序 关系; The business processing logic includes at least two tasks and the execution sequence relationship of the at least two tasks;
所述任务执行设备对所述第一任务数据的任务执行结果具体包括:对第一 任务数据中包括的第一任务类型的任务执行完成的指示和执行后的对象数据; 则所述任务策略设备生成的第二任务数据中的第二任务执行对象信息包 括所述执行后的对象数据,第二任务类型为所述第一任务类型对应任务的下一 个任务的类型。 The task execution result of the task execution device on the first task data specifically includes: an indication of completion of task execution of the first task type included in the first task data and the object data after execution; then the task strategy device The second task execution object information in the generated second task data includes the executed object data, and the second task type is the type of the next task corresponding to the first task type.
6、 一种媒体业务系统, 其特征在于, 包括: 包括至少两个任务执行子系 统, 所述任务执行子系统包括: 任务数据存储设备和至少一个任务处理设备, 所述任务处理设备包括任务策略模块和任务执行模块, 其中: 6. A media business system, characterized by: including at least two task execution subsystems, the task execution subsystem including: a task data storage device and at least one task processing device, the task processing device including a task strategy module and task execution module, where:
所述任务执行模块, 用于根据所述任务策略模块中储存的任务处理策略, 从所述任务数据存储设备中获取第一任务数据,并根据所述第一任务数据执行 任务; 所述任务处理策略包括第一任务数据的业务类型和第一任务类型; 所述任务策略模块, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行模块对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据,并将所述第二任务数据储存到与第二任务类型对应的另一任务执 行子系统的任务数据存储设备中,所述第二任务产生策略包括与所述业务类型 对应的业务处理逻辑; The task execution module is configured to obtain the first task data from the task data storage device according to the task processing strategy stored in the task strategy module, and execute the task according to the first task data; the task processing The strategy includes the business type of the first task data and the first task type; the task strategy module is used to store the task processing strategy, and process the first task data according to the second task generation strategy and the task execution module The task execution result, when it is necessary to generate the second task data, generate the second task data including the business type, the second task execution object information and the second task type, and store the second task data in the same file as the second task data. In the task data storage device of another task execution subsystem corresponding to the type, the second task generation strategy includes business processing logic corresponding to the business type;
所述任务数据存储设备,用于接收前一个任务执行子系统中的任务处理设 备发送的第一任务数据, 并储存所述第一任务数据。 The task data storage device is used to receive the first task data sent by the task processing device in the previous task execution subsystem, and store the first task data.
7、 如权利要求 6所述的系统, 其特征在于, 所述系统还包括: 至少一个 业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第一任务 执行对象信息和第一任务类型的第一任务数据; 7. The system according to claim 6, characterized in that the system further includes: at least one service request receiving device, configured to generate a service request including service type, first task execution object information and first task execution object information according to the received service request. The first task data of the task type;
所述任务数据存储设备,还用于储存所述业务请求接收设备生成的第一任 务数据。 The task data storage device is also used to store the first task data generated by the service request receiving device.
8、 如权利要求 6或 7所述的系统, 其特征在于, 所述任务策略模块, 还 用于根据第二任务产生策略及所述任务执行模块对所述第一任务数据的任务 执行结果, 在不需要生成第二任务数据时,输出所述第一任务数据的任务执行 结果。 8. The system according to claim 6 or 7, wherein the task strategy module further Used to output the task execution result of the first task data according to the second task generation strategy and the task execution result of the first task data by the task execution module when there is no need to generate the second task data.
9、 一种媒体业务系统, 其特征在于, 包括: 包括数据存储设备, 和至少 两个任务执行子系统, 所述任务执行子系统包括: 任务策略设备和至少一个任 务执行设备, 其中: 从所述数据存储设备中获取第一任务数据, 并根据所述第一任务数据执行任 务; 所述任务处理策略包括第一任务数据的业务类型和第一任务类型; 9. A media business system, characterized in that it includes: a data storage device, and at least two task execution subsystems. The task execution subsystem includes: a task strategy device and at least one task execution device, wherein: from all Obtain the first task data from the data storage device, and execute the task according to the first task data; The task processing strategy includes the business type of the first task data and the first task type;
所述任务策略设备, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行设备对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据, 并将所述第二任务数据储存到所述数据存储设备中, 所述第二任 务产生策略包括与所述业务类型对应的业务处理逻辑; The task strategy device is used to store the task processing strategy, and according to the second task generation strategy and the task execution result of the task execution device on the first task data, when it is necessary to generate the second task data, generate including business type, second task execution object information and second task data of the second task type, and storing the second task data in the data storage device; the second task generation strategy includes: The business processing logic corresponding to the type;
所述数据存储设备,用于接收前一个任务执行子系统中的任务策略设备发 送的第一任务数据, 并储存所述第一任务数据。 The data storage device is used to receive the first task data sent by the task strategy device in the previous task execution subsystem, and store the first task data.
10、 如权利要求 9所述的系统, 其特征在于, 所述系统还包括: 至少一个 业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第二任务 执行对象信息和第一任务类型的第一任务数据; 10. The system according to claim 9, characterized in that the system further includes: at least one service request receiving device, configured to generate, according to the received service request, the service type, the second task execution object information and the first The first task data of the task type;
所述数据存储设备,还用于储存所述业务请求接收设备生成的第一任务数 据。 The data storage device is also used to store the first task data generated by the service request receiving device.
11、 如权利要求 9或 10所述的系统, 其特征在于, 所述任务策略设备, 还用于根据第二任务产生策略及所述任务执行设备对所述第一任务数据的任 务执行结果,在不需要生成第二任务数据时,输出所述第一任务数据的任务执 行结果。 11. The system according to claim 9 or 10, wherein the task strategy device is further configured to generate a task execution result of the first task data according to a second task generation strategy and the task execution device, When there is no need to generate the second task data, the task execution result of the first task data is output.
12、 一种媒体业务系统, 其特征在于, 包括数据存储设备, 和至少一个第 一任务执行子系统和至少一个第二任务执行子系统; 12. A media business system, characterized in that it includes a data storage device, and at least one first task execution subsystem and at least one second task execution subsystem;
其中所述第一任务执行子系统包括:任务策略设备和至少一个任务执行设 备; 所述第二任务执行子系统包括: 任务策略设备、 任务数据存储设备和至少 一个任务执行设备; 获取第一任务数据并根据所述第一任务数据执行任务;所述任务处理策略包括 第一任务数据的业务类型和第一任务类型; The first task execution subsystem includes: a task strategy device and at least one task execution device; the second task execution subsystem includes: a task strategy device, a task data storage device and at least one task execution device. A task execution device; obtains first task data and performs tasks according to the first task data; the task processing strategy includes the business type of the first task data and the first task type;
所述任务策略设备, 用于储存所述任务处理策略, 且根据第二任务产生策 略及所述任务执行设备对所述第一任务数据的任务执行结果,在需要生成第二 任务数据时, 生成包括业务类型、 第二任务执行对象信息和第二任务类型的第 二任务数据, 并将所述第二任务数据储存到所述数据存储设备, 或储存到与所 述第二任务类型对应的第二任务执行子系统中的任务数据存储设备中,所述第 二任务产生策略包括与所述业务类型对应的业务处理逻辑; The task strategy device is used to store the task processing strategy, and according to the second task generation strategy and the task execution result of the task execution device on the first task data, when it is necessary to generate the second task data, generate The second task data includes the business type, the second task execution object information and the second task type, and stores the second task data in the data storage device or in the third task data corresponding to the second task type. In the task data storage device in the second task execution subsystem, the second task generation strategy includes business processing logic corresponding to the business type;
所述任务数据存储设备,用于储存所述第二任务执行子系统中任务执行设 备获取的所述第一任务数据; The task data storage device is used to store the first task data obtained by the task execution device in the second task execution subsystem;
所述数据存储设备,用于储存所述第一任务执行子系统中任务执行设备获 取的所述第一任务数据。 The data storage device is used to store the first task data obtained by the task execution device in the first task execution subsystem.
13、 如权利要求 12所述的系统, 其特征在于, 所述系统还包括: 至少一 个业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第一任 务执行对象信息和第一任务类型的第一任务数据; 13. The system according to claim 12, characterized in that the system further includes: at least one service request receiving device, configured to generate a service request including service type, first task execution object information and first task execution object information according to the received service request. The first task data of the task type;
所述任务数据存储设备或所述数据存储设备,还用于储存所述业务请求接 收设备生成的第一任务数据。 The task data storage device or the data storage device is also used to store the first task data generated by the service request receiving device.
14、 如权利要求 12或 13所述的系统, 其特征在于, 所述任务策略设备, 还用于根据第二任务产生策略及所述任务执行设备对所述第一任务数据的任 务执行结果,在不需要生成第二任务数据时,输出所述第一任务数据的任务执 行结果。 14. The system according to claim 12 or 13, wherein the task strategy device is further configured to generate a task execution result of the first task data according to a second task generation strategy and the task execution device, When there is no need to generate the second task data, the task execution result of the first task data is output.
15、 一种媒体业务系统, 其特征在于, 包括: 至少一个第一任务执行子系 统和至少一个第二任务执行子系统, 其中: 15. A media business system, characterized by including: at least one first task execution subsystem and at least one second task execution subsystem, wherein:
所述第一任务执行子系统包括任务数据存储设备和至少一个任务处理设 备, 所述任务处理设备包括任务策略模块和任务执行模块; 所述第二任务执行 子系统包括任务策略设备、 任务数据存储设备和至少一个任务执行设备; 所述任务执行模块和任务执行设备,用于根据任务处理策略获取第一任务 数据并根据所述第一任务数据执行任务;所述任务处理策略包括第一任务数据 的业务类型和第一任务类型; The first task execution subsystem includes a task data storage device and at least one task processing device. The task processing device includes a task strategy module and a task execution module; the second task execution subsystem includes a task strategy device, a task data storage device, and a task execution module. equipment and at least one task execution device; the task execution module and task execution device are used to obtain the first task according to the task processing policy data and perform tasks according to the first task data; the task processing strategy includes the business type of the first task data and the first task type;
所述任务策略模块和任务策略设备, 用于储存所述任务处理策略,且根据 第二任务产生策略及对所述第一任务数据的任务执行结果,在需要生成第二任 务数据时, 生成包括业务类型、第二任务执行对象信息和第二任务类型的第二 任务数据 ,并将所述第二任务数据储存到与所述第二任务类型对应的第二任务 执行子系统中的任务数据存储设备,或第一任务执行子系统中的任务数据存储 设备, 所述第二任务产生策略包括与所述业务类型对应的业务处理逻辑; 所述任务数据存储设备,用于接收前一个任务执行子系统发送的第一任务 数据, 并储存所述第一任务数据。 The task strategy module and task strategy device are used to store the task processing strategy, and according to the second task generation strategy and the task execution result of the first task data, when it is necessary to generate the second task data, generate the following: business type, second task execution object information and second task data of the second task type, and store the second task data in the task data storage in the second task execution subsystem corresponding to the second task type device, or a task data storage device in the first task execution subsystem, the second task generation strategy includes business processing logic corresponding to the business type; the task data storage device is used to receive the previous task execution subsystem The system sends the first task data and stores the first task data.
16、 如权利要求 15所述的系统, 其特征在于, 所述系统还包括: 至少一 个业务请求接收设备, 用于根据接收的业务请求, 生成包括业务类型、 第一任 务执行对象信息和第一任务类型的第一任务数据; 16. The system according to claim 15, characterized in that the system further includes: at least one service request receiving device, configured to generate a service request including service type, first task execution object information and first task execution object information according to the received service request. The first task data of the task type;
所述任务数据存储设备,还用于储存所述业务请求接收设备生成的第一任 务数据。 The task data storage device is also used to store the first task data generated by the service request receiving device.
17、 如权利要求 15或 16所述的系统, 其特征在于, 所述任务策略设备, 还用于根据第二任务产生策略及所述任务执行设备对所述第一任务数据的任 务执行结果,在不需要生成第二任务数据时,输出所述第一任务数据的任务执 行结果。 17. The system according to claim 15 or 16, wherein the task strategy device is further configured to generate a task execution result of the first task data according to a second task generation strategy and the task execution device, When there is no need to generate the second task data, the task execution result of the first task data is output.
18、 一种媒体业务处理方法, 其特征在于, 用于媒体业务系统中所包括的 任务执行子系统的业务处理, 包括: 18. A media business processing method, characterized in that it is used for business processing of the task execution subsystem included in the media business system, including:
所述任务执行子系统获取任务处理策略,所述任务处理策略包括第一任务 数据的业务类型和第一任务类型; The task execution subsystem obtains a task processing strategy, and the task processing strategy includes the business type of the first task data and the first task type;
所述任务执行子系统根据所述任务处理策略获取对应的第一任务数据并 根据所述第一任务数据执行任务; The task execution subsystem obtains the corresponding first task data according to the task processing policy and executes the task according to the first task data;
所述任务执行子系统根据第二任务产生策略及对所述第一任务数据的任 务执行结果, 在需要生成第二任务数据时, 生成包括业务类型、 第二任务执行 对象信息和第二任务类型的第二任务数据,以便与所述第二任务类型对应的另 一任务执行子系统根据所述第二任务数据执行任务,所述第二任务产生策略包 括与所述业务类型对应的业务处理逻辑。 The task execution subsystem generates, according to the second task generation strategy and the task execution result of the first task data, the business type, the second task execution object information and the second task type when it is necessary to generate the second task data. second task data, so that another task execution subsystem corresponding to the second task type performs a task according to the second task data, and the second task generates a policy package Include business processing logic corresponding to the business type.
19、 如权利要求 18所述的方法, 其特征在于, 所述任务执行子系统获取 任务处理策略, 之前还包括: 19. The method of claim 18, wherein the task execution subsystem acquires the task processing strategy, which also includes:
所述媒体业务系统中的任务请求接收设备接收任务请求,并根据所述任务 请求生成包括第一任务类型和业务类型的第一任务数据。 The task request receiving device in the media service system receives the task request and generates first task data including a first task type and a service type according to the task request.
20、 如权利要求 18或 19所述的方法, 其特征在于, 所述任务执行策略还 包括: 当所述任务执行子系统的负荷未超过预置的阔值时, 获取任务数据; 所述生成的第二任务数据还包括如下信息的至少一个: 任务标识、任务执 行的参数和任务控制信息。 20. The method of claim 18 or 19, wherein the task execution strategy further includes: when the load of the task execution subsystem does not exceed a preset threshold, obtaining task data; the generating The second task data also includes at least one of the following information: task identification, task execution parameters and task control information.
21、 如权利要求 18至 20任一项所述的方法, 其特征在于, 还包括: 所述任务执行子系统根据第二任务产生策略及所述任务执行设备对所述 第一任务数据的任务执行结果, 在不需要生成第二任务数据时, 输出所述第一 任务数据的任务执行结果。 21. The method according to any one of claims 18 to 20, further comprising: the task execution subsystem performs tasks on the first task data according to the second task generation strategy and the task execution device. Execution result: When there is no need to generate second task data, the task execution result of the first task data is output.
22、 如权利要求 18至 21任一项所述的方法, 其特征在于, 所述业务处理 逻辑中包括至少两个任务,及所述至少两个任务的执行顺序关系; 所述任务执 行子系统对所述第一任务数据的任务执行结果具体包括:对第一任务数据中包 括的第一任务类型的任务执行完成的指示和执行后的对象数据; 22. The method according to any one of claims 18 to 21, characterized in that: the business processing logic includes at least two tasks, and the execution sequence relationship of the at least two tasks; the task execution subsystem The task execution result of the first task data specifically includes: an indication of completion of task execution of the first task type included in the first task data and the object data after execution;
则所述任务执行子系统生成的第二任务数据中的第二任务执行对象信息 包括所述执行后的对象数据 ,第二任务类型为所述第一任务类型对应任务的下 一个任务的类型。 Then the second task execution object information in the second task data generated by the task execution subsystem includes the object data after execution, and the second task type is the type of the next task corresponding to the first task type.
PCT/CN2012/079775 2012-08-07 2012-08-07 Media service processing method and media service system WO2014022968A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280002468.3A CN103748567B (en) 2012-08-07 Media business processing method and media service system
PCT/CN2012/079775 WO2014022968A1 (en) 2012-08-07 2012-08-07 Media service processing method and media service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/079775 WO2014022968A1 (en) 2012-08-07 2012-08-07 Media service processing method and media service system

Publications (1)

Publication Number Publication Date
WO2014022968A1 true WO2014022968A1 (en) 2014-02-13

Family

ID=50067366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079775 WO2014022968A1 (en) 2012-08-07 2012-08-07 Media service processing method and media service system

Country Status (1)

Country Link
WO (1) WO2014022968A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321119A (en) * 2018-03-30 2019-10-11 优酷网络技术(北京)有限公司 The generation method of data processing module, server and client side
CN110321107A (en) * 2018-03-30 2019-10-11 优酷网络技术(北京)有限公司 The generation method and server of data processing module

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1577278A (en) * 2003-07-22 2005-02-09 株式会社东芝 Method and system for scheduling real-time periodic tasks
CN1996995A (en) * 2006-12-29 2007-07-11 信息产业部电信传输研究所 Control method for service sensing and its system
US7290099B2 (en) * 2004-08-19 2007-10-30 International Business Machines Corporation Using parallelism for clear status track processing during error handling behavior in a storage system
CN101132560A (en) * 2006-08-25 2008-02-27 华为技术有限公司 Business interactive processing method and system
CN101288051A (en) * 2005-10-13 2008-10-15 佳能株式会社 Cooperative job flow creating apparatus, cooperative job flow creating method, service processing apparatus, service processing method, management server, flow conversion method, job flow execution me

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1577278A (en) * 2003-07-22 2005-02-09 株式会社东芝 Method and system for scheduling real-time periodic tasks
US7290099B2 (en) * 2004-08-19 2007-10-30 International Business Machines Corporation Using parallelism for clear status track processing during error handling behavior in a storage system
CN101288051A (en) * 2005-10-13 2008-10-15 佳能株式会社 Cooperative job flow creating apparatus, cooperative job flow creating method, service processing apparatus, service processing method, management server, flow conversion method, job flow execution me
CN101132560A (en) * 2006-08-25 2008-02-27 华为技术有限公司 Business interactive processing method and system
CN1996995A (en) * 2006-12-29 2007-07-11 信息产业部电信传输研究所 Control method for service sensing and its system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321119A (en) * 2018-03-30 2019-10-11 优酷网络技术(北京)有限公司 The generation method of data processing module, server and client side
CN110321107A (en) * 2018-03-30 2019-10-11 优酷网络技术(北京)有限公司 The generation method and server of data processing module

Also Published As

Publication number Publication date
CN103748567A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
WO2017050141A1 (en) Distributed storage-based file delivery system and method
TWI528191B (en) File Handling Method Based on Cloud Storage, System and Server Cluster System
WO2022007552A1 (en) Processing node management method, configuration method and related apparatus
WO2021051563A1 (en) Target data archiving method and apparatus, and electronic device and computer non-volatile readable storage medium
US9560010B1 (en) Network file transfer
US20200150994A1 (en) Method and system for performing hyperconvergence using blockchains
CN113778463A (en) Business service deployment method and device
WO2020034194A1 (en) Method, device, and system for processing distributed data, and machine readable medium
TW201250588A (en) Presentation software automation services
US20130254588A1 (en) Standby system device, a control method, and a program thereof
JP6434021B2 (en) Manage data feeds
WO2014022968A1 (en) Media service processing method and media service system
CN112003895B (en) Cloud host evacuation method, device, equipment and storage medium in OpenStack cloud platform
US20150309556A1 (en) Power system monitoring and control system
CN111124591A (en) Mirror image transmission method and device, electronic equipment and storage medium
WO2022121387A1 (en) Data storage method and apparatus, server, and medium
CN114416438A (en) Data export method and device, computer equipment and scheduling service system
CN115174364A (en) Data recovery method, device and medium in disaster tolerance scene
CN114024819A (en) Event information reporting method and device
US10467079B2 (en) Information processing device, information processing method, and non-transitory computer-readable storage medium
JP2012164166A (en) Information processing system
JP4119992B2 (en) Data distribution method and data distribution system in network
JP5501185B2 (en) Management system, device management method, and remote management apparatus
JP5637351B2 (en) Server / client system, server device, standby server device, and client device
TWI709083B (en) Host device centralized management system and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12882660

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12882660

Country of ref document: EP

Kind code of ref document: A1