Cron job not running with when ever..
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 8.9k
- Forks
- 715
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
I am using rails 3 application ,with that i would like to schedule task using whenever in every minute .but it is not working and no issues getting .plase help me.
Source :
Added gem in gemfile: gem 'whenever', :require => false
wheneverize .
schedule.rb
every 1.minute do
command "echo 'one' && echo 'two'"
runner "CollEmployTransactionHpEntry.some_method", :environment => "development"
end
crontab -l
* * * * * /bin/bash -l -c 'echo '\''one'\'' && echo '\''two'\'''
* * * * * /bin/bash -l -c 'cd /home/nyros/Documents/Projects/PPFC/Augest/8/Telecaller/PPFC && bundle exec script/rails runner -e development '\''CollEmployTransactionHpEntry.some_method'\'''
Thanks & Regards,
Anil
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with schedule.rb and compare the generated entries from crontab -l with the Rails runner command shown in the issue. Reproduce the every-minute command and runner job in the Rails 3 application, then determine why neither job runs and document the configuration or environment change that makes them execute.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100