Skip to content

Instantly share code, notes, and snippets.

@epintos
Last active August 28, 2015 18:55
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 epintos/bdad270ef929357888a2 to your computer and use it in GitHub Desktop.
Save epintos/bdad270ef929357888a2 to your computer and use it in GitHub Desktop.
# rescue...
data = {
id: sqs_msg.attributes['SentTimestamp'].to_i,
worker: worker_instance.class.to_s,
queue: queue,
arguments: body,
enqueued_at: Time.at(sqs_msg.attributes['SentTimestamp'].to_i / 1000)
}
REDIS.lpush("sqs-dashboard-failures", data)
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment