Automattic / Automattic/kue

job.id is so different for test and prod modes

Open
#780 1 comment 0 reactions 0 assignees View on GitHub
need more info needs pull request unknown
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

I've just notices that for `queue.testMode` mode job.id returns a function, and in general mode it returns an integer.

Why is that?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the queue.testMode path and comparing how job.id is produced in test and production modes. Confirm whether the function-versus-integer difference is intentional or a defect; done means documenting the reason or defining the expected consistent behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, redis
Domain
backend
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.