title: Activity function failed :python exited with code 137
body: <p>I'm facing same issue which was described in the below thread.
  <a href="https://stackoverflow.com/questions/63957535/python-azure-function-exits-with-code-137">Python Azure Function exits with code 137?</a>
  But I am unable to find proper solution to it. Below is what I'm trying to do:</p>
  <ol>
  <li><p>Approach one: (using http trigger functions in azure)<br />
  I passed the parameter to the request (container path for which I want to retrieve the data) and date for which I want to filter out the records, but the http trigger timeout is of 230 seconds. So tried to google another approach and came across durable activity thing.</p>
  </li>
  <li><p>Approach two: (using durable activity)<br />
  The same as above, but now I'm getting this error (<code>Activity function failed :python exited with code 137</code>). Below is how my code snippet looks. The response will the data displayed in json format. I'm using Function premium plan with EP2 tried EP3 as well but still memory consumption is going 100%</p>
  </li>
  </ol>
  <pre class="lang-py prettyprint-override"><code>fs = AzureBlobFileSystem(account_name=&quot;stgacc&quot;,credential=get_secret_value('sec_value'));
  dt = DeltaTable(f'{file_name}',file_system=fs);
  dt_df = dt.to_pandas();
  df = dt_df[dt_df['date']==date[0]].dropna(subset=['date']).to_json(orient='records');
  fnl_data = json.loads(df);
  return fnl_data
  </code></pre>
  <p><code>file_name</code> is the container name which is partitioned on date.
  I'm not doing any operation here, just trying to extract the data and display as an response. Files are in delta tables, so it's parquet formatted. I did check the size in csv for a particular date for which I was facing the issue it's only 63 mbs.</p>
  <blockquote>
  <p>Activity function failed :python exited with code 137</p>
  </blockquote>
  <p>Is it because I'm reading the full container at the start and then filtering the record which is causing the issue?</p>