【发布时间】:2019-01-03 17:23:47
【问题描述】:
我可以通过访问“https://keel-test.appspot.com/tasks/test/”成功地运行我的“工作”。我使用返回 200 响应的“http://www.webconfs.com/http-header-check.php”测试了标头。
我成功将以下 cron.yaml 推送到 Google App Engines:
cron:
- description: "test"
url: /tasks/test
schedule: every 8 hours
我尝试通过 GCP Console 任务队列页面运行任务。但是,GCP 控制台说 CRON 作业返回 300 错误。除了页面由 CRON 运行时返回 301 和如果手动访问上面的 URL 时返回 200 之外,日志为零。
这里是 app.yaml:
runtime: python
env: flex
entrypoint: gunicorn config.wsgi:application
runtime_config:
python_version: 3
【问题讨论】:
标签: python django google-app-engine cron