-
Notifications
You must be signed in to change notification settings - Fork 61
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
Script doesn't exit when using RedisUrlList #7
Comments
If I understand correctly, this is by design. The process will wait until further URLs are available for crawling. There could be no URLs in the queue for three reasons: (a) The queue is empty, in which case it waits until a URL is added. In a distributed set-up, this could be added by another script/tool. (b) The queue only has URLs that are errored and waiting for a retry. Failed URLs are tried using exponential backoff. (c) Even successful URLs will be recrawled after 30 days (configurable with Since the crawl will never end, I would expect the process to continue. You can listen to the |
On second thoughts, if you have not called |
Yepp, I've tried disabling * I initially assumed that this timed out in Lambda due to Bluebird, but turns out to be caused by Redis. |
Ah... |
Problem: Script doesn't exit when using RedisUrList.
Step to replicate:
Run the following code:
Expected behavior:
Script should stop after running.
Actual behavior:
Script runs indefinitely.
Workaround:
Call
process.exit()
to terminate the script.BTW, I'm using AWS ElastiCache for Redis, just in case this detail is needed. :)
The text was updated successfully, but these errors were encountered: