We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2e68c3 commit 294807dCopy full SHA for 294807d
linear/client.py
@@ -4,7 +4,7 @@
4
5
from dotenv import load_dotenv
6
from gql import Client
7
-from gql.transport.aiohttp import AIOHTTPTransport
+from gql.transport.requests import RequestsHTTPTransport
8
9
load_dotenv()
10
@@ -53,7 +53,8 @@ def _get_client():
53
client = getattr(_thread_local, "client", None)
54
if client is None:
55
headers = {"Authorization": os.getenv("LINEAR_API_KEY")}
56
- transport = AIOHTTPTransport(
+ # Use the requests transport to avoid asyncio loop cleanup issues on exit.
57
+ transport = RequestsHTTPTransport(
58
url="https://api.linear.app/graphql",
59
headers=headers,
60
)
0 commit comments