17301: Fold subsequent messages into details
[arvados.git] / sdk / cwl / arvados_cwl / arvcontainer.py
index e2c2f2e67bfef0b7b1bcd0f09f8cd1d212639f78..b04fb190e963e965524679bb4473767820e8b849 100644 (file)
@@ -392,6 +392,10 @@ class ArvadosContainer(JobBase):
                     processStatus = "success"
                 else:
                     processStatus = "permanentFail"
+
+                if rcode == 137:
+                    logger.warning("%s This container was killed on the compute instance.  The most common reason is that it attempted to allocate too much RAM and was targeted by the Out Of Memory (OOM) killer.  Try resubmitting with a higher 'ramMin'.",
+                                 self.arvrunner.label(self))
             else:
                 processStatus = "permanentFail"