spatie / mailcoach-support

Questions and support for Mailcoach
https://mailcoach.app
31 stars 2 forks source link

Campaign to 34,032 subscribers got stocked at 8047 out of 8048 🙄 #174

Closed RicardoRamirezR closed 4 years ago

RicardoRamirezR commented 4 years ago

This is still since two hour ago.

Captura de Pantalla 2020-04-30 a la(s) 6 26 03 p  m

and SendCampaignJob is at Pending Jobs

freekmurze commented 4 years ago

Where there any failed jobs? Do you see any exception in the log?

In the outbox tab there should be a button display with which you can retry sending mails.

RicardoRamirezR commented 4 years ago

Nothing! What I did was to send another campaign with the missing subscribers.

(how to mark this as completed) ezgif com-video-to-gif-2

The campaign thinks it has only 8084 subscribers has only one pending... Captura de Pantalla 2020-05-01 a la(s) 9 38 40 a  m

In failed there is only one job Captura de Pantalla 2020-05-01 a la(s) 9 44 29 a  m

But it is: Captura de Pantalla 2020-05-01 a la(s) 9 45 38 a  m

freekmurze commented 4 years ago

I don't know why, but it seems like there is an action missing in your config.

I've just released v2.11.2 of Mailcoach which will use the default action class if none is specified in the config file. Before contuinuing, make sure to upgrade to that version.

To me it seems strange that your job is halted midway in creating campaign sends. It makes me think that timeout of a job is not correctly configured. Make sure the timeout in the horizon and queue config files is set high enough. See: https://mailcoach.app/docs/v2/package/general/installation-and-setup#install-horizon

Make sure when you change config value to run

php artisan config:clear

and restart horizon by either starting your machine or running php artisan horizon:terminate

If that extra button to restart a campaign on the Outbox tab of the campaign is not working, you should manually dispatch a SendCampaignJob and pass it your campaign to the constructor. (You could put this all in an artisan command). Rest assured that this job will not sent mails to the 8047 that already got the mail.

RicardoRamirezR commented 4 years ago

Thank @freekmurze, um, no action is missing; I've sent another campaign right away to the missing 27,083 subscribers yesterday without any problem. Any way thank you!

shatterproof commented 4 years ago

I don't know why, but it seems like there is an action missing in your config.

I've just released v2.11.2 of Mailcoach which will use the default action class if none is specified in the config file. Before contuinuing, make sure to upgrade to that version.

@freekmurze I'm using a customized config for Mailcoach in my app so additions to the internal config aren't automatically applied, which could explain how this happens.

Using default values for new additions to the config if nothing is specified would be great going forward since I've been needing to manually copy them over to avoid issues after updating.

freekmurze commented 4 years ago

In normal circumstances new config options are merged automatically for people that do not have them. I think in this instance it went wrong because we added a value to an array.