Elastic Beanstalk工作层定期任务未运行

时间:2015-05-15 03:40:10

标签: php amazon-web-services cron elastic-beanstalk worker

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

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

  

cron.yaml

     

的index.php

我的应用的根路径是“/".

cron.yaml看起来像:

  

version: 1 cron: - name: "emails" url: "/" schedule: "* * * * *"

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

请求bin永远不会被命中,因此看起来cron脚本并不像它应该的那样每分钟运行。我尝试将cron.yaml中的网址更改为/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"

0 个答案:

没有答案