CN112306685A - Task isolation method and device, electronic equipment and computer readable medium - Google Patents

Task isolation method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112306685A
CN112306685A CN202011185902.9A CN202011185902A CN112306685A CN 112306685 A CN112306685 A CN 112306685A CN 202011185902 A CN202011185902 A CN 202011185902A CN 112306685 A CN112306685 A CN 112306685A
Authority
CN
China
Prior art keywords
task
target
isolation
isolation environment
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011185902.9A
Other languages
Chinese (zh)
Other versions
CN112306685B (en
Inventor
陈海东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011185902.9A priority Critical patent/CN112306685B/en
Publication of CN112306685A publication Critical patent/CN112306685A/en
Application granted granted Critical
Publication of CN112306685B publication Critical patent/CN112306685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a task isolation method and device, electronic equipment and a computer readable medium, and relates to the technical field of information processing. The task isolation method comprises the following steps: receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task; and allocating the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other. According to the technical scheme provided by the disclosure, the executed target task cannot be influenced by tasks in other task isolation environments, the environmental conflict of parallel operation of multiple tasks in one task environment can be eliminated, the tasks can be quickly executed in the target task isolation environment, the tasks can be respectively operated in different task isolation environments, and the task operation efficiency is improved.

Description

Task isolation method and device, electronic equipment and computer readable medium
Technical Field
The disclosure relates to the technical field of information processing, and in particular relates to a task isolation method and device, an electronic device and a computer readable medium.
Background
With the development of the internet and intelligent terminals, various application programs are increased, and the processing speed of people for various terminals is required to be higher and higher. In order to increase the processing speed of the terminal, parallel execution of the same type of tasks is generally required.
In the prior art, when a task terminal executing a task is used for paralleling a plurality of tasks of the same type, the stability of task operation is further affected due to parameter configuration and file read-write conflict, so that the parallel number of the tasks has to be reduced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, a task isolation method is provided, and the method includes:
receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
and distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
In a second aspect, a task isolation method is also provided, and the method includes:
receiving task isolation environment configuration information sent by a plurality of task terminals respectively, wherein the task isolation environment configuration information is used for indicating the functional characteristics and the isolation environment identifications corresponding to the task isolation environments supported by the task terminals respectively, and the functional characteristics are used for identifying the service functions supported by the task isolation environments;
creating a task environment characteristic index table according to the received configuration information of the plurality of task isolation environments, wherein the task environment characteristic index table is used for maintaining the association relation among the isolation environment identifiers, the task terminals and the functional characteristics;
responding to target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
In a third aspect, there is provided a task isolation apparatus, including:
the request receiving module is used for receiving a task processing request sent by the management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
and the distribution module is used for distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
In a fourth aspect, there is also provided a task isolation apparatus, including:
the task isolation environment configuration information is used for indicating the functional characteristics and the isolation environment identifications which correspond to the task isolation environments supported by the task terminal respectively, and the functional characteristics are used for identifying the service functions supported by the task isolation environments;
the system comprises an index creating module, a task environment characteristic index table and a task terminal, wherein the index creating module is used for creating the task environment characteristic index table according to a plurality of received task isolation environment configuration information, and the task environment characteristic index table is used for maintaining the association relation among isolation environment identifiers, the task terminal and functional characteristics;
the request generation module is used for responding to target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
and the sending module is used for determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal so as to indicate the target task terminal to process the target task.
In a fifth aspect, there is also provided an electronic device, including:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the task isolation method shown in the first aspect or the second aspect of the present disclosure is performed.
In a sixth aspect, there is also provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the task isolation method shown in the first or second aspect of the present disclosure.
Compared with the prior art, the embodiments of the present disclosure provide a task isolation method, a device, an electronic device, and a medium, where a task processing request is received, a target task can be allocated to a target task isolation environment corresponding to an account, the target task isolation environment corresponds to a target isolation environment identifier of the task processing request, the target task can be normally executed in the target task isolation environment, when the target task is executed in the target task isolation environment, the executed target task does not affect tasks in other task isolation environments, an environmental conflict of parallel operation of multiple tasks in one task environment can be eliminated, the task can be quickly executed in the target task isolation environment, different task isolation environments can respectively execute the tasks, and task operation efficiency is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic application environment diagram of a task isolation method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a task isolation method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a task isolation method according to an embodiment of the present disclosure;
fig. 4 is a timing diagram illustrating a task isolation method according to an embodiment of the disclosure;
FIG. 5 is a schematic structural diagram of a task isolation device according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a task isolation device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a task-isolated electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The task isolation method, device, task terminal, management terminal and medium provided by the present disclosure aim to solve the above technical problems in the prior art.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
The task isolation method provided by the present disclosure can be applied to the application environment shown in fig. 1. Specifically, the task terminal may include a plurality of task terminals, and the embodiment of the present disclosure is described with 2 examples, and includes a task terminal 101a and a task terminal 101b, where the task terminal 101a or the task terminal 101b receives a task processing request sent by the management server 102, and the task processing request includes a target isolation environment identifier and a target task; the task terminal 101a or the task terminal 101b allocates the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments, so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
Those skilled in the art will appreciate that the task terminal 101a, the task terminal 101b, and the management server 102 may be terminals to execute corresponding programs. In other embodiments, the management server 102 may be replaced with a server.
Those skilled in the art will understand that the "terminal" used herein may be a Mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an MID (Mobile Internet Device), etc.; a "server" may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
Referring to fig. 2, an embodiment of the present disclosure provides a task isolation method, which may be applied to a task terminal shown in fig. 1, where the method includes:
step S201: and receiving a task processing request sent by the management server, wherein the task processing request comprises a target isolation environment identifier and a target task.
The task terminal and the management server are in communication connection, and the communication connection mode is not limited. Optionally, the task terminal and the management server are in communication connection through a network long connection technology. The task terminal can be preset with a plurality of accounts and task isolation environments respectively corresponding to the accounts, one task isolation environment is allocated under each account, and each task isolation environment comprises a corresponding isolation environment identifier. The task isolation environment is used for running tasks, and different task isolation environments can run different tasks. Data between every two accounts are isolated, and the isolation effect of a task isolation environment under one account and a task isolation environment under the other account is better. When different tasks run in different task isolation environments, the tasks running in different task isolation environments are not affected mutually, conflicts cannot be caused by parameter configuration of different tasks and file reading and writing performed by the tasks, and the problem of stability during task running cannot be caused.
In the embodiments disclosed herein, the specific type or content of the task is not limited. Illustratively, tasks may include a compilation task, a code scanning task, and a software package scanning task. That is, the task isolation environment may include a compile isolation environment, a code scan isolation environment, and a software package scan isolation environment. Illustratively, when the task is a compiling task, the task isolation environment is a compiling isolation environment, the compiling isolation environment is a compiling environment, and when compiling is performed in different compiling isolation environments, compiling processes of the compiling isolation environments cannot affect each other. Specifically, if the compiling isolation environment includes a C language compiling isolation environment and a JAVA language compiling isolation environment, when C language compiling is performed, compiling is performed in the C language compiling isolation environment, and when JAVA language compiling is performed, compiling is performed in the JAVA compiling isolation environment. When the task is a compiling task, the task terminal may be a compiler, and the compiler is used for compiling the program.
The task processing request may include, but is not limited to, a target isolation environment identifier for enabling the task terminal to determine a corresponding target task isolation environment, and a task, where the target task is for being executed by the task terminal, and the target isolation environment identifier includes an ID (Identity document) number of the task isolation environment. The target task may include a task instruction and a task parameter. Optionally, the task processing request includes a compiling task processing request, a code scanning task processing request, and a software package scanning task processing request, and the target task corresponds to the compiling task, the code scanning task, and the software package scanning task. It can be understood that the target isolation environment identifier is one of isolation environment identifiers corresponding to a plurality of task isolation environments in the task terminal. The target task isolation environment is one of a plurality of task isolation environments in the task terminal.
Step S202: and allocating the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
And the task isolation environment corresponding to the target isolation environment identifier in the plurality of task isolation environments is the target task isolation environment. Each task isolation environment corresponds to one preset account, namely, each preset account is allocated with one account isolation environment, data between every two preset accounts are isolated from each other, and then the task isolation environments between every two preset accounts are also isolated from each other. The task isolation environments are isolated, and the data isolation among accounts enables the isolation effect before the task isolation environments of different accounts to be better.
The target isolation environment identifier corresponds to a target task isolation environment of the task terminal. That is, when the isolation environment identification is determined, the task isolation environment is also determined. After the task terminal receives the task processing request, the task terminal sends the target task to the target task isolation environment corresponding to the target isolation environment identifier, and the target task can be executed in the corresponding target task isolation environment. In other task isolation environments, when tasks are executed, different tasks do not influence each other, that is, a target task does not influence other tasks. Optionally, the tasks executed in the task terminal at the same time are the same type of tasks, for example, all the task isolation environments are compiling isolation environments, and the compiling isolation environment only executed in the task terminal only executes the compiling task, for example, the compiling task in the C language and the compiling task in the JAVA language are executed.
According to the task isolation method provided by the embodiment of the disclosure, the target task can be allocated to the target task isolation environment corresponding to the account by receiving the task processing request, the target task isolation environment corresponds to the target isolation environment identifier of the task processing request, the target task can be normally executed in the target task isolation environment, when the target task is executed in the target task isolation environment, the executed target task does not affect tasks in other task isolation environments, the environmental conflict of parallel operation of multiple tasks in one task environment can be eliminated, the task can be quickly executed in the target task isolation environment, and different task isolation environments can respectively execute the task, so that the task operation efficiency is improved.
Optionally, before receiving the task processing request sent by the management server, the task isolation method further includes:
creating task isolation environments respectively corresponding to the plurality of accounts;
and sending task isolation environment configuration information respectively corresponding to the task isolation environments to a management server so that the management server creates an environment task characteristic index table according to the isolation environment identifications corresponding to the task isolation environments.
Each task isolation environment is allocated to each account, and the task isolation environments can be better isolated from each other.
The task terminal generates task isolation environment configuration information according to corresponding task isolation environment identifiers of the task isolation environment and functional characteristics of the task isolation environment, the task isolation environment configuration information is used for indicating the functional characteristics and the isolation environment identifiers which correspond to the task isolation environments supported by the task terminal respectively, and the functional characteristics are used for identifying business functions supported by the task isolation environment. The task environment characteristic index table is used for maintaining the association relation among each isolation environment identifier, the task terminal and the functional characteristics.
Optionally, the task terminal includes an administrator account and an agent (agent) program corresponding to the administrator account. The agent is used to communicate with the management server, and the administrator account may invoke the agent to communicate with the management server.
Wherein, sending task isolation environment configuration information corresponding to the task isolation environments to the management server respectively comprises:
and calling a preset agent program through a preset administrator account to send the isolation environment identifier corresponding to the task isolation environment to the management server.
Namely, when the task isolation environment configuration information corresponding to the task isolation environments is sent to the management server, the task isolation environment configuration information is sent by calling the agent program through the administrator account. When the administrator account calls the agent program, the user operates the administrator account calling agent program to send the isolation environment identifier to the management server, or the administrator account automatically sends the task isolation environment configuration information corresponding to the task isolation environment to the management server by setting a certain program.
Optionally, when the task terminal includes an agent program and an administrator account, receiving a task processing request sent by the management server includes:
and calling a preset agent program through a preset administrator account to receive a task processing request sent by the management server.
That is, when receiving a task processing request, it is received by the administrator account calling agent. The administrator account calling agent program can also allocate the target task to the target task isolation environment corresponding to the target isolation environment identifier so as to execute the target task in the target task isolation environment. The task processing request is received through the administrator account calling agent program, and the mode of receiving the task processing request is simpler.
Optionally, if a preset agent is called through a preset administrator account to receive a task processing request sent by the management server, the target task is allocated to a target task isolation environment corresponding to the target isolation environment identifier in the multiple task isolation environments, so as to execute the target task in the target task isolation environment, where the method includes:
determining a target task isolation environment corresponding to a target isolation environment identifier from a plurality of preset task isolation environments;
and allocating the target task to the target task isolation environment to execute the target task in the target task isolation environment.
The isolation environment identifier and the task isolation environment are in one-to-one correspondence, so that the target task isolation environment corresponding to the target isolation environment identifier can be determined. The target task may be run in the target isolation environment.
Optionally, when the task terminal receives the task processing request, the information is not sent or received through the administrator account and the agent program corresponding to the administrator account, the task terminal includes the agent programs corresponding to the accounts one to one, that is, the task isolation environment, the account and the agent program correspond to one, and the accounts of different users of the same task terminal respectively call the corresponding agent programs to receive or send the information. The receiving of the task processing request sent by the management server includes:
and calling an agent program corresponding to the current account through the account of the current user to receive the task processing request sent by the management server.
The account of the current user, that is, the account that received the task processing request. When the accounts of different users respectively call corresponding agent programs to receive task processing requests, the accounts can receive the task processing requests corresponding to the target isolation environment identifications corresponding to the accounts. When one account receives a task processing request, directly distributing a target task to a task isolation environment corresponding to the account. And the task isolation environment corresponding to the account, namely the target task isolation environment corresponding to the target isolation environment identifier. The agent program corresponding to the current account is called by the account of the current user to receive the task processing request sent by the management server, so that program crash caused by frequent receiving of the task processing request through the account of the administrator can be prevented, and the receiving of information such as the task processing request is more stable.
Referring to fig. 3, an embodiment of the present disclosure provides a task isolation method based on the foregoing embodiment, which may be applied to the management server shown in fig. 1, and the method may include:
step S301: receiving task isolation environment configuration information sent by a plurality of task terminals respectively, wherein the task isolation environment configuration information is used for indicating the functional characteristics and the isolation environment identifications corresponding to the task isolation environments supported by the task terminals respectively, and the functional characteristics are used for identifying the service functions supported by the task isolation environments.
The task terminal creates a plurality of accounts and task isolation environments corresponding to the accounts one by one. After each task terminal creates a task isolation environment corresponding to each of the plurality of accounts, the task terminal generates task isolation environment configuration information according to a corresponding task isolation environment identifier of the task isolation environment and functional characteristics of the task isolation environment, each task terminal sends the task isolation environment configuration information to the management server, and the management server can receive the task isolation environment configuration information sent by each task terminal.
Step S302: and creating a task environment characteristic index table according to the received configuration information of the plurality of task isolation environments, wherein the task environment characteristic index table is used for maintaining the association relation among the isolation environment identifiers, the task terminals and the functional characteristics.
The environment task characteristic index table is used for maintaining the association relation among each isolation environment identifier, the task terminal and the function characteristic. If the isolation environment mark A is corresponding to the task terminal, the functional characteristic compiling C language and the task terminal D, and the isolation environment mark B is corresponding to the functional characteristic compiling JAVA language and the task terminal D. The environment task characteristic index table is convenient for the management server to quickly select the task isolation environment corresponding to the correct isolation environment identifier when a task needs to be processed.
Step S303: and responding to target task triggering operation, determining the functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task.
The triggering operation of the target task can be triggered by a user to be completed, and the target task can also be automatically generated by the system.
The target task comprises description information, and the description information comprises a business function corresponding to the target task. For example, the description information is used for representing the target task to be compiled in JAVA language. The functional characteristics are corresponding to the description information. If the description information is compiled in JAVA language, the corresponding functional characteristics are compiled in JAVA language. After the target task is triggered, the functional characteristics corresponding to the description information can be determined according to the description information of the target task.
And the target isolation environment identifier matched with the target task is also the target task associated with the functional characteristics matched with the description information. And determining the target task associated with the functional characteristics according to the task environment characteristic index table.
Step S304: and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
After the target isolation environment identifier is determined, based on the task environment feature index table, the task terminal associated with the target isolation environment identifier, that is, the target task terminal, can be determined. And after receiving the task processing request, the target task terminal can process the target task in the target task isolation environment corresponding to the target isolation environment identifier.
The task isolation method provided by the embodiment of the disclosure includes creating an environment task feature index table according to received task isolation environment configuration information, triggering operation in response to a target task, and generating a task processing request, where the task processing request includes a target isolation environment identifier and a target task matched with the target task, determining a target task terminal associated with the target isolation environment identifier based on the task environment feature index table, sending the task processing request to the target task terminal to instruct the target task terminal to process the target task, that is, the target task is executed in a target task isolation environment corresponding to the target isolation environment identifier, and the executed task does not affect tasks in other task isolation environments, so that an environment conflict of parallel operation of multiple tasks in one task environment can be eliminated, the task can be quickly executed in the target task isolation environment, and different task isolation environments can respectively run the task, so that the task running efficiency is improved.
Optionally, generating a task processing request includes:
determining a target isolation environment identifier associated with the functional feature according to the functional feature;
and generating a task processing request comprising the target isolation environment representation and the target task according to the description information of the target task.
The functional characteristics, the task terminal and the isolation environment identifier are associated, and after the functional characteristics are determined, the target isolation environment identifier can also be determined.
Optionally, when the isolation environment identifiers of the multiple target task terminals correspond to the functional feature, determining the target isolation environment identifier associated with the functional feature according to the functional feature includes:
taking the isolation environment identifier associated with the task terminal with the highest priority and associated with the functional characteristic as a target isolation environment identifier; or
And taking the isolation environment identifier associated with the task terminal which is associated with the functional characteristics and has the least number of executed tasks as a target isolation environment identifier.
The isolation environment identifications of the target task terminals correspond to the functional features, that is, the task isolation environments of the target task terminals can execute the functions corresponding to the functional features. It is necessary to determine the isolation environment identifier of one terminal from a plurality of terminals as the target isolation environment identifier.
If the priority of the task terminal A is the highest, the isolation environment identifier associated with the functional characteristics in the task terminal A is used as the target isolation environment identifier.
And executing the task terminal with the least number of tasks, and if the number of the tasks running in the plurality of task isolation environments of the task terminal A is the least among the task terminal A, the task terminal B and the task terminal C, taking the isolation environment identifier associated with the functional characteristics in the task terminal A as the target isolation environment identifier.
Referring to fig. 4, in order to better understand the task isolation method, an example of the task isolation method of the present disclosure is set forth in detail below.
In one example, the present disclosure provides a task isolation method, including the steps of:
step S401, a task terminal creates task isolation environments corresponding to a plurality of accounts respectively, and data between every two accounts are isolated from each other;
step S402, the task terminal sends task isolation environment configuration information respectively corresponding to the task isolation environments to the management server;
step S403: the management server creates a task environment characteristic index table according to the received configuration information of the plurality of task isolation environments, wherein the task environment characteristic index table is used for maintaining the association relation among the isolation environment identifiers, the task terminals and the functional characteristics;
step S404: the management server responds to target task triggering operation, determines functional characteristics corresponding to the description information according to the description information of the target task, and generates a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
step S405: and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
In the above example, the target task can be allocated to the target task isolation environment by receiving the task processing request, when the target task is executed in the target task isolation environment, the executed task does not affect tasks in other task isolation environments, an environment conflict of parallel operation of multiple tasks in one task environment can be eliminated, the task can be quickly executed in the target task isolation environment, different task isolation environments can respectively execute the tasks, and the task operation efficiency is improved.
Referring to fig. 5, a twelfth embodiment of the present disclosure provides a task isolation device 50, where the task isolation device 50 is applied to the task terminal of the foregoing disclosed embodiment, and the task isolation device can implement the task isolation method of the foregoing embodiments, and the task isolation device 50 may include: a request receiving module 501 and an allocation module 502, wherein,
a request receiving module 501, configured to receive a task processing request sent by a management server, where the task processing request includes a target isolation environment identifier and a target task;
the allocating module 502 is configured to allocate the target task to a target task isolation environment corresponding to the target isolation environment identifier in multiple task isolation environments, so as to execute the target task in the target task isolation environment, where each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
The task isolation device provided by the embodiment of the disclosure can allocate the target task to the target task isolation environment corresponding to the account by receiving the task processing request, the target task isolation environment corresponds to the target isolation environment identifier of the task processing request, the target task can be normally executed in the target task isolation environment, when the target task is executed in the target task isolation environment, the executed target task does not affect tasks in other task isolation environments, the environmental conflict of parallel operation of multiple tasks in one task environment can be eliminated, the task can be quickly executed in the target task isolation environment, and different task isolation environments can respectively execute the task, so that the task operation efficiency is improved.
Among them, the task isolation device 50 may further include:
the creating module is used for creating task isolation environments corresponding to the accounts respectively;
and the identifier sending module is used for sending the task isolation environment configuration information respectively corresponding to the task isolation environments to the management server so that the management server creates an environment task characteristic index table according to the isolation environment identifiers corresponding to the task isolation environments.
The identifier sending module is specifically configured to: and calling a preset agent program through a preset administrator account to send the isolation environment identifier corresponding to the task isolation environment to the management server.
The request receiving module 501 is specifically configured to: calling a preset agent program through a preset administrator account to receive a task processing request sent by a management server; or calling an agent program corresponding to the current account through the account of the current user to receive the task processing request sent by the management server.
If the request receiving module 501 is specifically configured to invoke a preset agent program through a preset administrator account to receive a task processing request sent by the management server, the allocating module 502 includes:
the environment determining unit is used for determining a target task isolation environment corresponding to the target isolation environment identifier from a plurality of preset task isolation environments;
and the task distribution unit is used for distributing the target task to the target task isolation environment so as to execute the target task in the target task isolation environment.
Referring to fig. 6, an embodiment of the present disclosure provides a task isolation device 60, where the task isolation device 60 is applied to the task terminal of the foregoing embodiment, and the task isolation device 60 may implement the task isolation method of the foregoing embodiment, where the task isolation device 60 may include: an identification reception module 601, an index creation module 602, and a transmission module 603, wherein,
an identifier receiving module 601, configured to receive task isolation environment configuration information sent by each of a plurality of task terminals, where the task isolation environment configuration information is used to indicate a functional feature and an isolation environment identifier corresponding to each of a plurality of task isolation environments supported by the task terminal, and the functional feature is used to identify a service function supported by the task isolation environment;
an index creating module 602, configured to create a task environment feature index table according to the received configuration information of the multiple task isolation environments, where the task environment feature index table is used to maintain association relationships between each isolation environment identifier, the task terminal, and the function feature;
a request generating module 603, configured to determine, in response to a target task trigger operation, a functional feature corresponding to description information of a target task according to the description information, and generate a task processing request, where the task processing request includes a target isolation environment identifier and the target task, where the target isolation environment identifier is matched with the target task;
a sending module 604, configured to determine, based on the task environment feature index table, a target task terminal associated with the target isolation environment identifier, and send the task processing request to the target task terminal to instruct the target task terminal to process the target task.
The task isolation device provided by the embodiment of the disclosure creates an environment task feature index table according to received task isolation environment configuration information, triggers operation in response to a target task, and generates a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task, determines a target task terminal associated with the target isolation environment identifier based on the task environment feature index table, sends the task processing request to the target task terminal to instruct the target task terminal to process the target task, namely the target task is executed in a target task isolation environment corresponding to the target isolation environment identifier, the executed task does not affect tasks in other task isolation environments, and can eliminate environment conflict of parallel operation of multiple tasks in one task environment, the task can be quickly executed in the target task isolation environment, and different task isolation environments can respectively run the task, so that the task running efficiency is improved.
The request generating module 603 may include:
the identification determining unit is used for determining a target isolation environment identification associated with the functional characteristic according to the functional characteristic;
a request generating unit, configured to generate a task processing request including the target isolation environment representation and the target task according to the description information of the target task
The identification determining unit is specifically configured to use an isolation environment identification associated with the task terminal with the highest priority and associated with the functional feature as a target isolation environment identification; or the isolation environment identifier associated with the task terminal which is associated with the functional characteristics and has the least number of executed tasks is taken as the target isolation environment identifier
Referring to fig. 7, a schematic structural diagram of an electronic device (e.g., the task terminal or the management server in fig. 1) 700 suitable for implementing an embodiment of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 701 hereinafter, and the memory may include at least one of a Read Only Memory (ROM)702, a Random Access Memory (RAM)703 and a storage device 708 hereinafter, as shown in detail below:
as shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task; and allocating the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving task isolation environment configuration information sent by a plurality of task terminals respectively, wherein the task isolation environment configuration information is used for indicating the functional characteristics and the isolation environment identifications corresponding to the task isolation environments supported by the task terminals respectively, and the functional characteristics are used for identifying the service functions supported by the task isolation environments; creating a task environment characteristic index table according to the received configuration information of the plurality of task isolation environments, wherein the task environment characteristic index table is used for maintaining the association relation among the isolation environment identifiers, the task terminals and the functional characteristics; responding to target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task; and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module or unit does not in some cases constitute a limitation of the unit itself, for example, the request receiving module may also be described as a "unit for obtaining at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a task isolation method including:
receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
and allocating the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
According to one or more embodiments of the present disclosure, the task isolation method further includes:
creating task isolation environments respectively corresponding to the plurality of accounts;
and sending task isolation environment configuration information respectively corresponding to the task isolation environments to a management server so that the management server creates an environment task characteristic index table according to the isolation environment identifications corresponding to the task isolation environments.
According to one or more embodiments of the present disclosure, sending task isolation environment configuration information respectively corresponding to task isolation environments to a management server includes:
and calling a preset agent program through a preset administrator account to send the isolation environment identifier corresponding to the task isolation environment to the management server.
According to one or more embodiments of the present disclosure, receiving a task processing request sent by a management server includes:
calling a preset agent program through a preset administrator account to receive a task processing request sent by a management server; or
And calling an agent program corresponding to the current account through the account of the current user to receive the task processing request sent by the management server.
According to one or more embodiments of the present disclosure, if a preset agent is called through a preset administrator account to receive a task processing request sent by a management server, a target task is allocated to a target task isolation environment corresponding to a target isolation environment identifier in a plurality of task isolation environments, so as to execute the target task in the target task isolation environment, including:
determining a target task isolation environment corresponding to a target isolation environment identifier from a plurality of preset task isolation environments;
and allocating the target task to the target task isolation environment to execute the target task in the target task isolation environment.
According to one or more embodiments of the present disclosure, there is provided a task isolation method including:
receiving isolation environment identifications respectively corresponding to a plurality of task isolation environments sent by a task terminal;
creating an environment task characteristic index table according to each isolation environment identifier, wherein the environment task characteristic index table comprises corresponding relation indexes of the isolation environment identifiers and the functional characteristics of the task isolation environment;
and when receiving a task processing requirement aiming at the target task, generating and sending a task processing request to a task terminal corresponding to the task processing requirement according to the task processing requirement and the environment task characteristic index table.
According to one or more embodiments of the present disclosure, a task processing requirement includes a task characteristic, and a task terminal generating and sending a task processing request to correspond to the task processing requirement according to the task processing requirement and an environmental task characteristic index table includes:
determining a target isolation environment identifier corresponding to the task characteristics through an environment task characteristic index table, and generating a task processing request according to the target isolation environment identifier;
and sending the task processing request to a target task terminal comprising a target isolation environment identifier.
According to one or more embodiments of the present disclosure, when there are a plurality of target task terminals, sending a task processing request to the target task terminal including a target isolation environment identifier, includes:
and sending the task processing request to any target task terminal according to a preset rule.
According to one or more embodiments of the present disclosure, there is provided a task isolation apparatus including:
the request receiving module is used for receiving a task processing request sent by the management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
and the distribution module is used for distributing the target tasks to the target task isolation environments corresponding to the target isolation environment identifications in the plurality of task isolation environments so as to execute the target tasks in the target task isolation environments, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
Wherein, task isolating device can also include:
the creating module is used for creating task isolation environments corresponding to the accounts respectively;
and the identifier sending module is used for sending the task isolation environment configuration information respectively corresponding to the task isolation environments to the management server so that the management server creates an environment task characteristic index table according to the isolation environment identifiers corresponding to the task isolation environments.
The identifier sending module is specifically configured to: and calling a preset agent program through a preset administrator account to send the isolation environment identifier corresponding to the task isolation environment to the management server.
Wherein, the request receiving module is specifically configured to: calling a preset agent program through a preset administrator account to receive a task processing request sent by a management server; or calling an agent program corresponding to the current account through the account of the current user to receive the task processing request sent by the management server.
Wherein, if the request receiving module is specifically used for calling a preset agent program through a preset administrator account to receive a task processing request sent by the management server, the allocating module includes:
the environment determining unit is used for determining a target task isolation environment corresponding to the target isolation environment identifier from a plurality of preset task isolation environments;
and the task distribution unit is used for distributing the target task to the target task isolation environment so as to execute the target task in the target task isolation environment.
According to one or more embodiments of the present disclosure, there is provided a task isolation apparatus including:
the identification receiving module is used for receiving the isolation environment identifications respectively corresponding to the plurality of task isolation environments sent by the task terminal;
the index creating module is used for creating an environment task characteristic index table according to each isolation environment identifier, and the environment task characteristic index table comprises corresponding relation indexes of the isolation environment identifiers and the functional characteristics of the task isolation environment;
and the sending module is used for generating and sending the task processing request to the task terminal corresponding to the task processing requirement according to the task processing requirement and the environment task characteristic index table when receiving the task processing requirement aiming at the target task.
Wherein, the sending module may include:
the generating unit is used for determining a target isolation environment identifier corresponding to the task characteristics through the environment task characteristic index table and generating a task processing request according to the target isolation environment identifier;
and the sending unit is used for sending the task processing request to a target task terminal comprising a target isolation environment identifier.
When there are multiple target task terminals, the sending unit is specifically configured to:
and sending the task processing request to any target task terminal according to a preset rule.
According to one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: a task isolation method according to any of the above embodiments is performed.
According to one or more embodiments of the present disclosure, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the task isolation method of any of the above-described embodiments.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A method of task isolation, comprising:
receiving a task processing request sent by a management server, wherein the task processing request comprises a target isolation environment identifier and a target task;
and distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
2. The task isolation method according to claim 1, wherein before receiving the task processing request sent by the management server, the method further comprises:
creating task isolation environments respectively corresponding to the plurality of accounts;
and sending task isolation environment configuration information respectively corresponding to the task isolation environments to a management server so that the management server creates an environment task characteristic index table according to the isolation environment identifications corresponding to the task isolation environments.
3. The task isolation method according to claim 2, wherein the sending task isolation environment configuration information corresponding to the task isolation environments to the management server includes:
and calling a preset agent program through a preset administrator account to send the task isolation environment configuration information corresponding to the task isolation environment to the management server.
4. The task isolation method according to claim 1, wherein the receiving of the task processing request sent by the management server includes:
calling a preset agent program through a preset administrator account to receive a task processing request sent by a management server; or
And calling an agent program corresponding to the current account through the account of the current user to receive a task processing request sent by the management server.
5. A method of task isolation, comprising:
receiving task isolation environment configuration information sent by a plurality of task terminals respectively, wherein the task isolation environment configuration information is used for indicating the functional characteristics and the isolation environment identifications corresponding to the task isolation environments supported by the task terminals respectively, and the functional characteristics are used for identifying the service functions supported by the task isolation environments;
creating a task environment characteristic index table according to the received configuration information of the plurality of task isolation environments, wherein the task environment characteristic index table is used for maintaining the association relation among the isolation environment identifiers, the task terminals and the functional characteristics;
responding to target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
and determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal to instruct the target task terminal to process the target task.
6. The task isolation method of claim 5, wherein the generating a task processing request comprises:
determining a target isolation environment identifier associated with the functional feature according to the functional feature;
and generating a task processing request comprising the target isolation environment representation and the target task according to the description information of the target task.
7. The task isolation method according to claim 6, wherein when isolation environment identifiers of a plurality of target task terminals correspond to the functional feature, the determining, according to the functional feature, a target isolation environment identifier associated with the functional feature includes:
taking the isolation environment identifier associated with the task terminal with the highest priority and associated with the functional characteristic as a target isolation environment identifier; or
And taking the isolation environment identifier associated with the task terminal which is associated with the functional characteristics and has the least number of executed tasks as a target isolation environment identifier.
8. A task isolation apparatus, comprising:
the system comprises a request receiving module, a task processing module and a task processing module, wherein the request receiving module is used for receiving a task processing request sent by a management server, and the task processing request comprises a target isolation environment identifier and a target task;
and the distribution module is used for distributing the target task to a target task isolation environment corresponding to the target isolation environment identifier in a plurality of task isolation environments so as to execute the target task in the target task isolation environment, wherein each task isolation environment corresponds to one preset account, and data between every two preset accounts are isolated from each other.
9. A task isolation apparatus, comprising:
the task isolation environment configuration information is used for indicating the functional characteristics and the isolation environment identifications which correspond to the task isolation environments supported by the task terminal respectively, and the functional characteristics are used for identifying the service functions supported by the task isolation environments;
the system comprises an index creating module, a task environment characteristic index table and a task terminal, wherein the index creating module is used for creating the task environment characteristic index table according to a plurality of received task isolation environment configuration information, and the task environment characteristic index table is used for maintaining the association relation among isolation environment identifiers, the task terminal and functional characteristics;
the request generation module is used for responding to target task triggering operation, determining functional characteristics corresponding to the description information according to the description information of the target task, and generating a task processing request, wherein the task processing request comprises a target isolation environment identifier matched with the target task and the target task;
and the sending module is used for determining a target task terminal associated with the target isolation environment identifier based on the task environment characteristic index table, and sending the task processing request to the target task terminal so as to indicate the target task terminal to process the target task.
10. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing a task isolation method according to any of claims 1-7.
11. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the task isolation method of any one of claims 1 to 7.
CN202011185902.9A 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium Active CN112306685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185902.9A CN112306685B (en) 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185902.9A CN112306685B (en) 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112306685A true CN112306685A (en) 2021-02-02
CN112306685B CN112306685B (en) 2023-11-24

Family

ID=74332285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185902.9A Active CN112306685B (en) 2020-10-29 2020-10-29 Task isolation method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112306685B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301155A (en) * 2021-05-24 2021-08-24 挂号网(杭州)科技有限公司 Data routing method, device, equipment and storage medium
CN115297336A (en) * 2022-07-06 2022-11-04 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment, storage medium and program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110296487A1 (en) * 2010-05-28 2011-12-01 Walsh Daniel J Systems and methods for providing an fully functional isolated execution environment for accessing content
US20150150142A1 (en) * 2013-10-23 2015-05-28 Avecto Limited Computer device and method for isolating untrusted content

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110296487A1 (en) * 2010-05-28 2011-12-01 Walsh Daniel J Systems and methods for providing an fully functional isolated execution environment for accessing content
US20150150142A1 (en) * 2013-10-23 2015-05-28 Avecto Limited Computer device and method for isolating untrusted content

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301155A (en) * 2021-05-24 2021-08-24 挂号网(杭州)科技有限公司 Data routing method, device, equipment and storage medium
CN115297336A (en) * 2022-07-06 2022-11-04 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment, storage medium and program product
CN115297336B (en) * 2022-07-06 2024-03-19 北京达佳互联信息技术有限公司 Task processing method and device, electronic equipment, storage medium and program product

Also Published As

Publication number Publication date
CN112306685B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN111163324B (en) Information processing method and device and electronic equipment
CN112214408A (en) Dependency conflict detection method and device, electronic equipment and computer readable medium
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN112306685B (en) Task isolation method, device, electronic equipment and computer readable medium
CN115237589A (en) SR-IOV-based virtualization method, device and equipment
CN110597602B (en) Transaction processing method and device, computer equipment and storage medium
CN111324376A (en) Function configuration method and device, electronic equipment and computer readable medium
CN114625536A (en) Video memory allocation method, device, medium and electronic equipment
CN113162836A (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
CN111314351A (en) Anti-crawler data processing method and device, electronic equipment and storage medium
CN113391860A (en) Service request processing method and device, electronic equipment and computer storage medium
CN113518183A (en) Camera calling method and device and electronic equipment
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN111538717A (en) Data processing method and device, electronic equipment and computer readable medium
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111552469B (en) File processing method and device in application engineering and electronic equipment
CN114513548B (en) Directional call information processing method and device
CN111625707B (en) Recommendation response method, device, medium and equipment
CN115309410B (en) Edge cluster application publishing method and device of edge computing scene and electronic equipment
CN114785794A (en) Resource allocation method, device, equipment, medium, program product and system
CN116680316A (en) Method, device, medium and electronic equipment for acquiring dimension data
CN116455652A (en) Processing method, device, equipment and medium based on authentication routing rule
CN116610719A (en) Data query method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant