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

Cron job is not executing in google app engine + Laravel 4

我正在将我在 Laravel 4 中开发的应用程序转移到 Google App Engine。我已按照本教程中提到的步骤进行操作

https://gae-php-tips.appspot.com/2013/10/22/getting-started-with-laravel-on-php-for-app-engine/

一切都很完美。为了在 Google App Engine 中设置 cron jb,我创建了一个 cron.yaml 文件。但问题是它没有被执行。我已经搜索了解决方案,但对此一无所获。以下是我的 cron.yaml 文件

cron:
 - description: Todo reminder
   url: /gae_cron/todo_reminder
   schedule: every 1 minutes from 00:00 to 23:59

我的 app.yaml 文件

application: test
version: beta-1-11
runtime: php55
api_version: 1

handlers:

    - url: /favicon\.ico
      static_files: public/favicon.ico
      upload: public/favicon\.ico

    - url: /packages
      static_dir: public/packages

    - url: /assets
      static_dir: public/assets

    - url: /views
      static_dir: public/views

    - url: /.*
      script: public/index.php

这是我从cron.yaml

呼叫的路线
 Route::get('gae_cron/todo_reminder', function() {
   Log::info('todo reminder route');
 });

但我在日志中看不到任何内容。但是,当我通过在浏览器中直接粘贴 url 来执行它时,它会显示在日志中。

有没有人设法使用 Laravel 在 GAE 中使 cron 作业正常工作。

根据 Google App Engine 文档

You can use appcfg.py to upload cron jobs and view information about the defined cron jobs. When you upload your application to App Engine using appcfg.py update, the Cron Service is updated with the contents of cron.yaml. You can update just the cron configuration without uploading the rest of the application using appcfg.py update_cron

单独上传 cron 条目

appcfg.py -A <project-id> update_cron .

验证转到

Compute->App Engine->Task queues

在那里您会找到您在 cron.yaml 文件

中提到的所有 cron 条目