I setup the crontab as show in the samples. We created a general group accout to pull email from one of our contact feedback user accounts, 10k messages. The job starts, run's 60 seconds, then another one starts, runs 60 seconds, then another, etc... We had 10+ of them going at the same time. Each one was downloading duplicate messages.
As a temp work around, I disabled cron, deleted all of the emails (from emails and emails_users), set php execution time to 24 hours and then ran the job. The problem is the bandwidth flutuates between 10mb to 1mb (pulling from a remote source).
My question is how to prevent this race condition in the future. Let's say, the inbox receives email enough that requires the cron to pull it over a period of more than 60 seconds. Is there a way to prevent this?
Version 4.5.1e (Build 1049)


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks