重建后未更新Python云功能 [英] Python cloud function is not updated after rebuild

本文介绍了重建后未更新Python云功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

复制步骤:

  1. 启用以下API:云存储库,云构建和云功能
  2. 创建存储库并从此处推送内容.这是一个简单的Python Flask应用程序,它返回带有Cloudbuild.yaml文件的简单HTML.
  3. 使用创建的名称为 la-repo-function-1 的存储库(在cloudbuild.yaml文件中引用)创建Cloud函数,并将Python 3.7与HTTP触发器和函数一起使用以执行相等的 greetings_http
  4. 在该存储库上创建Cloud Build触发器,并使其指向使用cloudbuild.yaml作为配置.
  5. 更改main.py中返回的html问候并将其推送到存储库.
  1. Enable these APIs: Cloud Repositories, Cloud Build, and Cloud Functions
  2. Create Repository and push content from here there. This is a simple Python Flask app returning simple Html with cloudbuild.yaml file.
  3. Create Cloud function using created repository with name la-repo-function-1 (which is referred in cloudbuild.yaml file) and using Python 3.7 with HTTP trigger and function to execute equal greetings_http
  4. Create Cloud Build trigger on that repo and point it to use cloudbuild.yaml as a configuration.
  5. Change returned html greetings in main.py and push it to the repository.

预期结果: 构建并重新部署了新功能.

Expected Results: A new function is built and redeployed.

实际结果: 触发了Cloud Build,并观察到新的ACTIVE版本,但是仍返回旧内容.从控制台下载的源代码很旧.但是,无需更改即可进行手动重新部署(仅通过进入编辑"选项卡并单击部署"即可).

Actual Results: Cloud Build is triggered and a new ACTIVE version is observed, however the old content is still returned. Downloaded source code from console is old. However, manual redeployment without changes works (just by getting to edit tab and clicking deploy).

注意: 此问题类似于此一个>.但是,这里我们使用的是Python 3.7,而不是Node.js代码,并且使用 GC发行说明 Python 3.7已完全发布,并且不是beta版.

Note: This question is similar to this. However, here we are using Python 3.7 and and not a Node.js code, and accourding to GC release notes Python 3.7 is fully released and is not in beta.

那是个错误还是我错过了什么?

So is it a bug or I'm missing something?

推荐答案

此问题正在Google的问题跟踪器中进行跟踪在这里,要在哪里处理.解决方案完成后,应该会有一个很好的答案.

This issue is being tracked in Google's Issue Tracker here, where it is being dealt with. When the resolution is complete, a good answer should be there.

这篇关于重建后未更新Python云功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆