检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
RUNTIME_INITIALIZER_TIMEOUT 函数初始化超时时间。 通过系统环境变量获取。 RUNTIME_ROOT Runtime包的路径,系统默认路径为/home/snuser/runtime。 通过系统环境变量获取。 RUNTIME_CODE_ROOT 代码在容器中的
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());
String 函数代码类型,取值有5种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。 Custom-Image-Swr: 函数代码来源于SWR自定义镜像。 枚举值:
函数支持的事件源 本节列出了FunctionGraph函数支持的云服务,可以将这些服务配置为FunctionGraph函数的事件源。在预配置事件源映射后,这些事件源检测事件时将自动调用FunctionGraph函数。 消息通知服务SMN 可以编写FunctionGraph函数来处
check_result("query function config", result) # 查询函数代码,主要是函数绑定依赖包信息保留 query_function_code_cmd = \ f'hcloud FunctionGraph ShowFunctionCode
预留实例处理能力时,剩余的请求将会转发给按量实例,由函数工作流自动为函数分配执行环境。 预留实例在创建完成后,会自动加载该函数的代码、依赖包以及执行初始化入口函数,且预留实例会常驻环境,消除冷启动对业务的影响。(注意:请不要依赖预留实例本身的初始化函数去执行一次性业务) 函数当前
handler 创建函数 登录FunctionGraph控制台,创建Go1.x函数,上传代码包fss_examples_go1.x.zip。 对于Go runtime,必须在编译之后打zip包,编译后的文件名称必须与函数执行入口的名称保持一致,例如:二进制文件名为handler,则
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getRequestId());