Auto-resume when campaign sends timeout
So for large campaigns, sendy timesout on sending emails. I'd like to see a feature that we could specify the timeout and autoresume would kick in, where it basically does the same thing as hitting the resume button from the dashboard.
This discussion has been closed.
Comments
And are you using CURL or PHP to execute the scheduled.php script in CRON?
You should work around it and not keep blaming the time-outs. It's frustrating.
Ultimately, if the server still times you out, it's really out of my control because we have no control over the server unlike hosted applications. That is why we built in 'resume' feature. You mentioned 'auto resume', but the problem is, if the server times out your script, how do we know? Yes we can compare the totals but at what interval? This is something we need to think about and it's good to know development of Sendy is not stopping here.
Sendy is good. I need to use it. It reminded me how significant newsletters can be for my traffic.
There are several solutions. You can just check it at each cron run. 5 minutes is more than enough to compare the totals. It's simple and it will work just fine.
If you need something more advanced, you could log PID (getmypid) and store it in the DB. On each cron run you could check if it's still active, if not auto-resume.
http://happy-coding.com/check-with-php-is-a-process-id-pid-is-active/
You also need send things quicker. Check how many emails per second are possible, on each loop run that many CURLs at once, wait and wait 1 second.
PLEASE!
Is your CRON command:
php /path/to/your/sendy/installation/scheduled.php > /dev/null 2>&1
or
curl -L -s http://sendy_installation_url/scheduled.php > /dev/null 2>&1
@derivativemedia Use the 'Resume' function