I received the below error. Is it normal for a Cloud Instance running Docker to gradually use up memory over time that needs to be cleaned up?
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
Cell In[110], line 2
1 from quantrocket.zipline import backtest
----> 2 backtest("Growth_Factor_Strategy",
3 progress="M", # Use for long running test. 'D'= daily, 'W'=weeky, 'M'=monthly, 'Q'=quarterly,'A'=annually
4 start_date="2009-01-01", end_date="2025-01-01",
5 filepath_or_buffer="Strategy_results.csv")
File /opt/conda/lib/python3.11/site-packages/quantrocket/zipline.py:863, in backtest(strategy, data_frequency, capital_base, bundle, start_date, end_date, progress, params, filepath_or_buffer)
859 _params["progress"] = progress
861 response = houston.post("/zipline/backtests/{0}".format(strategy), params=_params, timeout=60*60*96)
--> 863 houston.raise_for_status_with_json(response)
865 filepath_or_buffer = filepath_or_buffer or sys.stdout
866 write_response_to_filepath_or_buffer(filepath_or_buffer, response)
File /opt/conda/lib/python3.11/site-packages/quantrocket/houston.py:225, in Houston.raise_for_status_with_json(response)
223 e.json_response = {}
224 e.args = e.args + ("please check the logs for more details",)
--> 225 raise e
File /opt/conda/lib/python3.11/site-packages/quantrocket/houston.py:217, in Houston.raise_for_status_with_json(response)
212 """
213 Raises 400/500 error codes, attaching a json response to the
214 exception, if possible.
215 """
216 try:
--> 217 response.raise_for_status()
218 except requests.exceptions.HTTPError as e:
219 try:
File /opt/conda/lib/python3.11/site-packages/requests/models.py:1021, in Response.raise_for_status(self)
1016 http_error_msg = (
1017 f"{self.status_code} Server Error: {reason} for url: {self.url}"
1018 )
1020 if http_error_msg:
-> 1021 raise HTTPError(http_error_msg, response=self)
HTTPError: ('400 Client Error: BAD REQUEST for url: http://houston/zipline/backtests/Growth_Factor_Strategy?start_date=2009-01-01&end_date=2025-01-01&progress=M', {'status': 'error', 'msg': 'the system killed the worker handling the request, likely an Out Of Memory error; please add more memory or try a smaller request'})
Thanks Brian.