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
  • !860

Add defaultJobOptions to Queue

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/mxstbr/default-job-options into master Feb 15, 2018
  • Overview 20
  • Commits 3
  • Pipelines 0
  • Changes 3

Created by: mxstbr

I'd like to pass removeOnComplete and removeOnFail only once, instead of every time I run .add() on a queue. This patch adds a new option to queues called defaultJobOptions which, as the name suggests, sets the default job options.

Also adds two tests verifying that the option is passed through correctly and that it works with removeOnComplete. I wasn't sure whether to more tests were necessary, if so, please just let me know and I'll work on it.

Closes #706 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/mxstbr/default-job-options