autolab / Tango

Standalone RESTful autograding service
http://www.autolabproject.com/
Apache License 2.0
48 stars 60 forks source link

Refactor server.py to be compatible with Tornado v6+ #237

Closed 20wildmanj closed 1 year ago

20wildmanj commented 1 year ago

Tornado's web.asynchronous attribute was deprecated in Tornado v5.x and removed in x6.x, making a refactor to the server.py code necessary. server.py now uses asynchronous and code that uses native coroutines (e.g. async def, await). Some RequestHandlers were also made synchronous since they just do simple fetches of data.

I made the refactor mainly by going through the most recent Tornado user guide as well as reading through some example code.

Testing: Not the most comprehensive testing, but enough to check that nothing seems to break

damianhxy commented 1 year ago

Tornado v6.3+ no longer supports Python 3.7

Source: https://www.tornadoweb.org/en/stable/releases/v6.3.0.html