Using a Command Task to create a shell to run the same workflow again in a loop using nohup

I know that the typical solution to have a recursive workflow call is to create 2 workflows and call each other until a condition is met and the workflow is ended.

But I tried to do this without a second workflow, instead I used a command at the last of flow in the workflow and with it I create a shell script which then I run using nohup and &.

It apparently works, but the pmcmd command return with a weird message, supposedly my workflow that just ran few seconds before is impacted, which clearly is not, as it just ran.

Let’s say my workflow name is: wkf_myworkflow_looped

I create the shell like this each is a line in Command task:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>echo '#!/bin/sh'>/batch/myproject/run_next.sh
echo 'sleep 60' >>/batch/myproject/run_next.sh
echo 'pmcmd startworkflow -service $$SERVICE -domain $$DOMAIN -u $$USER -p $$PASSWORD -f $$FOLDER -nowait wkf_myworkflow_looped'>>/batch/myproject/run_next.sh
chmod 777 /batch/myproject/run_next.sh
nohup /batch/myproject/run_next.sh>>/batch/myproject/run_next_out.txt t 2>&1 &
</code>
<code>echo '#!/bin/sh'>/batch/myproject/run_next.sh echo 'sleep 60' >>/batch/myproject/run_next.sh echo 'pmcmd startworkflow -service $$SERVICE -domain $$DOMAIN -u $$USER -p $$PASSWORD -f $$FOLDER -nowait wkf_myworkflow_looped'>>/batch/myproject/run_next.sh chmod 777 /batch/myproject/run_next.sh nohup /batch/myproject/run_next.sh>>/batch/myproject/run_next_out.txt t 2>&1 & </code>
echo '#!/bin/sh'>/batch/myproject/run_next.sh

echo 'sleep 60' >>/batch/myproject/run_next.sh

echo 'pmcmd startworkflow -service $$SERVICE -domain $$DOMAIN -u $$USER -p $$PASSWORD -f $$FOLDER -nowait wkf_myworkflow_looped'>>/batch/myproject/run_next.sh

chmod 777 /batch/myproject/run_next.sh

nohup /batch/myproject/run_next.sh>>/batch/myproject/run_next_out.txt t 2>&1 &

Then, the workflow finish and I wait 60 seconds. I gave this delay to allow the workflow to totally settle and be rested in succeeded state.

But, when I open the output file run_next_out.txt it says:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Informatica(r) PMCMD, version [10.5.1], build [614.0914], LINUX 64-bit
Copyright (c) 1993-2021 Informatica LLC. All Rights Reserved.
See patents at https://www.informatica.com/legal/patents.html.
Invoked at Sat Aug 03 19:07:57 2024
Connected to Integration Service: [INT_SERVICE].
Starting workflow [wkf_myworkflow_looped]
ERROR: Workflow Workflow [MYFOLDER:wkf_myworkflow_looped[version 14]] is impacted.
The Integration Service is not configured to run sessions impacted by dependency updates. Please check the Integration Service log for more information.
Disconnecting from Integration Service
Completed at Sat Aug 03 19:07:57 2024
</code>
<code>Informatica(r) PMCMD, version [10.5.1], build [614.0914], LINUX 64-bit Copyright (c) 1993-2021 Informatica LLC. All Rights Reserved. See patents at https://www.informatica.com/legal/patents.html. Invoked at Sat Aug 03 19:07:57 2024 Connected to Integration Service: [INT_SERVICE]. Starting workflow [wkf_myworkflow_looped] ERROR: Workflow Workflow [MYFOLDER:wkf_myworkflow_looped[version 14]] is impacted. The Integration Service is not configured to run sessions impacted by dependency updates. Please check the Integration Service log for more information. Disconnecting from Integration Service Completed at Sat Aug 03 19:07:57 2024 </code>
Informatica(r) PMCMD, version [10.5.1], build [614.0914], LINUX 64-bit

Copyright (c) 1993-2021 Informatica LLC. All Rights Reserved.

See patents at https://www.informatica.com/legal/patents.html.

 

Invoked at Sat Aug 03 19:07:57 2024

 

Connected to Integration Service: [INT_SERVICE].

Starting workflow [wkf_myworkflow_looped]

ERROR: Workflow Workflow [MYFOLDER:wkf_myworkflow_looped[version 14]] is impacted. 

The Integration Service is not configured to run sessions impacted by dependency updates. Please check the Integration Service log for more information.

Disconnecting from Integration Service

 

Completed at Sat Aug 03 19:07:57 2024

But my workflow is not impacted, I checked it and I just ran it. It just ran a minute before.

Why is this happening?

It looks like pmcmd don’t like to be called from a process that is running the main PC process.

Does anybody have tried this with success?

New contributor

Rodriguez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật