Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
ASB
NZ
Last activity: 2 Dec 2021 3:55 EST
Can we add wait shape in deployment pipeline in deployment manager 5.4?
Hi,
We are using deployment manager 5.4.
Our requirement is to integrate Octopus with PDM to run automation suits. We created a custom task and able to make API call to run automation suits. And we have to make one more call to get results for every 15 min until we get results(pass/fail) since system takes hours to run all automation suits. And we have to wait at custom task till we get results. How can we achieve this?
Please suggest an approach
Thank you
-
Likes (1)
Raju Botu -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Aaseya IT Solutions
IN
@VinodBavandla You cannot add a wait shape explicitly.
Even though a pipeline configuration looks like case designer, its internally an instance of class "PegaDevOps-Work-PipelineConfig". We are limited by the list of tasks provided by Pega.
One alternate is "Perform Manual Step" - you can assign this to a queue of your choice and park the task over there. You can run a QP or batch job to read these tasks and check the testing status and approve accordingly. I don't suggest this approach, but just stating that it could be done.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
ASB
NZ
@Raju_Botu Thank you for response.
We do not want manual step here. If test results are passed it should move forward to the next task else it should wait for test results.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Aaseya IT Solutions
IN
@VinodBavandla Can you please publish a screenshot of this custom task ?
Updated: 2 Dec 2021 2:37 EST
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
ASB
NZ
@Raju_Botu Sure.
Step 6. We make API call to run automation suits in other system.
Step 7. Another API call to get test results.
CheckTestResults call should be called for every 15 min until we get results.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Aaseya IT Solutions
IN
@VinodBavandlaDid you try adding a wait step in the "RunTask" activity.
I am trying to get access to 5.4 as i am currently on 5.0. So couldn't give an exact answer.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Aaseya IT Solutions
IN
Ok, can you add a wait method as shown below ?
You can create a loop to stay within that poll condition
Updated: 2 Dec 2021 3:07 EST
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
ASB
NZ
@Raju_Botu Thanks for the Wait activity.
Wait activity waits with current thread and UI is hanged unti specified time is passed. I want to wait but UI should not be hanged. That means can we wait in the background?
-
Raju Botu
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/c3a006d7-ee99-46d8-bdfe-383e38efdd7a.jpg?itok=_ulumcVH)
ASB
NZ
@Raju_Botu If we use pega scenario tests-standalone selenium task in deployment manager, will it wait until all tests are passed? Usually it takes longer(1 or 2 hrs) to finish all test suits.