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
  • #1691
Closed
Open
Issue created Apr 05, 2020 by Administrator@rootContributor

Updating settings of repeatable jobs that are deduplicated

Created by: axos88

Description

Repeatable job not updated if the cron schedule is not changed. As far as I understand this is by design so that scheduled jobs are not duplicated when starting up the application. However other information that is not used for deduplication should be updated, such as the number of completed jobs to keep around.

Minimal, Working Test code to reproduce the issue.

defaultQueue.add('ping', {}, { repeat: { cron: '* * * * *' }, removeOnComplete: 1});

(later)

defaultQueue.add('ping', {}, { repeat: { cron: '* * * * *' }, removeOnComplete: 5});

Expected action: The removeOnComplete should be updated to 5. I assume it is the same case with every other setting.

Current workaround: Remove the job and let the app add it back again.

Bull version

3.13.0

Additional information

Assignee
Assign to
Time tracking