Git Product home page Git Product logo

Comments (5)

quirkey avatar quirkey commented on May 15, 2024

Hey thbar - I don't know if this works with IronRuby, but in the past (in dealing with doing windows support for the Vegas gem) I came across the win32-process gem http://raa.ruby-lang.org/project/win32-process/ which provides a version of .fork (and other Kernel methods) for Windows.

from resque.

thbar avatar thbar commented on May 15, 2024

My understanding is that win32-process doesn't work with IronRuby - I just asked the IronRuby mailing list to see what are the plans with fork.

from resque.

thbar avatar thbar commented on May 15, 2024

I just made this quick fix, and after that I was able to achieve Job consumption / failure etc with IronRuby:

def fork
@cant_fork = true if RUBY_ENGINE == 'ironruby'

Could this be included (even temporarily) in Resque, until IronRuby implements some form of Kernel.fork itself ?

It would allow out of the box workers in IronRuby, which opens a whole lot of possibilities on Windows :)

from resque.

thbar avatar thbar commented on May 15, 2024

After pinging the IronRuby mailing list, looks like the plans are to raise the NotImplementedError when called on Kernel.fork - just like MRI.

In the mean time, one possibility here is to not modify Resque, and tell people willing to use Resque (FAQ) to use this:

http://gist.github.com/286052

from resque.

defunkt avatar defunkt commented on May 15, 2024

As of 95e760e Resque should do the correct thing if Kernel.fork isn't provided. Please let me know if this doesn't work - thanks!

from resque.

Related Issues (20)

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.