Skip to content

Instantly share code, notes, and snippets.

@epintos
Last active August 28, 2015 18:35
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/db39342d0f71a74ba23c to your computer and use it in GitHub Desktop.
Save epintos/db39342d0f71a74ba23c to your computer and use it in GitHub Desktop.
class DashboardMiddleware
def call(worker_instance, queue, sqs_msg, body)
# send before process information
yield
# send after process information
rescue Exception => e
# send exception information
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment