-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
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
php artisan queue:work --queue=sendportal-message-dispatch this command is not working when run this command in my terminal it appears nothing and i also change QUEUE_CONNECTION=database but still nothing is showing #277
Comments
Just ran into this. When using QUEUE_CONNECTION=database, it appears those queues, sendportal-message-dispatch and sendportal-webhook-process, are not used by the software. I was able to get it working using
Hope this helps. |
I set in And i run:
and i tried the following commands:
But nothing happens with any of the Any other recommondations how i can run a Campaign and not get stuck in "Queued"? |
When you "sent" the campaign, did you select "Send Immediately" or "Queue draft" for sending behavior? The other thing you can do is pull up the database and find the jobs (?) table. Look for a column "queue" and see what the name is. In my instance they are all going in as "default" but maybe yours is different? |
Thank you for your fast response @bmenking-wng but they are getting all "Queued" status: i have both tables Is that the problem, should there be entries in |
So the issue I ran into was that incoming opens and click notifications from AWS SNS were not getting processed by the queue. I don't think email sending uses the queue, but I could be wrong. Check to see if the cron job from the docs is running https://sendportal.io/docs/v2/getting-started/configuration-and-setup#additional-configuration Under the Messages section if you click on the "Draft" tab you may see all the unsent email messages. Enabling that cron job should start pushing those "Send Immediately" messages out to the email provider that is configured. |
Thank your very much @bmenking-wng for your hint with the cron job. The
I configure this for a friend and i found out he has just a simple webspace with PHP/MySQL and no SSH/cronjob access. I switched back to
For me it sounds like it sends the messages directly after saving the Campaign, why it needs then the cron job? Anyway, it looks like Sendportal is then not useable on a simple webspace? Maybe i open a new issue for this question... |
If you cannot setup cron jobs then "sync" is what you would want. Most likely it processes queue jobs each time a page is loaded on the website. Had a project that operated this way and we used an external cron job to load the front page every two minutes so it would process queue jobs. Another way to do this may be to create an API that kicks off queue jobs. That way an external cron could be used. This may get you in the direction of that solution: https://stackoverflow.com/questions/32124592/laravel-run-queue-work-from-code |
Thank you again for your input @bmenking-wng.
Yes, that is what i expected, too. I asked ChatGPT, it says the same:
But nothing happens, i clicked every page of my Sendportal app, but the Campaigns keep I also checked [...]
'default' => env('QUEUE_CONNECTION', 'sync'),
[...]
'connections' => [
'sync' => [
'driver' => 'sync',
],
[...]
I have no idea, what else i could do or what it could be? 🤷🏽♂️ |
Thank you for your input @deadlyanony. Sadly, at this webspace are no scheduled tasks / cron jobs available. I can just add files over FTP, modifiy database over phpmyadmin or update php.ini settings. Also i still dont understand why this is necessary if i choose |
No description provided.
The text was updated successfully, but these errors were encountered: