Support the ongoing development of Laravel.io →
posted 10 years ago
Queues
Last updated 2 years ago.
0

This is error from Iron.io library.

# vendor\composer\autoload_classmap.php
'Http_Exception' => $vendorDir . '/iron-io/iron_core/IronCore.class.php',

Try puting something like:

Queue::getIron()->ssl_verifypeer = false;

to the top of routes.php

Last updated 2 years ago.
0

gecbla said:

This is error from Iron.io library.

# vendor\composer\autoload_classmap.php
'Http_Exception' => $vendorDir . '/iron-io/iron_core/IronCore.class.php',

Try puting something like:

Queue::getIron()->ssl_verifypeer = false;

to the top of routes.php

Hi gecbla;

I added it on top of app/routes.php and now I am getting this:

[Http_Exception]
http error: 400 | {"msg":"Only http(s), ironmq and ironworker schemes supported in subscriber URL's."}

Thanks

Last updated 2 years ago.
0

Change

php artisan queue:subscribe atless admin.atless.com.au/queue

to

php artisan queue:subscribe atless http://admin.atless.com.au/queue
Last updated 2 years ago.
0

Thanks it's working.

Just wondering, how did you know about this? What should I read about to learn this?

Thanks

Last updated 2 years ago.
0

Firs time I heard about Iron is in one of Jeffreys video. After that I created account and started finding my way around code. They have great documentation and Packagist libraries for php: Queue, Worker, Cache

If you at some time stuck with queues pay attention to this issue. Current solution is to manually add pull request or use queue library directly! Laravel at this time returns response 200 after Queue:marshal().

You can wrap you queue push code with try/catch statements to catch errors (ie. when iron.io servers are down).

try {
	Queue::push('AddContent');
} catch (Http_Exception $e) {
	Log::info('Queue::catch');
}

I also found myself using workers for splitting some long running data scraping job into more smaller ones, so I cut execution time drastically! There is great Ruby gem for easy making of worker packages. PHP examples are here

Last updated 2 years ago.
0

Just mark thread as solved!

Last updated 2 years ago.
0

Thank you very much.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.