Skip to main content

All Questions

Tagged with
0 votes
2 answers
85 views

Can´t execute a cron with whenever in Ruby on Rails

So I'm new to Ruby on Rails and I´m doing a simples crontab. I'm using 'whenever' with 'rbenv'. env :PATH, ENV['PATH'] set :output, './log/cron.log' set :environment, 'development' ...
Pedro Diogo's user avatar
0 votes
0 answers
113 views

Whenever gem logger in Docker

I wonder how to get whenever gem task logs from Docker container. task my_task: :environment do Rails.logger.info 'start task' MyModel.call_some_method end Task is running well, I can see ...
user1929618's user avatar
0 votes
0 answers
191 views

How do I give ENV['DATABASE_URL'] to Whenever gem in Fly.io Rails app?

I'm trying to use the Whenever gem in my Rails app to schedule some rake tasks. I'm hosting the app on Fly.io, and the rakes are aborting because they can't connect to the Postgres database in the ...
Tom Kitson's user avatar
-1 votes
1 answer
66 views

How do I change the images in a rails app every 24 hours?

I have an Rails app with a gallery of 6 images. I would like to automatically switch which images are displayed every 24 hours. I have the logic for selecting the images in a rake task, which returns ...
Tom Kitson's user avatar
0 votes
0 answers
63 views

Blazer gem: Scheduled rake tasks not working automatically but work fine when invoked from console

I have set up a couple of rake tasks to run automatically with the whenever gem . The tasks involve running a background Job, performing a database Blazer check and sending failing checks emails. The ...
pinkfloyd90's user avatar
0 votes
0 answers
36 views

How do I correct a Rails cron.log error showing it can't find bundler 2.4.3 when I do have bundler 2.4.3?

Newbie, I'm trying to run a first time cron job in Rails 7 with whenever gem. I get the following error in the cron.log: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/...
Russ11's user avatar
  • 1
1 vote
1 answer
280 views

How do I run a Cron job which updates a particular column value once per day in ruby on rails?

Database - Postgres So I am very new to Ruby on rails and a Jr. developer so not very much aware of this task. I have a PLSQL query which checks if there is a child whose age is more than 5 from the ...
Akash 's user avatar
  • 83
0 votes
2 answers
357 views

Best approach for a scheduled update use case - ruby on rails

I have an specific requirement to be implemented, and any thoughts on thet would be welcome The requirement A given Appointment model has the following structure: Appointment { status, # 'scheduled' ...
cchiaramelli's user avatar
2 votes
1 answer
2k views

Difference between background jobs, rake tasks and cronjobs in Ruby on Rails?

I have just started exploring rake tasks and cronjobs in rails. I was confused about the comparison among them and what to you in which situation. As far as I know background job is something that is ...
Muhammad Ans's user avatar
0 votes
2 answers
1k views

Schedule Cron job for different timezones rails?

I want to schedule a cron job that would send emails to all users as soon as deadline for their events ended. Note: Every user have different timezone. The approach i was thinking about: I have a cron ...
Mohsin Raza's user avatar
0 votes
1 answer
1k views

How to run a cron script with gitlab-rails

I have gitlab-rails with GitLab 15.0.4 Rails version 6.1.4.7 Ruby version ruby 2.7.5 I want to run a gitlab-rails script from Cron. The gitlab-rails runner seems to be broken as it doesn't recognize ...
Robert Cutajar's user avatar
0 votes
1 answer
1k views

How to call sidekiq perform fuction after every five minutes in rails

require 'sidekiq' module KYC module VerifyInvestor class AccreditedVerificationWorker include Sidekiq::Worker def perform() .... end end end end
2506Abhinav Kukreja's user avatar
0 votes
1 answer
855 views

I want to do a cron-job with the help of docker (Aipine) and the whenever gem

Aasumption I m using docker-compose and wanted to use the whenever gem to do a cron process that deletes at a certain time in Rails, but upon research I found that I have to install and run cron in ...
Beginner Professional's user avatar
0 votes
1 answer
310 views

How to execute a job X amount of minutes after instance is created?

I am using postgres with a project coded on rails. Its a standard online store, when the customer clicks on "pay" an instance of the "transaction" model is created and the stock ...
Msantamaria's user avatar
0 votes
0 answers
41 views

Unable to run 2 dependent commands in the same whenever cron job

I work on a Rails based website for which I have to create a sitemap using the sitemap_generator gem. So far so good, until I reached the part where I have to automate the sitemap generation. The 2 ...
Alex Nedelcu's user avatar

15 30 50 per page
1
2 3 4 5
39