I am trying to configure the Laravel 4.2 queue using AWS SQS and EB Worker. I queue a job from another server and want the production environment to execute it. But it still looks like the employee is trying to execute it, but for some reason gets an error 405 in the access log ...
I am trying to get a very simple test code ... On a working env. I pretty much clean up the Laravel installation only with the configuration of the queue and stuff, and this class:
class TestQueue {
public function fire($job, $data)
{
File::append(storage_path().'/sqs_push.txt', $data['date']);
$job->delete();
}
}
Now on the main server, where I want to click from, I have this:
public function getTestQueue(){
$data = ['date' => date('Y-m-d H:i:s')];
$queue = \Queue::push('TestQueue', $data);
var_dump($queue);
}
On working, I launched
php artisan queue:listen
, SQS ( SQS), , 405 ... , - ? - ?