Kullanıcıların benim app ile tüm bu sitelere benim app ve sonrası güncellemeleri daha, twitter, linkedin hesapları kendi facebook bağlantı sağlayan bir uygulama inşa ediyorum. Ayrıca kullanıcı olabilir 'post-date' durum güncellemeleri. Onlar güncelleme için bir tarih ve saati ayarlayabilirsiniz, ve güncelleştirme yalnızca belirtilen tarihte değil, hemen istenen sitelere asılacak neden olacaktır.
I have got this working fine with a cron job that pulls out all updates that have not been posted yet (there's a flag indicating whether an update has been posted or not in the DB) and then posting it. I run this process every minute using cron.
Now my issue is that, with enough updates set to the same time, I'll have problems with PHP maxing out the execution time. My immediate work around has been to get all updates which have a post_timestamp < current_timestamp
and try to post them; so that if for a particular minute, some updates have not been sent, the next cron run will try to send it if it is still inside the max execution time limit.
I know this is a very lame ass way of achieving what I want. Hence I plan to have some kind of a daemon process which keeps on running and posts all post-dated updates. What's the best way of achieving this? I also need this daemon approach for another project I am working on. any help in this regard would be greatly appreciated... :P
Şimdiden teşekkürler.