GithubHelp home page GithubHelp logo

cron_swanson's People

Contributors

alexdean avatar mzagaja avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

mzagaja

cron_swanson's Issues

bugs running with ruby 3

      ArgumentError:
       tried to create Proc object without a block
     # ./lib/cron_swanson/whenever.rb:86:in `new'
     # ./lib/cron_swanson/whenever.rb:86:in `schedule'
     # <eval>:2:in `initialize'
     # ./spec/lib/cron_swanson/whenever_spec.rb:177:in `new'
     # ./spec/lib/cron_swanson/whenever_spec.rb:177:in `block (4 levels) in <top (required)>'
     # ./spec/lib/cron_swanson/whenever_spec.rb:170:in `each'
     # ./spec/lib/cron_swanson/whenever_spec.rb:170:in `block (3 levels) in <top (required)>'

whenever gem 1.0.0 compatibility issue

When attempting to update an app to whenever 1.0.0 the deployment throws the following error:

Whenever and cron_swanson throw the following error on deployment to staging:

export RAILS_ENV="staging" ; /usr/local/rvm/bin/rvm 2.7.5 do bundle exec whenever --update-crontab acme_staging --set environment=staging --roles=web,app,db,cron,waiting_room_upstart,delayed_job_upstart
Traceback (most recent call last):
	17: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/bin/ruby_executable_hooks:22:in `<main>'
	16: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/bin/ruby_executable_hooks:22:in `eval'
	15: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/bin/whenever:23:in `<main>'
	14: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/bin/whenever:23:in `load'
	13: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/bin/whenever:44:in `<top (required)>'
	12: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever/command_line.rb:6:in `execute'
	11: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever/command_line.rb:38:in `run'
	10: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever/command_line.rb:109:in `updated_crontab'
	 9: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever/command_line.rb:57:in `whenever_cron'
	 8: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever.rb:12:in `cron'
	 7: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever.rb:12:in `new'
	 6: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever/job_list.rb:25:in `initialize'
	 5: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/whenever-1.0.0/lib/whenever/job_list.rb:25:in `instance_eval'
	 4: from config/schedule.rb:19:in `initialize'
	 3: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/cron_swanson-0.3.4/lib/cron_swanson/whenever.rb:73:in `schedule'
	 2: from /var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/cron_swanson-0.3.4/lib/cron_swanson/whenever.rb:73:in `instance_eval'
	 1: from config/schedule.rb:21:in `block in initialize'
/var/www/acme/staging/master/shared/bundle/ruby/2.7.0/gems/cron_swanson-0.3.4/lib/cron_swanson/whenever.rb:102:in `method_missing': environment is not defined. Call `job_type` to resolve this. (RuntimeError)

:whenever_environment is just using the default value from the gem and changing to -> { fetch(:stage) } did not impact this error. I'm guessing this gem has to account for a change in the whenever gem potentially related to javan/whenever#728 or javan/whenever#719. However if you think it might be a change that needs to be made to a deploy.rb or such locally, I'm open to suggestions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.