popcorn-time-ru / popcorn-ru

Multilang api for popcorn
https://www.reddit.com/r/PopCornTimeApp/
149 stars 61 forks source link

Enqueue consume cron not running? #59

Closed mikejdsenior closed 1 year ago

mikejdsenior commented 1 year ago

Hi,

Sorry, appreciate this isn't an issue with the code and more likely my server environment but I really can't get this to work so appreciate any help.

My cron is: 0 0 1 /3 cd /var/www/popcorntime && bin/console spider:run --all 0 0 cd /var/www/popcorntime && bin/console spider:run --all --last=48 0 8 1 cd /var/www/popcorntime && bin/console update:stat 0 3,11,19 cd /var/www/popcorntime && bin/console update:trending 0 1 cd /var/www/popcorntime && bin/console update:syncOld 500 --days-check=180 --days-delete=360 0 23 cd /var/www/popcorntime && bin/console cache:clear 9 cd /var/www/popcorn && killall -9 php 10 cd /var/www/popcorntime && pgrep -c -f enqueue:consume || bin/console enqueue:consume --time-limit="now + 55 minutes" --no-debug --memory-limit=200

I'm running Debian but my movies/tv show metrics never seem to go up. The only way I can get it to process the que is to run the consume command manually e.g. bin/console enqueue:consume --time-limit="now + 55 minutes" --no-debug --memory-limit=200 image

However if I leave the cron to run over night then when I return the next day I still only have 100 movies in my list?

ivan1986 commented 1 year ago

Hm TMDB key correct? other looks correct

mikejdsenior commented 1 year ago

TMDB looks to be correct as can see requests in TMDB dashboard: image

Do you have a rough number on how many movies I should get e.g. in one day? 100? 1k? etc?

My DB tables look like the following: image

The only times I've seen movies/shows tables increase is when I've been manually running the enqueue:consume to debug cron

ivan1986 commented 1 year ago

try remove pgrep -c -f enqueue:consume || from cron - maybe it work incorrect

ivan1986 commented 1 year ago

current i run in cron 10 * * * * cd /home/ubuntu/popcorn && nice -19 bin/console enqueue:consume --time-limit="now + 55 minutes" --no-debug --memory-limit=200

mikejdsenior commented 1 year ago

OK I will try your cron tonight and see if that helps. Thank you for all your help Ivan and for hosting/maintaining this API. My oninion/tor links all time out, perhaps this is slowing things down a bit..

mikejdsenior commented 1 year ago

My queue is processing now so looks like your cron works. Thanks again!