Merge branch 'main' into 21158-wf-page-list
[arvados.git] / sdk / cwl / tests / oom / fakeoom3.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     print("Whoops")
14     sys.exit(1)