1. Feb 4th, 2011

    Just released Resque::Forker 2.0

    This release adds command line tool for running workers:

    1
    
    $ resque-ctl -c config/resque_workers.rb

    or with bundler

    1
    
    $ bundle exec resque-ctl -c config/resque_workers.rb

    Check the README for more details and how to write a configuration file.

    New awesome by Todd Fisher.

    1. Feb 5th, 2011

      Erik Kastner

      This is cool – it reminds me a lot of how gearman_manager goes about it’s business.

      I was just reading over the code of Resque, it looks like it does fork() for each worker… Is that new? What does Rescue::Forker give you beyond that? Easier management?

    2. Feb 5th, 2011

      Assaf

      Erik, Resque doesn’t fork for each worker, it forks for each job. You still need to start N workers, and that can be a lot of overheard. Resque::Forker starts the application once and then forks it into N workers.

    3. Feb 5th, 2011

      Erik Kastner

      Ah! That makes sense.
      I’m considering changing our gearman job runner to fork for each job (it already forks the workers). This would let us get better info about failed jobs (since PHP is oh-so-helpful with hard failures)

      Thanks for the info.

    Your comment, here ⇓