跳转至

Execution mode settings(执行模式设置)

You can choose between two execution modes for a Logic function: user-scoped execution and project-scoped execution. User-scoped execution is the default mode.

User-scoped execution

When configured in user-scoped mode, the Logic function will run using the permissions of the user running the Logic function.

In user-scoped mode, each user can only see their own execution logs, and not the logs of other users running the Logic function. Execution logs are persisted for 24 hours.

Project-scoped execution

When configured in project-scoped mode, the Logic function will run using the permissions of the project containing the Logic function. In project-scoped mode, execution logs are visible to everyone with project access.

Project-scoped execution requires that all resources which are used by the Logic function must also be imported into the same project as the Logic function. Users will additionally require access to the markings on these resources.

You can check if all required resources are imported in the execution mode settings; if a resource is missing, you will be able to import it directly from the configuration.

Execution dataset

Run history dataset

When using project-scoped execution, you can configure a dataset where all run histories will be logged. Each execution is recorded as a new row in this dataset, and the past 10000 runs are preserved.


中文翻译

执行模式设置

您可以为逻辑函数(Logic function)选择两种执行模式:用户作用域(user-scoped)执行和项目作用域(project-scoped)执行。用户作用域执行是默认模式。

用户作用域执行

当配置为用户作用域模式时,逻辑函数将使用运行该逻辑函数的用户的权限来执行。

在用户作用域模式下,每个用户只能查看自己的执行日志,而无法查看其他用户运行该逻辑函数的日志。执行日志会保留24小时。

项目作用域执行

当配置为项目作用域模式时,逻辑函数将使用包含该逻辑函数的项目的权限来执行。在项目作用域模式下,拥有项目访问权限的所有用户都可以查看执行日志。

项目作用域执行要求逻辑函数使用的所有资源也必须导入到与该逻辑函数相同的项目中。用户还需要拥有这些资源上标记(markings)的访问权限。

您可以在执行模式设置中检查是否已导入所有必需的资源;如果缺少某个资源,您可以直接从配置中将其导入。

执行数据集

运行历史数据集

使用项目作用域执行时,您可以配置一个数据集,用于记录所有运行历史。每次执行都会作为新的一行记录在该数据集中,并且会保留最近10000次运行记录。