-
Notifications
You must be signed in to change notification settings - Fork 47
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
kue-scheduler every couldn't run on redis #46
Comments
Kue depends on keyspace notifications, does heroku redis support enabling On Friday, September 2, 2016, Hao Wu notifications@github.com wrote:
|
Based on my search, Heroku redis close the keyspace notification by default. |
Hello. Have you manage to fix it on Heroku. On 2 Sep 2016 23:21, "Hao Wu" notifications@github.com wrote:
|
Please ensure you have Redis 2.8.0+. |
See requirements for kue-scheduler to work. redis-cli config set notify-keyspace-events Ex |
@lykmapipo all requirements meet and notify-keyspace-events set to Ex. But still fail. |
Hello. I think we should add logger to kue-scheduler to log its inner working. Try to listen for "schedule error" event in your kue instance and see it it On 5 Sep 2016 22:29, "Hao Wu" notifications@github.com wrote:
|
Hi, Just want to chime in with a reply from Heroku support. I too faced the same issue that Heroku Redis cannot run
@WUJJU I'm afraid that you did config setting wrongly. @WUJJU you can try |
@josephktcheung Thanks lot for the correction! Didn't expect the difference between set and config set. |
@WUJJU Welcome! Besides, I found out that Redis Cloud, another Heorku Redis add-on provider, allows us to set |
@josephktcheung How are you setting notify-keyspace-events for Redis Cloud? |
pretty straight forward,
|
thanks @josephktcheung Is something wrong with my code? See below.
|
Have you tried the code locally @developermhayden? From what I saw, |
Besides, @developermhayden are you sure |
@josephktcheung I mapped the REDICCLOUD_URL to REDIS_URL. |
Based on the examples in kue-scheduler, I should be able to set my reoccurring job using cron syntax. I have the following now: // Run daily at 5pm I have also tried the following, still getting the same results (job is running every 2 seconds) I need my job to run every day at 5pm My Current code is as follows:
|
@developermhayden May you please open a new issue regarding |
You can also try |
Hi, is anyone having the same problem? I am trying to migrate my parse host backend to heroku.
I am changing Parse.Cloud.Job to kue-scheduler. It seems the every() function doesn't work in heroku redis, while it work on local redis-server.
The text was updated successfully, but these errors were encountered: