Coder Social home page Coder Social logo

Jobs not running about guard-delayed HOT 7 CLOSED

suranyami avatar suranyami commented on May 26, 2024
Jobs not running

from guard-delayed.

Comments (7)

suranyami avatar suranyami commented on May 26, 2024

Well, that certainly sounds like it needs dealing with.

Can you give me a little more info?

Is there a github repo I can download with your code on it, so I can try the same thing? If not, can you put one up?

Also, some information about your system would be good:

  • Ruby version?
  • Gemfile contents?
  • Are you using RVM?
  • Which version of delayed_job is installed?

Anything else you can tell me will help.

In the meantime, I'll try using guard-delayed again on my own machine... the project I built it for hasn't been in use for a while, so it's possible some dependency has caused it to break in the meantime.

Oh, also, you might try running guard with the debug option on, and see if the extra info it prints out helps shed some light on the problem:

guard -d

Thanks in advance.

from guard-delayed.

rwz avatar rwz commented on May 26, 2024

Having the same issue here. The problem is that
system('RAILS_ENV=developement script/delayed_job', 'start') returns nil and does nothing actually. That's because setting environment variables is not allowed in system() calls at least in 1.9.3.

I'll provide pull request fixing that in couple of minutes.

from guard-delayed.

suranyami avatar suranyami commented on May 26, 2024

I've been having this same problem, too.
So, had a look at delayed-job and there's an issue #7 where they say that the -e flag is deprecated and you NEED to use RAILS_ENV=development.
So, I dunno what to do. Perhaps the -e flag needs to be added back to delayed_job, which would mean them accepting a pull request. Or I could fork delayed_job and have guard-delayed depend on the fork.
Will try to deal with this soon.

from guard-delayed.

rwz avatar rwz commented on May 26, 2024

@suranyami I've made a dirty fix for that. Just didn't have time to do a proper pull-request.

But you can check out my fork, it works.

from guard-delayed.

suranyami avatar suranyami commented on May 26, 2024

Top work @rwz.

Merged, and pushed up to rubygems.org.

Thanks for your help!

from guard-delayed.

suranyami avatar suranyami commented on May 26, 2024

Actually, can you guys check that this is working for you and get back to me. I'll close the issue then.
Ta.

from guard-delayed.

rwz avatar rwz commented on May 26, 2024

Works fine for me :)

from guard-delayed.

Related Issues (8)

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.