Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created September 10, 2010 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abuiles/574448 to your computer and use it in GitHub Desktop.
Save abuiles/574448 to your computer and use it in GitHub Desktop.
observes :aws_turk_assignment_request, :after => :approveAssignment, :invokes => :approve_aws_assignment
def self.approve_aws_assignment(request)
Delayed::Job.enqueue(GetAssignmentJob.new(request.turk_assignment.hit), 0, 20.seconds.from_now)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment