【发布时间】:2010-07-24 00:30:16
【问题描述】:
我正在 Google App Engine 中运行一个 cron 文件。它似乎工作正常,除了我不希望任何人能够访问该 URL。
这是我的 .cron 文件:
cron:
- description: testing cron
url: /tester
schedule: every 1 minutes
我尝试在“计划”下添加:“登录:管理员”,但我得到:
enter code here
Error parsing yaml file:
Unexpected attribute 'login' for object of type <class 'google.appengine.api.croninfo.CronEntry'>.
那么如何防止有人调用 url 并运行应该自动化的脚本呢?
谢谢
【问题讨论】:
标签: google-app-engine cron yaml