我使用cron.yaml文件在Elastic Beanstalk工作层上设置了定期任务 .

我的应用程序中有两个文件位于根目录中:

cron.yaml index.php

我的应用程序的根路径是“/” .

cron.yaml看起来像:

版本:1 cron: - 名称:“电子邮件”网址:“/”schedule:“* * * * *”

index.php使用 file_get_contents 调用请求bin url,以测试它是否正在运行 .

请求bin永远不会被命中,因此看起来cron脚本不会像它应该的那样每分钟运行 . 我尝试将cron.yaml中的url更改为 /index.php ,但仍然没有骰子 .

谁知道什么可能是错的?


编辑:这是aws-sqsd / default.log:

2015-05-15T12:49:43Z pollers: AWS::SQS::Errors::NonExistentQueue: The specified queue does not exist for this wsdl version. 2015-05-15T12:49:43Z pollers: AWS::SQS::Errors::NonExistentQueue: The specified queue does not exist for this wsdl version. 2015-05-15T12:49:43Z pollers: AWS::SQS::Errors::NonExistentQueue: The specified queue does not exist for this wsdl version. .......


编辑2:我向工作者添加了一个队列(在右侧区域),现在这里是aws-sqsd / default.log:

2015-05-15T18:53:32Z message: sent to %[http://localhost:80/] 2015-05-15T18:53:32Z http-err: b09629a7-c14e-469a-a980-a3ac2565e779 (17) 500 - 0.002 2015-05-15T18:53:34Z message: sent to %[http://localhost:80/] 2015-05-15T18:53:34Z http-err: b09629a7-c14e-469a-a980-a3ac2565e779 (18) 500 - 0.006 2015-05-15T18:53:36Z message: sent to %[http://localhost:80/] 2015-05-15T18:53:36Z http-err: b09629a7-c14e-469a-a980-a3ac2565e779 (19) 500 - 0.002 2015-05-15T18:53:38Z message: sent to %[http://localhost:80/] 2015-05-15T18:53:38Z http-err: b09629a7-c14e-469a-a980-a3ac2565e779 (20) 500 - 0.002

这里也是/ var / log / httpd / access_log:

127.0.0.1 - - [15/May/2015:18:52:59 +0000] "POST / HTTP/1.1" 500 - "-" "aws-sqsd/2.0" 127.0.0.1 - - [15/May/2015:18:53:01 +0000] "POST / HTTP/1.1" 500 - "-" "aws-sqsd/2.0" 127.0.0.1 - - [15/May/2015:18:53:03 +0000] "POST / HTTP/1.1" 500 - "-" "aws-sqsd/2.0"