Comments (4)
I realized I might not have been clear enough:
If I use whenever from the command line, everything is generated properly, with the correct environment specified for any tasks.
If I use whenever via capistrano, any jobs outside of a conditional are added to the crontab. Those jobs have the right environment set.
If I try to write a job conditionally, using @Environment or Rails.env, nothing inside the conditional is written to the crontab when I use capistrano, e.g. 'cap staging deploy' or 'cap production deploy'.
from whenever.
It was a capistrano issue, not whenever.
from whenever.
Sorry for not getting back to you sooner. So you've resolved this issue?
from whenever.
Yes, thanks -- we tracked it back to Capistrano. Thanks for the library, too; just fantastic work.
from whenever.
Related Issues (20)
- Adding timeout to prevent overlapping cron jobs HOT 2
- Ruby raising "Operation not permitted -- ../bin/bundle (LoadError)" error
- AWS AL2 v3 - Source environment HOT 1
- Issue when using runner HOT 2
- Missing "script/runner", undocumented dependency on rails? HOT 2
- Incorrect crontab generated when using "days after/before"
- Support for every other hour with offset (1am, 3am, etc.) HOT 3
- Operation not permitted - getcwd (Errno::EPERM) HOT 4
- How to set the daily time as the time of a certain time zone, thank you HOT 1
- How to change the shell by default (bash) ? HOT 1
- How do I "namespace" the crontab entries?
- ActionView::Template::Error (undefined method `>' for nil:NilClass): HOT 1
- Ruby 3.2 autocompletion in console HOT 9
- We need to move from travis-ci to github actions
- How to execute multiple tasks with a single runner ? HOT 1
- whenever command is not working HOT 1
- [Feature Request] Add Dashboard for whenever cron job activity monitoring
- Bundler::RubyVersionMismatch HOT 1
- whenever -w throws incompatible library error HOT 1
- [Feature Request] Pass job frequency as argument to job
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whenever.