View Issue Details

IDProjectCategoryView StatusLast Update
0016859phpList 3 applicationBatch Processingpublic21-06-18 13:00
Reporterakyeame Assigned To 
Status resolvedResolutionfixed 
Product Version3.0.2 
Summary0016859: Batch Processing with Cron Job now requires browser window open

On version 2.10.19 I was able to close the browser window with batch processing enabled and the queue would still be processed. Now if I close it and go back in later to check, the queue is invariably listed as stalled.

I did a search and modified my cron job adding -c as suggested here:

Now my cron looks like this:
usr/local/bin/php -c -n /home/mysite/public_html/list/admin/index.php -pprocessqueue >/dev/null 2>&1

The one that worked on version 2 looked the same just without -c

Any assistance with regard to how I can get back the functionality of being able to close the browser window would be most appreciated. (Note that to comply with my host's ToS I must throttle emails sent making it unfeasible to keep the browser window open for the hours - days it may take to send out several thousand emails.
Steps To ReproduceProcess queue
Close browser
Log back in later
See stalled
Process queue
Rinse, repeat...



30-08-13 12:09

administrator   ~0052234

but if you have a working cron, why would you still run it in the browser.

maybe you want to check that the cron actually works, but when it works, you can forget about it.


30-08-13 12:39

reporter   ~0052235

What I've done in the past is start it myself after I've composed the email and then leave. That's always worked and the cron has always kept it processing even when the browser is closed.

The cron that has always worked for me is
usr/local/bin/php -n /home/mysite/public_html/list/admin/index.php -pprocessqueue >/dev/null 2>&1

After seeing the list stalled, I checked into what may be wrong with my cron.

In the thread I referenced above it said that cron now requires the -c command for phplist so I'm trying
usr/local/bin/php -c -n /home/mysite/public_html/list/admin/index.php -pprocessqueue >/dev/null 2>&1

Does this look correct? If not, is there a sample of a cron that works with phplist 3? -c included or not?


30-08-13 13:08

administrator   ~0052238

No, the cron should be:

/path/to/php /path/to/lists/admin/index.php -c /path/to/config.php -p [page]

with [page] being "processqueue" in this case


30-08-13 22:09

reporter   ~0052239

This works! I appreciate it.


31-08-13 12:02

administrator   ~0052242

needs clear documentation