← Files Computable Systems EngineeringARCHIVED FILE

hosted/job.py

403 Bytes · Dec 3, 2026 · 18:30 UTC

↓ Download file

"""Apply process limits before executing a fixed, server-selected CSE script."""
import os
import resource
import sys

resource.setrlimit(resource.RLIMIT_CPU, (25, 26))
resource.setrlimit(resource.RLIMIT_FSIZE, (2_000_000, 2_000_000))
resource.setrlimit(resource.RLIMIT_NOFILE, (128, 128))
resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
os.execv(sys.executable, [sys.executable, '-B', *sys.argv[1:]])

SHA-256: 17cdab8f916320dd0b23e3f348e7ae66bb9add8903be09d8dad9affd6eb19dee