Work level periodic task is not working.

I have a periodic task setup on an elastic beanstalk runtime using the cron.yaml file.

I have two files in my application, in the root directory:

cron.yaml

index.php

The root path for my application is "/".

cron.yaml looks like this:

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

index.php calls the request request url from file_get_contents

to check if it works.

The request bit never gets hit, so it looks like the cron script doesn't run every minute as it should. I tried changing url in cron.yaml before /index.php

but still not dice.

Does anyone know what might be wrong?


Edit: here is 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. .......


Edit 2: I added the queue to the worker (in the right pane) and now here's 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

The file / var / log / httpd / access_log is also located here:

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"

+3


source to share





All Articles