Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !984

Merged
Created 12 years ago by Administrator@rootOwner

Fix resque worker becoming paused on restarts

  • Overview 3
  • Commits 1
  • Changes 1

Created by: abevoelker

My resque worker would not run jobs after doing a /etc/init.d/gitlab restart. I finally noticed that looking at the process status in ps showed that it said Paused. I looked up the signals for resque and it turns out that the USR2 signal the init.d script is sending is specifically for pausing the worker (to unpause, use the CONT signal).

Instead of adding an extra kill -CONT step, I think that it makes more sense to just to take out the resque kill codes as I believe the Unicorn signals page shows that kill -USR2 is a non-blocking operation, so you would effectively immediately pause and unpause your resque worker for no reason.

If the script gets cleaned up to properly restart Unicorn it would probably make sense to put in kill -USR2 $RESQUE_PID; <restart Unicorn>; kill -CONT $RESQUE_PID.

Loading
Loading

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
0 Reviewers
Request review from
Milestone
No milestone
None
None
Time tracking
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
participants
Reference:
Source branch: github/fork/abevoelker/fix-init.d-resque

    0 pending comments