Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resque-scheduler 4.2.0 not starting in BACKGROUND mode with BACKGROUND=yes #682

Open
shobhits147 opened this issue Jul 17, 2019 · 0 comments

Comments

@shobhits147
Copy link

shobhits147 commented Jul 17, 2019

I am unable to start resque:scheduler process in the background by using the BACKGROUND=yes flag. The command which i am using is:
BACKGROUND=yes /usr/bin/bundle exec /usr/bin/rake environment resque:scheduler RAILS_ENV=development
resque:scheduler process starts successfully after running this but the rake process doesn't exit as it should after providing the BACKGROUND=yes flag. After the schedules get loaded, instead of running the scheduler in the background, jobs start getting enqueued in the foreground:

resque-scheduler: [INFO] [Rails:4] 2019-07-17T18:50:18+00:00: Schedules Loaded
resque-scheduler: [INFO] [Rails:4] 2019-07-17T18:49:06+00:00: queueing RequeueThrottledJob (requeue_throttled_job)

Checked this on a different terminal:

[ec2-user@ip-10-146-98-218 ~]$ ps aux | grep resque | grep scheduler
ec2-user 24515 14.7  1.2 860552 380748 ?       Sl   18:50   0:04 resque-scheduler-4.2.0[development]: Schedules Loaded

Strange thing to note here is that this issue doesn't appear when using rails3 application. The rake process exits and resque:scheduler starts running in the background as soon as the schedules get loaded.
These are the OS and package versions i'm using:

  • OS - Amazon Linux 2
  • resque:scheduler - 4.2.0
  • ruby - 2.1.6
  • rails - 4.2.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant