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
  • #1118
Closed
Open
Issue created Nov 11, 2018 by Administrator@rootContributor

Passing a string value to delay fails silently

Created by: sarincasm

Description

This is a minor defect. When creating a delayed job, if delay option is passed as a string, the job gets added but never gets executed, nor does it throw any error.

Minimal, Working Test code to reproduce the issue.

Add a job - This gets added, doesn't throw but never gets executed

		myQueue.add(
			data,
			{delay: '1200'}
		)

Simply doing this works fine:

		myQueue.add(
			data,
			{delay:  parseInt('1200')}
		)

Bull version

3.4.8

Assignee
Assign to
Time tracking