iron

IronMq + Laravel4: How make it working

六眼飞鱼酱① 提交于 2019-12-09 13:46:25
问题 I have a problem concerning the fact that my queues are received by IronMQ but not fire off. Like i ask in this question: https://stackoverflow.com/questions/19200285/laravel4-ironmq-queue-are-not-executed But i see that inside my Iron dashboard, after i subscribe a new domain, then it is not added in any list. Probably IronMQ should display a list of Domains subscribed, isn't it? And this is probably the reason why my queues are not fire off. How can i fix the issue? Thanks! 回答1: I'm not

Injecting a Diesel connection into an Iron middleware

让人想犯罪 __ 提交于 2019-12-04 05:21:23
问题 In writing my tests, I'd like to be able to inject a connection into the request so that I can wrap the entire test case in a transaction (even if there is more than one request in the test case). I've attempted to do this using a BeforeMiddleware which I can link in my test cases to insert a connection, as such: pub type DatabaseConnection = PooledConnection<ConnectionManager<PgConnection>>; pub struct DatabaseOverride { conn: DatabaseConnection, } impl BeforeMiddleware for DatabaseOverride

IronMq + Laravel4: How make it working

青春壹個敷衍的年華 提交于 2019-12-03 21:19:09
I have a problem concerning the fact that my queues are received by IronMQ but not fire off. Like i ask in this question: https://stackoverflow.com/questions/19200285/laravel4-ironmq-queue-are-not-executed But i see that inside my Iron dashboard, after i subscribe a new domain, then it is not added in any list. Probably IronMQ should display a list of Domains subscribed, isn't it? And this is probably the reason why my queues are not fire off. How can i fix the issue? Thanks! I'm not sure you have done all steps you need to do to have your queues subscribed, so let's take a look at them:

Injecting a Diesel connection into an Iron middleware

不羁的心 提交于 2019-12-02 06:15:33
In writing my tests, I'd like to be able to inject a connection into the request so that I can wrap the entire test case in a transaction (even if there is more than one request in the test case). I've attempted to do this using a BeforeMiddleware which I can link in my test cases to insert a connection, as such: pub type DatabaseConnection = PooledConnection<ConnectionManager<PgConnection>>; pub struct DatabaseOverride { conn: DatabaseConnection, } impl BeforeMiddleware for DatabaseOverride { fn before(&self, req: &mut Request) -> IronResult<()> { req.extensions_mut().entry::<DatabaseOverride