Methods and systems for scheduling a workflow
AssigneeTencent America LLC
InventorIraj Sodagar
Life of this patent
Estimating the term…
Abstract
Systems and methods for scheduling a network-based media processing (NBMP) workflow based on a scheme mode are provided. The scheme mode may be obtained by a NBMP workflow manager based on received information that indicates the scheme mode. The NBMP workflow manager may schedule tasks of the NBMP workflow to be executed to process media in accordance with the scheme mode indicated in the information. The scheme mode may be a by order mode, a by duration mode, a by event mode, or a by timeslot mode.
Claims19
A method performed by at least one processor that implements a network-based media processing (NBMP) workflow manager, the method comprising:
- sending, to an NBMP client, first information indicating that the NBMP workflow manager supports a scheme mode for scheduling an NBMP workflow;
- receiving, from the NBMP client, second information indicating the scheme mode for scheduling the NBMP workflow;
- obtaining the scheme mode based on the second information;
- scheduling tasks of the NBMP workflow to be executed to process media in accordance with the scheme mode indicated in the second information,
- wherein the scheme mode indicated in the second information and indicated to be supported by the NBMP workflow manager in the first information is:
- a first scheme mode in which each task of the NBMP workflow is executed once for an entirety of an input of the task,
- a second scheme mode in which each task of the NBMP workflow is executed for a predetermined duration of the input of the task or for a predetermined duration of an output of the task,
- a third scheme mode in which each task of the NBMP workflow is started based on a start event or stopped based on a stop event, or
- a fourth scheme mode in which each task of the NBMP workflow is started according to a predetermined schedule, wherein the predetermined schedule includes time slots for executing the tasks;
- and
- performing the scheduled tasks of the NBMP workflow, wherein
- the scheme mode indicated in the second information, and indicated to be supported by the NBMP workflow manager in the first information, is the first scheme mode,
- the receiving the second information comprises, receiving, from the NBMP client, a syntax element with a first value indicating the first scheme mode for scheduling a first plurality of tasks of the NBMP workflow, the first value being the second information,
- the method further comprises:
- receiving, from the NBMP client, the syntax element with a second value indicating the second scheme mode for scheduling a second plurality of tasks of the NBMP workflow;
- scheduling the second plurality of tasks of the NBMP workflow to be executed to process media in accordance with the second scheme mode indicated by the second value;
- receiving, from the NBMP client, the syntax element with a third value indicating the third scheme mode for scheduling a third plurality of tasks of the NBMP workflow;
- scheduling the third plurality of tasks of the NBMP workflow to be executed to process media in accordance with the third scheme mode indicated by the third value;
- receiving, from the NBMP client, the syntax element with a fourth value indicating the fourth scheme mode for scheduling a fourth plurality of tasks of the NBMP workflow;
- scheduling the fourth plurality of tasks of the NBMP workflow to be executed to process media in accordance with the fourth scheme mode indicated by the fourth value, and
- the first value, the second value, the third value, and the fourth value of the syntax element are different values from each other.
A system comprising:
- at least one memory configured to store computer program code;
- and
- at least one processor configured to access the computer program code and operate as instructed by the computer program code, the computer program code comprising:
- sending code configured to cause a network-based media processing (NBMP) workflow manager, implemented by the at least one processor, to send first information indicating that the NBMP workflow manager supports a scheme mode for scheduling an NBMP workflow;
- obtaining code configured to cause the NBMP workflow manager to obtain the scheme mode for scheduling the NBMP workflow, the scheme mode obtained based on received second information, from the NBMP client, that indicates the scheme mode;
- and
- scheduling code configured to cause the NBMP workflow manager to schedule tasks of the NBMP workflow to be executed to process media in accordance with the scheme mode indicated in the received second information,
- wherein the scheme mode indicated in the received second information and indicated to be supported by the NBMP workflow manager in the first information is:
- a first scheme mode in which each task of the NBMP workflow is executed once for an entirety of an input of the task,
- a second scheme mode in which each task of the NBMP workflow is executed for a predetermined duration of the input of the task or for a predetermined duration of an output of the task,
- a third scheme mode in which each task of the NBMP workflow is started based on a start event or stopped based on a stop event, or
- a fourth scheme mode in which each task of the NBMP workflow is started according to a predetermined schedule, wherein the predetermined schedule includes time slots for executing the tasks, wherein
- the scheme mode indicated in the second information, and indicated to be supported by the NBMP workflow manager in the first information, is the first scheme mode,
- the receiving the second information comprises, receiving, from the NBMP client, a syntax element with a first value indicating the first scheme mode for scheduling a first plurality of tasks of the NBMP workflow, the first value being the second information,
- the processor is further configured to access the computer program code and operate as instructed by the computer program code to implement:
- receiving, from the NBMP client, the syntax element with a second value indicating the second scheme mode for scheduling a second plurality of tasks of the NBMP workflow;
- scheduling the second plurality of tasks of the NBMP workflow to be executed to process media in accordance with the second scheme mode indicated by the second value;
- receiving, from the NBMP client, the syntax element with a third value indicating the third scheme mode for scheduling a third plurality of tasks of the NBMP workflow;
- scheduling the third plurality of tasks of the NBMP workflow to be executed to process media in accordance with the third scheme mode indicated by the third value;
- receiving, from the NBMP client, the syntax element with a fourth value indicating the fourth scheme mode for scheduling a fourth plurality of tasks of the NBMP workflow;
- scheduling the fourth plurality of tasks of the NBMP workflow to be executed to process media in accordance with the fourth scheme mode indicated by the fourth value, and
- the first value, the second value, the third value, and the fourth value of the syntax element are different values from each other.
A non-transitory computer-readable medium storing computer code that is configured to, when executed by at least one processor, cause the at least one processor to implement a network-based media processing (NBMP) workflow manager that:
- sends, to an NBMP client, first information indicating that the NBMP workflow manager supports a scheme mode for scheduling an NBMP workflow;
- obtains the scheme mode for scheduling the NBMP workflow, the scheme mode obtained based on received second information, from the NBMP client, that indicates the scheme mode;
- and
- schedules tasks of the NBMP workflow to be executed to process media in accordance with the scheme mode indicated in the received second information,
- wherein the scheme mode indicated in the received second information and indicated to be supported by the NBMP workflow manager in the first information is:
- a first scheme mode in which each task of the NBMP workflow is executed once for an entirety of an input of the task,
- a second scheme mode in which each task of the NBMP workflow is executed for a predetermined duration of the input of the task or for a predetermined duration of an output of the task,
- a third scheme mode in which each task of the NBMP workflow is started based on a start event or stopped based on a stop event, or
- a fourth scheme mode in which each task of the NBMP workflow is started according to a predetermined schedule, wherein the predetermined schedule includes time slots for executing the tasks, wherein
- the scheme mode indicated in the second information, and indicated to be supported by the NBMP workflow manager in the first information, is the first scheme mode,
- the receiving the second information comprises, receiving, from the NBMP client, a syntax element with a first value indicating the first scheme mode for scheduling a first plurality of tasks of the NBMP workflow, the first value being the second information,
- the computer code that is configured to, when executed by at least one processor, cause the at least one processor to implement:
- receiving, from the NBMP client, the syntax element with a second value indicating the second scheme mode for scheduling a second plurality of tasks of the NBMP workflow;
- scheduling the second plurality of tasks of the NBMP workflow to be executed to process media in accordance with the second scheme mode indicated by the second value;
- receiving, from the NBMP client, the syntax element with a third value indicating the third scheme mode for scheduling a third plurality of tasks of the NBMP workflow;
- scheduling the third plurality of tasks of the NBMP workflow to be executed to process media in accordance with the third scheme mode indicated by the third value;
- receiving, from the NBMP client, the syntax element with a fourth value indicating the fourth scheme mode for scheduling a fourth plurality of tasks of the NBMP workflow;
- scheduling the fourth plurality of tasks of the NBMP workflow to be executed to process media in accordance with the fourth scheme mode indicated by the fourth value, and
- the first value, the second value, the third value, and the fourth value of the syntax element are different values from each other.
Dependencies are inferred from the claim text.