Skip to content
Snippets Groups Projects
Commit 0e20d9be authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-2349: try/except

parent fbc2e2c5
No related branches found
No related tags found
No related merge requests found
...@@ -31,10 +31,13 @@ def main(): ...@@ -31,10 +31,13 @@ def main():
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO) logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO)
# some parts of scheduling use recursion. Bump the conservative python recursion limit. try:
import resource, sys # some parts of scheduling use recursion. Bump the conservative python recursion limit.
resource.setrlimit(resource.RLIMIT_STACK, resource.RLIM_INFINITY) import resource, sys
sys.setrecursionlimit(10000) resource.setrlimit(resource.RLIMIT_STACK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
sys.setrecursionlimit(10000)
except Exception as e:
logger.error(e)
# Check the invocation arguments # Check the invocation arguments
parser = OptionParser('%prog [options]', parser = OptionParser('%prog [options]',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment