Orchestrator
2022.10
False
横幅背景图像
Orchestrator 安装指南
上次更新日期 2024年3月4日

Webhooks AppSettings.json

appsetting.json 文件 (C:\Program Files (x86)\UiPath\Orchestrator\Webhooks) 包含 Webhooks 服务的开箱即用设置。建议在 appsetting.Production.json 中配置您的自定义设置。每次完成安装后,此文件将覆盖 appsetting.json 内任何预先存在的设置。
注意:建议只有管理员更改这些参数的值。
此外,建议您关闭 IIS 服务器,以便在任何情况下修改 appsetting.Production.json 设置。

未记录在此页中的参数不应更改。

所有参数都区分大小写。

设置优先级

可以在多个位置配置设置。以下是 Webhooks 服务在确定设置的值时使用的优先级,从高 (1) 到低 (3):

  1. appsettings.Production.json 文件中的值
  2. appsettings.json 文件中的值
  3. 代码中的默认值设置。仅当在 appsettings.Production.jsonappsettings.json 中找不到特定设置时使用。

设置

文件 appsettings.json 的内部结构由多个 json 部分组成,用逗号分隔。

Orchestrator SQL 客户端设置

"OrchestratorSqlClientSettings": {
    "ConnectionString": "<OrchestratorConnectionString>",
    "Enabled": true
  },"OrchestratorSqlClientSettings": {
    "ConnectionString": "<OrchestratorConnectionString>",
    "Enabled": true
  },

ConnectionString

由要连接到的 Orchestrator 实例生成的连接字符串。

Webhook 服务配置

"WebhookServiceConfig": {
    "MaxWorkerCount": 10,
    "HttpClientUserAgent": "UiPath-WebhookService/Webhooks",
    "RequestTimeout": "0.00:01:00",
    "RetryAfter": [
      "0.00:00:0",
      "0.00:00:45",
      "0.00:02:30",
      "0.00:05:00"
    ],
    "MaxRetryRequests": 2
  },"WebhookServiceConfig": {
    "MaxWorkerCount": 10,
    "HttpClientUserAgent": "UiPath-WebhookService/Webhooks",
    "RequestTimeout": "0.00:01:00",
    "RetryAfter": [
      "0.00:00:0",
      "0.00:00:45",
      "0.00:02:30",
      "0.00:05:00"
    ],
    "MaxRetryRequests": 2
  },

RequestsTimeout

取消每个 HTTP 请求后的时间量。请注意,根据 RetryAfter 值,每个超时请求都将重试。默认情况下,超时时间设置为 1 分钟。

RetryAfter

重试每个失败请求后的时间量(以秒为单位)。默认定义有 4 次重试,如下所示:

  • 第一次尝试失败后,立即执行第一次请求重试。
  • 在第一次重试失败 45 秒后执行第二次重试;
  • 在第二次重试失败 2 分 30 秒后执行第三次重试。
  • 在第三次重试失败 5 分钟后执行第四次重试。

    如果列出较少的条目,或者将 MaxRetryRequests 的值设置为较小的值,则可以更改延迟次数。我们建议您始终将第一次重试时间设置为 0,并且绝不将重试间隔设置为大于 300 秒(5 分钟)的时间量。

MaxRetryRequests

要对失败的请求执行的最大重试次数。

MaxWorkerCount

每个租户可启用的最大 Webhooks 数量。默认情况下,它设置为 10。

Ledger 配置

"LedgerConfiguration": {
    "Enabled": true,
    "Subscribers": [
      {
        "LedgerComponentType": 0,
        "ComponentId": "WebhookSubscriber",
        "Topics": null,
        "ConnectionString": "<OrchestratorConnectionString>",
        "EstablishNewConnection": false,
        "LedgerSubscriberDeliveryType": 1,
        "LedgerSubscriberReliability": 1,
        "Enabled": true,
        "LedgerComponentClassType": 2,
        "Context": "{\"BatchSize\": 500, \"DeliveriesBatchSize\": 500}"
      }
    ]
  },"LedgerConfiguration": {
    "Enabled": true,
    "Subscribers": [
      {
        "LedgerComponentType": 0,
        "ComponentId": "WebhookSubscriber",
        "Topics": null,
        "ConnectionString": "<OrchestratorConnectionString>",
        "EstablishNewConnection": false,
        "LedgerSubscriberDeliveryType": 1,
        "LedgerSubscriberReliability": 1,
        "Enabled": true,
        "LedgerComponentClassType": 2,
        "Context": "{\"BatchSize\": 500, \"DeliveriesBatchSize\": 500}"
      }
    ]
  },

ConnectionString

由要连接到的 Orchestrator 实例生成的连接字符串。

"ApplicationInsights": {
    "InstrumentationKey": "<AI_InstrumentationKey>"
  },"ApplicationInsights": {
    "InstrumentationKey": "<AI_InstrumentationKey>"
  },

InstrumentationKey

如果您使用的是 Application Insights,则需要提供。

点击此处查看官方 Application Insights 文档。

  • 设置优先级
  • 设置
  • Orchestrator SQL 客户端设置
  • Webhook 服务配置
  • Ledger 配置

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.