Skip to content

Instantly share code, notes, and snippets.

@bjensen
Created June 6, 2012 11:20
Show Gist options
  • Select an option

  • Save bjensen/2881337 to your computer and use it in GitHub Desktop.

Select an option

Save bjensen/2881337 to your computer and use it in GitHub Desktop.
Redis: Delete the head item of the queue based on arguments
while((["arrival_notification","workshop_change_notification", "alert_navision_error"].include?(Resque.peek("mailer")["args"][0].to_s)) && (Resque.peek("mailer")["args"][1].to_s == "12")); Resque.pop("mailer"); puts "pop!"; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment