Skip to content

Instantly share code, notes, and snippets.

@kml
Created April 25, 2012 13:39
Show Gist options
  • Save kml/2489767 to your computer and use it in GitHub Desktop.
Save kml/2489767 to your computer and use it in GitHub Desktop.
# ...
options = {properties: {}}
options[:properties]['_HQ_SCHED_DELIVERY'] = Time.now.to_i * 1000 + 30.seconds * 1000 # milis
download_queue.publish({message: {photo_id: photo.id}}, options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment