I tried using the following:
async def run_task_checks():
#my normal code
async def hello(event, context):
loop = asyncio.get_event_loop()
future = asyncio.ensure_future(run_task_checks())
loop.run_until_complete(future)
But I get the error: “RuntimeWarning: coroutine ‘hello’ was never awaited” - not sure how to proceed. Any help greatly appreciated.