Skip to content

Conversation

@sazo
Copy link
Contributor

@sazo sazo commented May 16, 2017

When calling $this->fail() inside a RabbitMQ job it fails because the connectionName is NULL.

I have looked at how core laravel jobs does it and this is how. :)

Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'connection' cannot be null (SQL: insert into failed_jobs (connection, queue, payload, exception, failed_at) .....


if ($message instanceof AMQPMessage) {
return new RabbitMQJob($this->container, $this, $this->channel, $queue, $message);
return new RabbitMQJob($this->container, $this, $this->channel, $queue, $message, $this->connectionName);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line exceeds 120 characters; contains 121 characters


if ($message instanceof AMQPMessage) {
return new RabbitMQJob($this->container, $this, $this->channel, $queue, $message);
return new RabbitMQJob($this->container, $this, $this->channel,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening parenthesis of a multi-line function call must be the last content on the line
Only one argument is allowed per line in a multi-line function call

if ($message instanceof AMQPMessage) {
return new RabbitMQJob($this->container, $this, $this->channel, $queue, $message);
return new RabbitMQJob($this->container, $this, $this->channel,
$queue, $message, $this->connectionName);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multi-line function call not indented correctly; expected 16 spaces but found 20
Only one argument is allowed per line in a multi-line function call
Closing parenthesis of a multi-line function call must be on a line by itself

@vyuldashev vyuldashev merged commit 9d259f8 into vyuldashev:v5.4 May 16, 2017
@sazo
Copy link
Contributor Author

sazo commented May 17, 2017

@vladimir-yuldashev will you move the 5.4 tag to include this?

@vyuldashev
Copy link
Owner

@sazo Yes, a bit later as soon I will get to my computer. Did you test that driver still works? 😂

@sazo
Copy link
Contributor Author

sazo commented May 17, 2017

@vladimir-yuldashev Np - yeah i tested it on our development environment ;)

@sazo
Copy link
Contributor Author

sazo commented May 17, 2017

love the driver btw! :)

@vyuldashev
Copy link
Owner

@sazo Released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants