You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is supposed to be compatible with Python 3.7 and above, however the name parameter was only introduced to the asyncio.create_task() function in Python 3.8 and this name parameter is used in the code to make debugging easier.
To Reproduce
Steps to reproduce the behavior:
Run the 5gms-application-server with Python 3.7
Exception shows extra "name" parameter is not understood.
Expected behavior
There should not be an exception when using Python 3.7.
Possible fixes
Change the minimum Python version to 3.8.
This would ensure that the minimum requirements are met for the name parameter, but may not be compatible with older OS distributions that don't have a more recent Python 3 version.
Remove the name parameter
makes task debugging a little harder due to the use of automatically generated task names.
Will make the code work with Python 3.7.
Detect the python version and only pass the name parameter if the version is 3.8 or above.
Adds a little more complexity to the code, best achieved by wrapping the asyncio.create_task() in a wrapper function and have different wrapper functions for python 3.7 and python 3.8+ which are chosen at start-up of the program.
Find a backward compatible way to achieve the same effect as using the name parameter.
Same code works on Python 3.7 upwards.
Code may be more complex, having extra steps when tasks are created in order to set the task name.
The text was updated successfully, but these errors were encountered:
Description
The code is supposed to be compatible with Python 3.7 and above, however the
name
parameter was only introduced to theasyncio.create_task()
function in Python 3.8 and thisname
parameter is used in the code to make debugging easier.To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should not be an exception when using Python 3.7.
Possible fixes
name
parameter, but may not be compatible with older OS distributions that don't have a more recent Python 3 version.name
parameter if the version is 3.8 or above.name
parameter.The text was updated successfully, but these errors were encountered: