File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
lib/idp_common_pkg/idp_common/agents
src/lambda/agent_processor Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,15 @@ The agent requires credentials stored in AWS Secrets Manager at `{StackName}/ext
153153 "mcp_url" : " https://your-first-mcp-server.com/mcp" ,
154154 "cognito_user_pool_id" : " us-east-1_XXXXXXXXX" ,
155155 "cognito_client_id" : " xxxxxxxxxxxxxxxxxxxxxxxxxx" ,
156- "cognito_username" : " mcp- user-1 " ,
157- "cognito_password" : " secure- password-1 "
156+ "cognito_username" : " <your first user here> " ,
157+ "cognito_password" : " <your first password here> "
158158 },
159159 {
160160 "mcp_url" : " https://your-second-mcp-server.com/mcp" ,
161161 "cognito_user_pool_id" : " us-east-1_YYYYYYYYY" ,
162162 "cognito_client_id" : " yyyyyyyyyyyyyyyyyyyyyyyyyy" ,
163- "cognito_username" : " mcp- user-2 " ,
164- "cognito_password" : " secure- password-2 "
163+ "cognito_username" : " <your second user here> " ,
164+ "cognito_password" : " <your second password here> "
165165 }
166166]
167167```
Original file line number Diff line number Diff line change @@ -83,7 +83,9 @@ def run_athena_query(
8383 logger .debug (
8484 f"Query state: { state } , sleeping for 2 seconds (attempt { attempts + 1 } /{ max_polling_attempts } )"
8585 )
86- time .sleep (2 )
86+ time .sleep ( # semgrep-ignore: arbitrary-sleep - Intentional delay. Duration is hardcoded and not user-controlled.
87+ 2
88+ ) # semgrep-ignore: arbitrary-sleep - Intentional delay. Duration is hardcoded and not user-controlled.
8789 attempts += 1
8890
8991 # Check final state
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ def handler(event, context):
347347
348348 if attempt < max_retries - 1 : # Not the last attempt
349349 logger .info (f"Waiting { retry_delay } seconds before retry { attempt + 2 } /{ max_retries } for job { job_id } " )
350- time .sleep (retry_delay )
350+ time .sleep (retry_delay ) # semgrep-ignore: arbitrary-sleep - Intentional delay. Duration is hardcoded and not user-controlled.
351351 else :
352352 # Last attempt failed
353353 logger .error (f"All { max_retries } attempts failed for agent query processing, job { job_id } : { str (e )} " )
You can’t perform that action at this time.
0 commit comments