Google App Engine Cron PHP

IberoMedia

I want to schedule a cron job in Google App Engine.

I have a url that I would like to call, this is the job.

I am not cron job knowledgeable, but the developer of the files I want to run provided the command line I am to run.

I read the Google App Engine PHP cron job documentation, and I understand the scheduling part. From the documentation's example, I would use the path "/backup." However, I don't know how would I write the file to enter the command.

This is a link to the documentation: https://developers.google.com/appengine/docs/php/config/cron

THE SCHEDULING PART (I understand this):

file cron.yaml

cron:
- description: weekly backup
  url: /backup
  schedule: every monday 05:00
  timezone: America/Los_Angeles

The cron command line (if this is what is called) is:

curl -b /tmp/cookies.txt -c /tmp/cookies.txt -L --max-redirs 1000 -v "http://somedomain.com/index.php?option=someoption&view=someview&key=somekey"

Notice I am calling a url, the url is NOT in the GAE

I am using the GAE PHP SDK

Where would I write the cron command?

What is file extension for this code?

Jimmy Kane

Your Cron will call the backup url at every monday at 5 am

cron:
- description: weekly backup
  url: /backup
  schedule: every monday 05:00
  timezone: America/Los_Angeles

Create a php handler for that, and use the same logic the developer provided inside the backup handler.

So at 5 am the cron runs -> requests /backup -> curls the url you want or whatever

EDIT

I forgot that GAE does not support curl. Use urlfetch if possible. Also look at wrappers and this nice answer about this matter

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google App Engine Cron PHP

来自分类Dev

Google App Engine的Cron作业日志文件

来自分类Dev

Google App Engine上的Cron Jobs

来自分类Dev

Google App Engine Cron作业成功,但是什么也不做?

来自分类Dev

在控制台中监控Google App Engine Cron作业?

来自分类Dev

Cron作业未在Google App Engine + Laravel 4中执行

来自分类Dev

Google Cloud App Engine Cron 无法执行 python 脚本

来自分类Dev

在 App Engine CRON 上部署 Google DataFlow 作业时出错

来自分类Dev

Google App Engine php zip扩展

来自分类Dev

从PHP访问Google App Engine的Search API

来自分类Dev

在Google App Engine上使用php提取

来自分类Dev

在Google App Engine上配置PHP代码

来自分类Dev

Google App Engine PHP路由-查询参数

来自分类Dev

从PHP访问Google App Engine的搜索API

来自分类Dev

Google App Engine app.yaml PHP脚本参数

来自分类Dev

启用PHP扩展Google App Engine(Laravel Web App)

来自分类Dev

Google App Engine-找不到PHP App图片/ CSS

来自分类Dev

Google App Engine中的cron.yaml:如何在特定时间每小时安排任务?

来自分类Dev

自定义域上的Google App Engine Cron作业

来自分类Dev

在Google App Engine中以编程方式修改Cron日程安排

来自分类Dev

如何以更便宜的方式使用Google App Engine Cron作业?

来自分类Dev

Google App Engine cron作业计划在DST更改的几天重复执行

来自分类Dev

自定义域上的Google App Engine Cron作业

来自分类Dev

如何在PHP Google App Engine中使用Composer

来自分类Dev

部署的网站上的Google App Engine PHP包含错误

来自分类Dev

从适用于PHP的Google App Engine加载远程XML

来自分类Dev

PHP Google App Engine YAML找不到目录

来自分类Dev

上传文件-Android到Google App Engine(PHP)

来自分类Dev

无法从Google App Engine上的Php PDO获取响应标题

Related 相关文章

  1. 1

    Google App Engine Cron PHP

  2. 2

    Google App Engine的Cron作业日志文件

  3. 3

    Google App Engine上的Cron Jobs

  4. 4

    Google App Engine Cron作业成功,但是什么也不做?

  5. 5

    在控制台中监控Google App Engine Cron作业?

  6. 6

    Cron作业未在Google App Engine + Laravel 4中执行

  7. 7

    Google Cloud App Engine Cron 无法执行 python 脚本

  8. 8

    在 App Engine CRON 上部署 Google DataFlow 作业时出错

  9. 9

    Google App Engine php zip扩展

  10. 10

    从PHP访问Google App Engine的Search API

  11. 11

    在Google App Engine上使用php提取

  12. 12

    在Google App Engine上配置PHP代码

  13. 13

    Google App Engine PHP路由-查询参数

  14. 14

    从PHP访问Google App Engine的搜索API

  15. 15

    Google App Engine app.yaml PHP脚本参数

  16. 16

    启用PHP扩展Google App Engine(Laravel Web App)

  17. 17

    Google App Engine-找不到PHP App图片/ CSS

  18. 18

    Google App Engine中的cron.yaml:如何在特定时间每小时安排任务?

  19. 19

    自定义域上的Google App Engine Cron作业

  20. 20

    在Google App Engine中以编程方式修改Cron日程安排

  21. 21

    如何以更便宜的方式使用Google App Engine Cron作业?

  22. 22

    Google App Engine cron作业计划在DST更改的几天重复执行

  23. 23

    自定义域上的Google App Engine Cron作业

  24. 24

    如何在PHP Google App Engine中使用Composer

  25. 25

    部署的网站上的Google App Engine PHP包含错误

  26. 26

    从适用于PHP的Google App Engine加载远程XML

  27. 27

    PHP Google App Engine YAML找不到目录

  28. 28

    上传文件-Android到Google App Engine(PHP)

  29. 29

    无法从Google App Engine上的Php PDO获取响应标题

热门标签

归档