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

Revert "Emit a 'stalled' event." (it's misleading)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/mixmaxhq/revert-254-add-stalled-event into master Mar 01, 2016
  • Overview 5
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: bradvogel

Reverts OptimalBits/bull#254

@manast I realized that this event is actually misleading. New jobs are being processed through processStalledJobs even though they haven't been attempted before.

For example:

  1. Worker 1: creates job
  2. Worker 2: picks up job in getNextJob() and moves it from 'wait' to 'active'
  3. Worker 3: runs processStalledJobs immediately after and gets the job lock before Worker 2 can get it.

I'm testing this in production with 1M+ jobs/day with 20 workers, and seeing more jobs get picked up by processStalledJobs than are picked up by takeLockAndProcessJob.

So if that's the case, this event is misleading.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/mixmaxhq/revert-254-add-stalled-event