【ご相談】Orchestrator上で実行中のシナリオを一時停止

現在Orchestrator+Unattendedでロボットを実行しているのですが、Unattendedで実行しているロボットを緊急対応時にOrchestrator上から停止できるようにしたいと考えています。
具体的には、以下のシナリオを実装して実現できないかと考えています。
'=======================================
①Should StopアクティビティでOCからの停止信号を受信
②Get Jobアクティビティでジョブのステータスを取得
③②で取得したジョブ一覧からプロセス名が一致かつステータスが[Stoping]になっているJobをピックアップ ※停止対象のJob
④Stop Jobアクティビティに③で取得したJobをセットして停止
'=======================================
シナリオを作成したところ、③までは想定通り稼働したものの、④で「Operation returened an invalid status code ‘Confict’」とエラー表記されてしまいます。

出来れば上記で実装したいのですが難しい場合は、Should Stopアクティビティで分岐させた後にParallelアクティビティを使って、右辺にDelay(1時間)を配置して左辺にファイルを指定階層に置くことで処理再開されるロジックを設けることで回避しようと考えています。

あくまでシナリオ終了ではなく、一時停止としたいのですが上記エラーの解消方法や停止アイデアあればご教示いただきたいです。

@dev.K

When a stop signal is sent already the job is about to stop …why do you want to get process and send the stop signal again to stop the same job?

Instead if uou want to wait and then stop…after check stop signal use if conditiona and use delay of 1 hour and then stop…

Else save the time of stop signal and continue the process till 1 hour crosses from the saved time…if this is what you need

Cheers

Thank you for answering.

My only request is to have it stop when I press the stop button in Orchestrator.

At that time, we do not want to complicate the structure of the process, so if possible, we would like to be able to stop it with a single “Stop Job” activity.

I would like to do the process described above, since stopping it for an hour and waiting for a specific trigger to restart it would make the process redundant.

@dev.K

If you want to stop or kill immediately then you need to use kill process…else stop will work exactly the same way you need…

When you send the stop signal the robot will check the stop signal using the activity whereever it is placed and then it stops smoothly

Cheers

1 Like