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
  • #1857
Closed
Open
Issue created Sep 14, 2020 by Administrator@rootContributor

Update scheduled job?

Created by: VakoNonikashvili

User scheduled post for tomorrow:

postQueue.add({ postId: 1 }, { delay: 60 * 60 * 24 });

in 2 hour he changed mind and want to reschedule this post after 3 days.

As I saw in documentation, queue has getJob method which finds job with Id but we want to find job with postId. Also query all jobs will be slow, if there will huge amount of jobs in queue.

How to find this job and update with correct delay?

Assignee
Assign to
Time tracking