Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bull
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 175
    • Issues 175
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OptimalBits
  • bull
  • Issues
  • #1550
Closed
Open
Issue created Nov 07, 2019 by Administrator@rootContributor

threaded processes are not passed the queue information

Created by: zsalzbank

Description

When running a non-threaded job, the job object passed to the processor has a reference to the queue that the job is running on.

However, running that same job in a threaded process would result in a failure, because the queue key is not set in the job.

Minimal, Working Test code to reproduce the issue.

module.exports = function processJob(job) {
  return job.queue.name;
} 

Bull version

3.11.0

Additional information

I think this happens because the Queue class can't be serialized. But it would be helpful to serialize as much information about it as possible and pass it to the job.

Assignee
Assign to
Time tracking