After uploading the code to generate pdfs of sa_summary, and restarting gunicorn, pdf generation works as long as the terminal is open. Closing the connection to the remote server causes a server error, with the following output in the logs:
Internal Server Error: /sa_summary_pdf/2/
Traceback (most recent call last):
File "/srv/projects/opencompetencies/venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/srv/projects/opencompetencies/competencies/views.py", line 82, in sa_summary_pdf
print('Generating pdf of sa_summary...')
OSError: [Errno 5] Input/output error
After uploading the code to generate pdfs of sa_summary, and restarting gunicorn, pdf generation works as long as the terminal is open. Closing the connection to the remote server causes a server error, with the following output in the logs:
This is a more specific reticketing of #120.