Skip to content

Commit

Permalink
Fix bug and add gb to payload's memory field
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Jan 12, 2024
1 parent f163f13 commit b02b4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/remote_sandbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def send_submission(submission, notify_url)
file: tar_file, notify: notify_url, token: submission.secret_token, submission_id: submission.id
}
payload[:docker_image] = exercise.docker_image if exercise.docker_image
payload[:memory_limit] = exercise.memory_limit if exercise.memory_limit
payload[:memory_limit_gb] = exercise.memory_limit_gb if exercise.memory_limit_gb
payload[:cpu_limit] = exercise.cpu_limit if exercise.cpu_limit

RestClient::Request.execute(method: :post, url: post_url, timeout: 5, payload: payload)
Expand Down

0 comments on commit b02b4ec

Please sign in to comment.