Skip to content

Commit 5db96b9

Browse files
authored
Merge pull request #299 from chenyuhan-0/cyh/prompt_refine
chore: refine prompt
2 parents 71d100e + d581d5f commit 5db96b9

File tree

1 file changed

+3
-3
lines changed
  • server/mcp_server_vefaas_function/src/mcp_server_vefaas_function

1 file changed

+3
-3
lines changed

server/mcp_server_vefaas_function/src/mcp_server_vefaas_function/vefaas_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def get_vefaas_application(application_id: Required[str], region: Optional[str]
211211
logger.error(f"Failed to get application log: {str(e)}")
212212

213213
if result.get("Status") == "deploying":
214-
time.sleep(3)
214+
time.sleep(10)
215215

216216
if hasAuthError:
217217
raise ValueError("Failed to release application due to an authentication error. Please visit https://console.volcengine.com/iam/service/attach_custom_role?ServiceName=vefaas&policy1_1=APIGFullAccess&policy1_2=VeFaaSFullAccess&role1=ServerlessApplicationRole to grant the required permissions and then try again.")
@@ -538,7 +538,7 @@ def get_function_release_status(function_id: str, region: str = None):
538538
)
539539
response = api_instance.get_release_status(req)
540540
if response.status == "inprogress":
541-
time.sleep(5)
541+
time.sleep(10)
542542
return response
543543

544544
def generate_random_name(prefix="mcp", length=8):
@@ -1162,7 +1162,7 @@ def get_dependency_install_task_status(
11621162
result["log_download_error"] = str(ex)
11631163

11641164
if status == "InProgress":
1165-
time.sleep(3)
1165+
time.sleep(10)
11661166
return result
11671167
except Exception as e:
11681168
raise ValueError(f"Failed to get dependency install task status: {str(e)}")

0 commit comments

Comments
 (0)