I use Redis Redis 3.0.6 64 bit in Ubuntu 16.04LTS.
There is an error occurred "TTL exceeded", I don't know how do I resolve it. I have use kue module of Redis in NodeJS and after some job, there is an error of "TTL exceeded". I referred this error in google and found that when job TTL exceeded error occurred when the current job has been failed and stuck in between and another process which is in the queue also pending in the queue. I have referred about watchStuckJobs() method but I don't get the proper idea how to use it.
My concern is that how do I know stuck jobs and remove or restart the stuck jobs and same taking care for future jobs also.
I am really seeking for the guideline about this issue.
Hello guys,
I use Redis Redis 3.0.6 64 bit in Ubuntu 16.04LTS.
There is an error occurred "TTL exceeded", I don't know how do I resolve it. I have use kue module of Redis in NodeJS and after some job, there is an error of "TTL exceeded". I referred this error in google and found that when job TTL exceeded error occurred when the current job has been failed and stuck in between and another process which is in the queue also pending in the queue. I have referred about watchStuckJobs() method but I don't get the proper idea how to use it.
My concern is that how do I know stuck jobs and remove or restart the stuck jobs and same taking care for future jobs also.
I am really seeking for the guideline about this issue.
Following is redis-cli output:
` hgetall q:job:10 1) "failed_at" 2) "1507796226312" 3) "error" 4) "TTL exceeded" 5) "started_at" 6) "1507796105591" 7) "backoff" 8) "true" 9) "promote_at" 10) "1507796072433" 11) "delay" 12) "1000" 13) "ttl" 14) "120000" 15) "state" 16) "failed" 17) "type" 18) "import" 19) "removeOnComplete" 20) "true" 21) "updated_at" 22) "1507796226312" 23) "created_at" 24) "1507795948716" 25) "data" 26) "{\"type\":\"sf-org-import\",\"socketId\":\"0fv_xXAyQdph2lh5AAAO\",\"data\":\"f827ab3b-e6fe-477c-9b8d-949221fa52fb\"}" 27) "attempts" 28) "2" 29) "priority" 30) "0" 31) "max_attempts" 32) "2" 33) "workerId" 34) "kue:ip-172-31-71-238:16612:import:1"
Code