Skip to content

Commit

Permalink
wait 5 minutes before trying to get turnitin submission
Browse files Browse the repository at this point in the history
fixes PLAT-1626

test plan:
it should wait 5 minutes before trying to get the tii submission

Change-Id: I24dcb17262695cfbac3ad58ae5d1541e5a153b2b
Reviewed-on: https://gerrit.instructure.com/83781
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
  • Loading branch information
rivernate authored and roor0 committed Jun 28, 2016
1 parent b93ad2f commit 7964a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/turnitin/outcome_response_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def process
update_turnitin_data!(submission, asset_string, status: 'pending', outcome_response: @outcomes_response_json)
self.send_later(:update_originality_data, submission, asset_string)
end
handle_asynchronously :process, max_attempts: 1, run_at: 1.minutes.from_now, priority: Delayed::LOW_PRIORITY
handle_asynchronously :process, max_attempts: 1, run_at: 5.minutes.from_now, priority: Delayed::LOW_PRIORITY

def resubmit(submission, asset_string)
self.send_later(:update_originality_data, submission, asset_string)
Expand Down

0 comments on commit 7964a6c

Please sign in to comment.