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

feat: emit event on job lock extend failure

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/bewithjonam/feat/expose-job-lock-failure-as-event into develop Oct 23, 2021
  • Overview 9
  • Commits 3
  • Pipelines 0
  • Changes 3

Created by: bewithjonam

Existing: When a job fails to extend its lock in redis, there is no way to debug or do find it out.

Change: When a job fails to extend its lock in redis, a new event lockExtendingFailed will be emitted.

Reason: In our use-case, each job processes data from a socket continuously and sends signals based on it when the jobs conditions are met. It is a long job(runs for days). We have multiple workers processing jobs. As already clearly mentioned in the Readme, if lock extension fails, it will lead to double processing of jobs.

Using this event, if extending lock fails, I will disconnect the socket so that it will stop duplicate processing.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/bewithjonam/feat/expose-job-lock-failure-as-event