HDFGroup / hsds

Cloud-native, service based access to HDF data
https://www.hdfgroup.org/solutions/hdf-kita/
Apache License 2.0
127 stars 52 forks source link

doHealthCheck errors #154

Closed jreadey closed 2 years ago

jreadey commented 2 years ago

With the latest image, the doHealthCheck method is logging an error: ERROR> Unexpected AttributeError exception in doHealthCheck: type object '_asyncio.Task' has no attribute 'all_tasks'

I think this due to a change in Python 3.9 (from https://docs.python.org/3.8/library/asyncio-task.html?highlight=asyncio#asyncio.Task):

classmethod all_tasks(loop=None) Return a set of all tasks for an event loop.

By default all tasks for the current event loop are returned. If loop is None, the get_event_loop() function is used to get the current loop.

Deprecated since version 3.7, will be removed in version 3.9: Do not call this as a task method. Use the asyncio.all_tasks() function instead.

jreadey commented 2 years ago

This should be fixed in the above commit.