Skip to content

Commit

Permalink
Fix queue size check.
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanzdosilovic committed Jan 16, 2020
1 parent 6d1f429 commit de3a606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/submissions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create
return
end

if Resque.size("default") >= Config::MAX_QUEUE_SIZE
if Resque.size(ENV["JUDGE0_VERSION"]) >= Config::MAX_QUEUE_SIZE
render json: { error: "queue is full" }, status: :service_unavailable
return
end
Expand Down

0 comments on commit de3a606

Please sign in to comment.