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
  • Merge requests
  • !603

Allow for multiple repeatable jobs with same cron

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/Maximization/unique-repeatable-jobs into master Jul 04, 2017
  • Overview 10
  • Commits 3
  • Pipelines 0
  • Changes 2

Created by: Maximization

Fixes #601 (closed)

It was a bit tricky to do becase here https://github.com/OptimalBits/bull/blob/master/lib/queue.js#L547 the jobId is overwritten so if you use opts.jobId for the repeatKey/customId you're going to end up with a key that looks like this: repeat:__default__:repeat:__default__:LHjHbS8qDxXEzpqQQPAH4m:1499171120000:1499171130000

I came up with a solution to store the initial jobId provided by the user in a separate variable on the opts object. Let me know what you think.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Maximization/unique-repeatable-jobs