Automattic / Automattic/kue

Kue is not adding jobs to redis instance

Open
#728 15 comments 0 reactions 0 assignees View on GitHub
Discussion need more info
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

Hello guys,

I've been struggling with an issue that I dont have any idea how to solve or why it happens.

When I use Kue with a local instance of redis, everything is just fine, and work as it should. The problem is when I moved everything to my staging environment, Kue went crazy. Sometimes jobs are not added to the queue, and sometimes they are added but they're not handled by workers (just get stuck in inactive state).

The first jobs (one or two) that I add to the queue are done, but after a few minutes they're not added anymore or are not handled.

Does anyone have any idea or have faced a similar problem? It's very strange that everything is working locally, but not with a remote instance of redis.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the staging environment with its remote Redis instance, comparing it with the working local setup. Investigate why jobs stop being added or remain inactive instead of being handled by workers. Done means jobs are consistently enqueued and processed in staging.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, redis
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.