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
  • #1573
Closed
Open
Issue created Nov 29, 2019 by Administrator@rootContributor

Question: Proper use of `endDate`

Created by: mattcollier

Description

I'm using a repeatable job that I would like to run ever 90 seconds for the next 30 minutes (duration). The job is running every 90 seconds as expected, but it continues to continue firing every 90 seconds after the endDate

  await queue.add('monitorNodes', data, {repeat: {
    jobId: uuid(),
    every: 90000,
    // end monitor 10 secs before the end of the stage
    endDate: Date.now() + data.duration - 10000,
  }});

Minimal, Working Test code to reproduce the issue.

(An easy to reproduce test case will dramatically decrease the resolution time.)

Usage is here: https://github.com/digitalbazaar/bedrock-ledger-test-orchestrator/blob/elector-pool/lib/node-api/job-process.js#L131-L136

Bull version

3.12.1

Additional information

Thank you!

Assignee
Assign to
Time tracking