@@ -18,7 +18,7 @@ def __init__(self):
1818 self .notify_commit_sha = os .environ ["NOTIFY_COMMIT_SHA" ]
1919 self .utils_pr_number = os .environ ["UTILS_PR_NUMBER" ]
2020 self .notify_github_repo = "NHSDigital/api-management-utils"
21- self .api_request_delay = 10
21+ self .api_request_delay = 60
2222
2323 @staticmethod
2424 def print_response (response : requests .Response , note : str , verbose : bool = True ) -> None :
@@ -43,7 +43,7 @@ def run_pipeline(self,
4343 json = request_body ,
4444 method = 'post' ,
4545 )
46- # self.print_response(response, f"Initial request to {run_url}")
46+ self .print_response (response , f"Initial request to { run_url } " )
4747
4848 result = "failed"
4949 if response .status_code == 200 :
@@ -61,8 +61,9 @@ def _check_pipeline_response(self, response: requests.Response):
6161 time .sleep (self .api_request_delay )
6262 delay = delay + self .api_request_delay
6363 state_response = self .api_request (state_url )
64- # self.print_response(state_response, f"Response from {state_url} after {delay} seconds")
65- print ("response check from our end" , state_response .json ()["state" ])
64+ print ("response check from our end----------" , state_response .json ()["state" ])
65+ self .print_response (state_response , f"Response from { state_url } after { delay } seconds" )
66+ # print("response check from our end", state_response.json()["state"])
6667 return response .json ()["result" ]
6768
6869 def _build_request_body (self , pipeline_branch : str ):
0 commit comments