dariusk / rss-to-activitypub

An RSS to ActivityPub converter.
MIT License
560 stars 28 forks source link

Crontab : queueFeeds.js or updateFeeds.js #41

Open husim0 opened 5 years ago

husim0 commented 5 years ago

Hello @dariusk Previously, I used for my crontab updateFeeds.js. Then you added the queue system, and I see on the changelog you say we have to create a crontab to run queueFeeds.js. Nonetheless when I query queueFeeds.js I just have "!!! 69" et no other output and nothing seems to happen next. When I run updateFeeds.js, I have the same output as before, and it's working properly. So, what's the good thing to do ? In think in both cases it queries beanstalkd because I don't have "ECONNREFUSED" anymore. Thank you

husim0 commented 5 years ago

Also I reinstalled rss-to-activitypub today and I noticed that if I never launched queueFeeds.js, I can't use updateFeeds.js (nothing is happening). Do you confirm this ? Thank you

husim0 commented 5 years ago

Also it seems that updateFeeds.js never quits after doing it's job.

ps -aux | grep exec
root      9829  0.0  0.0   4276   464 ?        Ss   12:30   0:00 /bin/sh -c docker exec rss-to-activity-pub /bin/sh -c "cd /app && node queueFeeds.js && node updateFeeds.js" >/root/docker/rss-to-activitypub/docker/crontab.log 2>&1
root      9830  0.0  2.0 254240 21160 ?        Sl   12:30   0:00 docker exec rss-to-activity-pub /bin/sh -c cd /app && node queueFeeds.js && node updateFeeds.js
root     16107  0.0  0.0   4276   456 ?        Ss   12:40   0:00 /bin/sh -c docker exec rss-to-activity-pub /bin/sh -c "cd /app && node queueFeeds.js && node updateFeeds.js" >/root/docker/rss-to-activitypub/docker/crontab.log 2>&1
root     16108  0.0  2.1 254240 21384 ?        Sl   12:40   0:00 docker exec rss-to-activity-pub /bin/sh -c cd /app && node queueFeeds.js && node updateFeeds.js
root     19554  0.0  0.0  12780   956 pts/0    S+   12:45   0:00 grep exec

On the log's last line :

https://www.developpez.com/atom.php
diff https://www.developpez.com/atom.php 0 []

All my feeds have been properly queried. After, nothing is added.

pascoual commented 3 years ago

You need to run updateFeeds.js (as daemon) and add queueFeeds.js to CRON.