Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crontab : queueFeeds.js or updateFeeds.js #41

Open
husim0 opened this issue Jun 15, 2019 · 3 comments
Open

Crontab : queueFeeds.js or updateFeeds.js #41

husim0 opened this issue Jun 15, 2019 · 3 comments

Comments

@husim0
Copy link

husim0 commented Jun 15, 2019

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
Copy link
Author

husim0 commented Jun 17, 2019

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
Copy link
Author

husim0 commented Jun 17, 2019

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
Copy link

pascoual commented Jan 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants