dispatch job on specific connection #119
slimani-dev
started this conversation in
Ideas
Replies: 2 comments
-
Feel free to send a PR with tests for this! |
Beta Was this translation helpful? Give feedback.
0 replies
-
@moh-slimani define custom job processor ( that implement class ProcessCustomJob extends ProcessWebhookJob implements ShouldQueue
{
public function __construct(
public WebhookCall $webhookCall
) {
//$this->onQueue('custom_queue'); //this work for me
$this->onConnection('sync'); // try this
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
I have few jobs in my application that Run in the Background in a database queue connection, the problem is that when i started using the database connection i lost the HTTP request information of the Webhook Job and i need the request headers
The requested feature
it would be amazing if there is an option to choose the queue connection for the Webhook job
something like this
in line 62 of WebhookProcessor.php file
this solution is working for me but it means i will have to edit the files every time
thank you
Beta Was this translation helpful? Give feedback.
All reactions