whenever Questions

6

Solved

I have a Rails import job that run as a cron job setup through the whenever gem. It was running correctly until I recently updated the app. Now we are seeing the following Error in the logs when th...
Est asked 6/3, 2020 at 22:7

18

Solved

I am trying to use whenever to execute a rake task onces a day. Im getting this error /bin/bash: bundle: command not found /home/app/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/d...
Terle asked 28/2, 2012 at 12:55

5

Solved

I created an app that uses the whenever gem. The gem creates cron jobs. I got it working locally but can't seem to get it working on heroku cedar. What's the command to do this? running: heroku r...
Leesa asked 23/12, 2011 at 19:6

4

Solved

I'm aware of this thread: A cron job for rails: best practices?, but there's no mention of ActiveJob. My motivation to do it with ActiveJob is because it's built-in in Rails and here's an excerpt f...
Kedah asked 31/3, 2015 at 3:12

2

Solved

I'm using the "whenever" gem and got it working by doing: whenever --set environment=production --update-crontab theCronJob The interval I'm using is 2 minutes since I'm still trying to figure i...
Allman asked 15/12, 2011 at 20:3

1

How to run sidekiq in a separate different docker container apart from application. We are using whenever for the sidekiq jobs, but the jobs are getting triggered in all web containers How do we ...
Lewiss asked 18/5, 2020 at 4:20

3

Solved

I have an application that contains a bunch of tasks, and every day I want to run a cron job that creates a DayTask for each Task in the database. A Task has_many DayTasks and these daytasks are wh...
Brutish asked 25/9, 2011 at 21:25

4

Solved

Lets say I have a cronjob like this: every 1.day, :at => '4:30 am' do runner "MyModel.task_to_run_at_four_thirty_in_the_morning" end Although, I would like to make '1.day' more dynamic, s...
Shorthorn asked 5/1, 2011 at 9:19

10

Solved

This question will probably only make sense if you know about the whenever gem for creating cron jobs. I have a task in my schedule.rb like every 1.day, :at => '4am' do command "cd #{RAILS_RO...
Nadaha asked 1/7, 2009 at 16:55

4

Solved

This is my first processing jobs asynchronously I am implementing Sidekiq for background processing in my app. I will use it for reminder emails and in-app notifications. I am confused as to whethe...
Auberbach asked 28/4, 2015 at 17:12

2

Solved

I've just inherited a Rails project and before it was on a typical 'nix server. The decision was made to move it to heroku for the client and it up to me to get the background process working. Curr...
Seeseebeck asked 7/9, 2012 at 21:41

5

When using the 'whenever gem', I get an error in the log: /usr/bin/env: ruby: No such file or directory It works when I run the job manually. I've installed everything with RVM. I've used the w...
Stamina asked 26/11, 2011 at 20:47

3

Solved

looking for some help. I am running a rails app (v3.2.5) with the whenever gem (v0.9.7) and rake (v11.2.2). I am also doing this in a docker container image ruby:2.3 (cron was installed and bundle...
Dioecious asked 8/8, 2016 at 21:40

3

Solved

'I have set up a cron with wehenever, but its not working. I tried to run the command manually and i get the error /bin/bash: bin/rails: Permission denied. Here what the command of the cron looks ...
Numeration asked 19/10, 2013 at 8:8

3

On our staging server we run our Rails application in the production environment so as to be as similar as possible to our production server. We're using whenever to create our crontab. However, we...
Phenica asked 1/3, 2013 at 4:52

3

Solved

In schedule.rb file, the statement: require "#{RAILS_ROOT}/config/environment.rb" every "10 10 2 * * *" do command "mysqldump -u #{@db_username} -p#{@db_password} --single-transaction #{@db_nam...
Prehensile asked 2/11, 2011 at 9:35

2

Solved

I'm trying to set a Whenever job that should be executed 2 times a day, exactly at 11am and 11pm. Is there any way to do it with only one block? I mean something like this: every :day, :at => [...
Equites asked 24/10, 2012 at 21:36

4

Solved

I searched all over the internet for this, and the documentation isn't really talking about monthly jobs in specific. So I was hoping that someone here could tell me how to do this. I've installed...
Synchronic asked 23/6, 2011 at 11:58

4

Sorry quick question here from a relative Rails newbie. I'm trying to use the Whenever gem to schedule a number of rake tasks. I can't for the life of me get it to actually begin running the cron j...
Curdle asked 17/7, 2012 at 1:42

1

Solved

I've got the following configuration. I've installed whenever gem, created shedule.rb: # Learn more: http://github.com/javan/whenever every 6.hours do runner "Part.check_status_update" end In ...
Matilda asked 8/6, 2015 at 21:31

1

Solved

When using the whenever gem we can set a monthly job like this : every :month do ... end Will this run the job at the end of the month or at the start of the month? I want to run it at the end....
Bilbe asked 17/5, 2015 at 14:23

2

I have the following capistrano 3 task: desc 'Add root scheduled tasks' task :root_schedules do on roles(:all) do within release_path do execute :sudo, :bundle, 'exec whenever -w config/root_s...
Patterson asked 19/2, 2015 at 4:50

2

Solved

I have a Ruby on Rails app in a Docker container on Ubuntu 14.04. I set up my deployments using Dokku but I'm unsure how to get my cron jobs working correctly. Currently I'm using the whenever gem...
Latvia asked 4/11, 2014 at 16:3

3

Solved

For staggering purposes I am trying to schedule jobs an a 2 minute offset that run every 5 mins. That is I want 1 job to run 1,6,11,16.. and the other one to run at 2,7,12,17... I couldn't find an...
Pilliwinks asked 10/6, 2011 at 19:33

2

I have a RoR app with background jobs using whenever and sidekiq gems. In development environment when I launch sidekiq with local redis instance (on localhost) the job keeps getting executed with...
Edson asked 29/11, 2013 at 15:25

© 2022 - 2024 — McMap. All rights reserved.