I have a Elastic bean EC2 with Worker setup (I use this for periodic tasks). From what I understand, the periodic tasks get queued in SQS & are read by the worker and executed as a http://localhost
HTTP Post to the url we set in the cron.yaml
- name: "db-backup"
url: "/cron/db-backup"
schedule: "30 21 * * *"
How do we achieve this using the AWS SDK? All I can see is just the QueueUrl
and MessageBody
. How do I specify the URL path i.e. /cron/db-backup
$client->sendMessage(array(
'QueueUrl' => $queueUrl,
'MessageBody' => 'Hello World!',
));
Where should I specify the path /cron/db-backup
? Or have I got the concept wrong?