Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created May 22, 2012 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KensoDev/2768988 to your computer and use it in GitHub Desktop.
Save KensoDev/2768988 to your computer and use it in GitHub Desktop.
u = User.find(some_user_id)
u.long_running_method # Method will be queued into the :generic queue
u.long_running_method_2 # Method will be queued into :some_queue_name queue
u.lonely_long_running_method # Method will be queued into the :some_queue_name queue, only a single instance of this method can exist in the queue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment