21700: Install Bundler system-wide in Rails postinst
[arvados.git] / sdk / cwl / tests / oom / fakeoom2.py
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 import sys
6 import time
7 import arvados
8
9 api = arvados.api()
10 current_container = api.containers().current().execute()
11
12 if current_container["runtime_constraints"]["ram"] < (512*1024*1024):
13     raise MemoryError()