Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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