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

Support for milliseconds intervals

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/cuchi/secs-and-millis into master May 16, 2018
  • Overview 8
  • Commits 5
  • Pipelines 0
  • Changes 2

Created by: cuchi

With this, the interval can be defined using a more flexible manner than cron, which was discussed in #942 (closed)

For example, when I need a job to execute every 90 minutes, I would do like that:

queue.add({ ... }, { repeat: { seconds: 5400 } })

I am not sure if it is the best API design for this, maybe the contributors have a better opinion on that. I need to update the reference and the TS definitions too.

We at @rung-tools will be testing this branch with our application to see if it is stable enough, I'll report here if something is not right.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/cuchi/secs-and-millis