#4840·bullmq

[Feature]: Add getJob method to Queue in Python SDK

Author: Priyankm23Created Sep 28, 2026Updated Sep 28, 2026

Is your feature request related to a problem? Please describe. In the TypeScript/Node.js SDK, queue.getJob(jobId) is a standard and frequently used method to retrieve a single job instance by its identifier.

In the Python SDK, Queue exposes bulk retrieval methods like getJobs(...) and state inspection methods like getJobState(...), but getJob(job_id) is not present on Queue. Currently, users must manually import the Job class and call:

python
from bullmq import Job
job = await Job.fromId(queue, job_id)

This differs from the Node.js API and makes simple job lookups unintuitive for developers following the general BullMQ documentation.

Describe the solution you'd like Add getJob to the Queue class in python/bullmq/queue.py to match the Node.js implementation:

python
async def getJob(self, job_id: str) -> Optional[Job]:
    """
    Get a job by its id.
    
    @param job_id: The id of the job to retrieve.
    @return: The Job instance or None if not found.
    """
    return await Job.fromId(self, job_id)

Describe alternatives you've considered Continuing to import Job and calling Job.fromId(queue, job_id) directly, but having it available on Queue provides full parity with TypeScript BullMQ.

Additional context I have already implemented this change along with corresponding unit tests locally. I would be happy to open a pull request for this right away if this looks good to you!