はじめる前に
- マシン オブジェクトについてご存じない場合:マシンについての記事をご覧ください。
- 「プロセスの種類」のセクションで、バックグラウンド オートメーションとフォアグラウンド オートメーションのいくつかの基本的な概念についてご確認ください。
- オートメーション プロジェクトのターゲット フレームワークとオペレーティング システムに関するセクションで、プロセスの対応 OS に関する考慮事項をご確認ください。
- Unattended ロボットを設定します。
以下の表では、プロセスの実行に必要な Robot のバージョンをターゲット フレームワークおよび対応 OS 別に示します。
Operating system (target framework) | Robot version |
---|---|
Windows - Legacy (.NET Framework 4.6.1) | Any |
Windows (.NET 5.0+) | 2021.10+ |
Cross-platform (.NET 5.0+) | 2021.10+ |
以下の表では、ロボットの資格情報の有無に応じた、フォアグラウンド/バックグラウンド プロセスの実行に必要な Robot のバージョンを示します。
Process type | Robot credential considerations | Robot version |
---|---|---|
Background | With credentials | Any |
Foreground | With credentials | Any |
Background | Without credentials | 2021.10+ |
Foreground | Without credentials | Invalid configuration. You need credentials to run foreground jobs. |
無人インフラストラクチャを最適化する
無人プロセスのワークロードでは、その時々でさまざまなインフラストラクチャの条件が求められます。マシン テンプレートとそれに関連付けられたマシン インフラストラクチャで実行できるプロセスの種類を制限することで、効率を最大限に高め、無駄を最小限に抑えることができます。
- [マシン] ページで、新しいマシン テンプレートを追加または編集します。
- 必要に応じて、[サポートする使用方法] セクションで利用可能な 2 つのオプションを設定します。

Process type | On the machine infrastructure employing that machine template you can execute: Foreground only - only foreground processes, (1) Background only - only background processes, (2) All - both background and foreground processes. (3) |
Process compatibility | On the machine infrastructure employing that machine template you can execute: Windows only - Windows-compatible processes only, (4) Cross-platform only - cross-platform processes only, (5) All - both Windows-compatible and cross-platform processes. (6) |
例
たとえば、UiPath Studio をかなり前から使用しているため、さまざまなオートメーション (バックグラウンド プロセスとフォアグラウンド プロセス) が蓄積されているとします。それらのオートメーションのうち、あるものは .NET Framework 4.6.1 を使用して開発され、新しいものは .NET 5.0 で開発されました。
インフラストラクチャは以下で構成されています。
- 1 つの Windows デスクトップ
- one high-density Windows Server
- 3 つの Linux マシン
効率的な最適化戦略とはどのようなものでしょうか?
No of processes | Compatibility (set in Studio) | Machine Template Settings (set in Orchestrator) | Why |
---|---|---|---|
4 background processes | Windows - Legacy (.NET Framework 4.6.1) | We connect the Windows desktop using template A which we define as follows: Process type = Background only Process compatibility = Windows only Unattended Runtimes = 4 | .NET Framework 4.6.1 processes can only run on Windows machines. Background processes can run concurrently under the same account. Template A has 4 runtimes assigned, allowing execution of 4 jobs concurrently. |
6 background processes | Cross-platform (.NET 5.0 or higher) | We connect three Linux machines using template B which we define as follows: Process type = Background only Process compatibility = Cross-platform only Unattended Runtimes = 2 | .NET Framework 5.0 processes can run on any type of machine, Linux machines included. Template B only allows execution of background processes on the connected Linux machines. Background processes can run concurrently under the same account. Template B has 2 runtimes assigned, allowing execution of 2 jobs concurrently on each connected Linux machine: 2 jobs x 3 machines results in an execution capacity of 6 concurrent jobs. |
10 foreground processes | Windows (.NET 5.0 or higher) | We connect the Windows server using template C which we define as follows: Process type = Foreground only Process compatibility = Windows only Unattended Runtimes = 10 | .NET Framework 5.0 processes can run on any type of machine, Linux machines included, but because these are foreground processes developed for Windows, you need to run them on Windows machines. One account can run one foreground process at a time. A HD Windows Server allows opening multiple account sessions. Template C has 10 runtimes assigned, meaning 10 sessions are opened simultaneously, allowing execution of 10 foreground jobs concurrently. |
ヒントとコツ
- バックグラウンド プロセスの実行を低価格マシン (Linux など) に割り当てます。
- Windows マシンをフォアグラウンド オートメーションのために確保します。
- .NET Framework 4.6.1 を使用して開発されたバックグラウンド プロセスには Windows が必要です。同時接続実行には、Windows デスクトップを使用できます。バックグラウンド プロセスには Windows Server も高密度環境も不要です。バックグラウンド ジョブは、同一のアカウントで同時に実行できるためです。
- .NET. 5.0 以上のプロセスを実行するには、2021.10 以降の Robot が必要です。
ジョブの割り当て
Orchestrator では、無効な設定でジョブを開始することはできません。無効な設定でジョブを開始しようとすると、設定の修正方法を詳しく示したエラー メッセージが表示されます。

Starting a job using dynamic allocation, i.e. no machine or account specified, with an incompatible folder setup results in an error. Make sure to correct the setup, otherwise, jobs stay pending indefinitely. For example, trying to run a .NET Framework 4.6.1 background job when there are only cross-platform templates in the folder does not work, and jobs stay pending until the configuration is fixed.

[ジョブの詳細] ウィンドウで、設定の修正方法を確認できます。

無効な設定
- フォアグラウンド プロセスは UI を使用して開発されており、実行するには UI が必要です。現在、UiPath のフォアグラウンド オートメーションは Windows でのみ可能です。このため、クロスプラットフォームのみのマシンでフォアグラウンド オートメーションが実行されるよう設定することはできません。
- Linux マシンで Windows のみのテンプレートを使用するよう設定することはできません。クロスプラットフォームのみのテンプレートを使用するか、無制限のテンプレート (すべて) を使用します。
- 2021.10+ よりも古いバージョンの UiPath Robot が実行されているマシンで、クロスプラットフォームのみのテンプレートを使用するよう設定することはできません。バージョンを更新するか、マシン テンプレートを Windows のみまたはすべてに設定します。
1 年前に更新