We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code doesn't work public function botAction(Request $request, ProducerInterface $producer) { $decoded = json_decode($request->getContent()); $message = json_encode($decoded->message, JSON_UNESCAPED_UNICODE); $pheanstalkMessage = new PheanstalkMessage($message); $pheanstalkMessage->setTimeToRun(60 * 60 * 3); $producer->sendCommand( Commands::PROCESS_MESSAGE, $pheanstalkMessage );
return new Response();
}
This code works well public function botAction(Request $request, ProducerInterface $producer) { $decoded = json_decode($request->getContent()); $message = json_encode($decoded->message, JSON_UNESCAPED_UNICODE); $pheanstalkMessage = new Message($message); $pheanstalkMessage->setHeader('ttr', 60 * 60 * 3); $producer->sendCommand( Commands::PROCESS_MESSAGE, $pheanstalkMessage );
The text was updated successfully, but these errors were encountered:
Please open issue on main repo https://github.com/php-enqueue/enqueue-dev
This one is a read-only mirror.
Thanks
Sorry, something went wrong.
No branches or pull requests
This code doesn't work
public function botAction(Request $request, ProducerInterface $producer)
{
$decoded = json_decode($request->getContent());
$message = json_encode($decoded->message, JSON_UNESCAPED_UNICODE);
$pheanstalkMessage = new PheanstalkMessage($message);
$pheanstalkMessage->setTimeToRun(60 * 60 * 3);
$producer->sendCommand(
Commands::PROCESS_MESSAGE,
$pheanstalkMessage
);
}
This code works well
public function botAction(Request $request, ProducerInterface $producer)
{
$decoded = json_decode($request->getContent());
$message = json_encode($decoded->message, JSON_UNESCAPED_UNICODE);
$pheanstalkMessage = new Message($message);
$pheanstalkMessage->setHeader('ttr', 60 * 60 * 3);
$producer->sendCommand(
Commands::PROCESS_MESSAGE,
$pheanstalkMessage
);
}
The text was updated successfully, but these errors were encountered: