@@ -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 = 60
21+ self .api_request_delay = 10
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 :
@@ -56,13 +56,13 @@ def run_pipeline(self,
5656 def _check_pipeline_response (self , response : requests .Response ):
5757 delay = 0
5858 state_url = response .json ()["_links" ]["self" ]["href" ]
59- print ("response check from our Start" , response .status_code , response .json ()["state" ])
59+ # print("response check from our Start", response.status_code, response.json()["state"])
6060 while response .status_code == 200 and response .json ()["state" ] == "inProgress" :
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_response . json () ["state" ])
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" ])
6666 return response .json ()["result" ]
6767
6868 def _build_request_body (self , pipeline_branch : str ):
0 commit comments