Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Task pipeline execution method and device and electronic equipment

An execution method and task execution technology, applied in the direction of program control device, multi-program device, program control design, etc., can solve problems such as python script memory leaks, python modules cannot be uninstalled cleanly, and tasks cannot be executed normally, so as to save money System resources, the effect of improving execution efficiency

Active Publication Date: 2020-09-04
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problem with the tight coupling method is that there is a memory leak in the python script, and the python module cannot be uninstalled cleanly
If two tasks have modules with the same name but different functions (such as different versions of the same tool), the tasks will not be executed normally

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task pipeline execution method and device and electronic equipment
  • Task pipeline execution method and device and electronic equipment
  • Task pipeline execution method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] Embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings.

[0056]Embodiments of the present disclosure are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Apparently, the described embodiments are only some of the embodiments of the present disclosure, not all of them. The present disclosure can also be implemented or applied through different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in the present disclosure, al...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the invention provide a task pipeline execution method and device, and electronic equipment, and belong to data scheduling. The method comprises the steps of setting a plurality of sub-processes isolated from a main process in a task container, each sub-process being used for executing a pipeline task; after a to-be-executed task related to the main process is obtained, selecting atarget sub-processd from the multiple sub-processes, wherein the target sub-process is used for running the to-be-executed task; after the to-be-executed task in the target sub-process is executed, executing a task in an associated sub-process related to the target sub-process according to a preset strategy; and after the tasks in all the sub-processes in the container are executed, releasing system resources occupied by all the sub-processes in the process of executing the tasks. Through the processing scheme disclosed by the invention, the execution efficiency of the task pipeline can be improved.

Description

technical field [0001] The present disclosure relates to data scheduling, and in particular to a task pipeline execution method, device and electronic equipment. Background technique [0002] There are two different approaches to the implementation of task pipelines, one is loosely coupled and the other is tightly coupled. Loose coupling means that each task runs in an independent container. When a task in the task pipeline is executed, the container will be killed, and then another container will be started to run the next task. Tight coupling means that all tasks are scheduled by the same main process. The advantage of the tight coupling method is that the execution efficiency of the task pipeline is high, and all tasks run in the same container, without the overhead of frequently starting the container. The problem with the tightly coupled method is that there is a memory leak in the python script, and the python modules cannot be uninstalled cleanly. If two tasks have...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/50G06F9/4401G06F9/445G06F9/455
CPCG06F9/485G06F9/5077G06F9/5022G06F9/5016G06F9/4418G06F9/4451G06F9/45558G06F2009/45583Y02D10/00
Inventor 白戈王长虎
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products