Brian Newman
09/25/2023, 9:31 PMasync with httpx.AsyncClient(follow_redirects=True) as client:
auth_result = await get_auth(client=client)
project_status_inactive, project_data = await get_project_by_name(
client=client,
auth=auth_result,
project_name="test_project",
)
<http://logger.info|logger.info>(f"PROJECT STATUS: {project_status_inactive}")
The issue is after the first function(task) runs the client is being closed. How can I pass the client to many tasks?
100758.489 | ERROR | Flow run 'interesting-echidna' - Finished in state Failed('Flow run encountered an exception. RuntimeError: Event loop is closed')