17 April 2014

The Ruby Reflector

Topic

DelayedJob

  Source Favicon
By Peter Cooper of Ruby Inside over 1 year ago.
Email

Ruby queueing library built on top of Amazon SQS. Like DelayedJob it encapsulates the pattern of executing tasks in the background but doesn't rely on a database.

LiterateRandomizer: A Random Sentence and Paragraph Generation Library

Rubber tree and watched him. Vulgarized the larger than the faithful presence! Go slowly protruded round the beginning of shoulders.

Fusuma: Window Management for OS X (Written in MacRuby)

Jobs

Rails Software Engineer

rubyinside.com Read
  Source Favicon
By Bill Kayser of New Relic over 1 year ago.
Email

…the y-axis labels, and fixed the application to "RPM Background" where the DelayedJob agent reports to. Here's what it looks like:

6. Add the Failed Jobs chart. Repeat steps 3 - 5 but enter the metric for tracking failed jobs: Workers/ DelayedJob/failed_jobs .

7. Add the Locked Jobs chart. Repeat steps 3 - 5 but enter the metric for tracking locked jobs: Workers/ DelayedJob/locked_jobs .

8. Add the Job Execution Time chart. Repeat steps 3 - 5 but enter the …

newrelic.com Read
  Source Favicon
By Mike Perham of over 1 year ago.
Email

…library for Ruby which is an order of magnitude more efficient than Resque and DelayedJob.

In some ways, Sidekiq has been a huge success: I've never owned an OSS project that has ramped up this quickly in terms of watchers, users, pull requests, etc. I'm still blown away that a Railscast was created for Sidekiq!

But another part of the Sidekiq project is not technological at all but rather an experiment to answer another question: how can I build a library that …

mikeperham.com Read
  Source Favicon
By New Relic of New Relic almost 2 years ago.
Email

…Ruby Agent has built in support to monitor tasks executed by both of these. Resque and DelayedJob users can monitor the load and turnaround times for those jobs and browse errors and detailed traces on their execution without any additional special configuration.

But what if you run your background jobs with a rake task or some other job runner?

In our own application stack we use DelayedJob for sending email and other short asynchrnous tasks. But longer maintenance jobs are scheduled …

newrelic.com Read
  Source Favicon
Email

…provides a ‘spawn' method to easily fork or thread long-running sections of code. This plugin works by creating new database connections in ActiveRecord::Base for the spawned block. We forked it to make it Rails 2.2 compatible. It is still an active project at tra/spawn, however we now typically use DelayedJob or Resque for background processing ( DJ by default, Resque if we need multiple queues).

robots.thoughtbot.com Read
  Source Favicon
By Patrick of Kalzumeus Software 3 years ago.
Email

…during my apartment move in February, due to an ill-considered code push the night before the move, the DelayedJob queue which handles (among other things) outgoing reminders fell over. Thanks to the magic of Scout , I heard about this essentially instantly. Well, my cell phone did, at any rate. My cell phone was packed up with my laptop and other essential computer stuff for transport by hand. I didn't hear about the queue falling over until after the move was mostly complete, …

kalzumeus.com Read
  Source Favicon
Email

Taking the GitHub DelayedJob recipe as example , you should change

1 2 3 4 5 6 7 # restart if memory gets too high w. transition ( :up , :restart ) do | on | on. condition ( :memory_usage ) do | c | c. above = 300 . megabytes c. times = 2 end end

to

1 2 3 4 5 6 7 8 9 10 11 12 # restart if memory gets too high w. transition ( :up , :restart ) do | on | on. condition ( :memory_usage ) do | c | c. above = 300 . megabytes c. times = 2 end on. condition ( :restart_file_touched …

simonecarletti.com Read
  Source Favicon
By Patrick of Kalzumeus Software over 3 years ago.
Email

DelayedJob job queuing: I have experience using it.

I will probably eventually put WordPress on a physically separate server (hey, it's WordPress), but that doesn't strike me as the biggest priority at launch. I did go to a wee bit of trouble to secure it:

Access to the admin directory is denied at the server level for requests not from my private network.

WordPress has its own database and database user, and can't touch anything elsewhere.

The WordPress directories …

kalzumeus.com Read
  Source Favicon
By Simone Carletti of Simone Carletti's Blog over 3 years ago.
Email

In fact, when a rake task ( God runs DelayedJob using the rake jobs:work task, here's the config ) is started, it loads the entire Rails environment and keeps it in memory as long as the process is running. When you deploy a new version, if you don't restart the rake task, DelayedJob continues to run with the previous Rails version environment.

To restart a task/group in God: $ god restart GROUP_NAME

Speaking about my servers, the problem is that God runs as root …

simonecarletti.com Read
  Source Favicon
On Unicorns & Rainbows almost 4 years ago.
Email

…100 different forks of a project and no one driving the project , again like DelayedJob.

Code Cleanliness

Don't overlook another simple metric for plugins and gems: read the code! Open up Textmate and browse the code. Browse through the tests and maybe even give them a try. If you are going to have your project rely on this functionality, isn't it worth investing 20 minutes to really look through things?

If you aren 't 100% sure what you are looking at …

railsfreak.com Read