title: Propagate the error in sagemaker from ProcessingStep to Worflow functions
body: <p>So I have a sagemaker worflow composed of multiple processing steps, training steps ...</p>
  <p>I'm trying to change the <code>FailureReason</code> of the <code>describe_pipeline_execution()</code> to return useful information concerning the failure of my Sagemaker pipeline.</p>
  <p>Indeed in my processing step and in my training step, having their code inside a docker container,  I want the pipeline to fail for various reasons. In the documentation <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/build-your-own-processing-container.html" rel="nofollow noreferrer">here</a> for processing step and <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-output.html" rel="nofollow noreferrer">here</a> for training step, it is possible to return something by writing it in a file during the step through the functions <code>DescribeProcessingJob</code> or <code>DescribeTrainingJob</code>.</p>
  <p>I was wondering if there is a path like <code>/opt/ml/failure</code> to put the output of my process so the function <code>describe_pipeline_execution()</code> can return what I want. Can't find it in the documentation!</p>
  <p>Thanks in advance</p>