Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task destroyed but it is pending! #1873

Closed
AnonymousRendezvous opened this issue Apr 21, 2024 · 4 comments
Closed

Task destroyed but it is pending! #1873

AnonymousRendezvous opened this issue Apr 21, 2024 · 4 comments
Assignees
Labels
bug Something isn't working stale

Comments

@AnonymousRendezvous
Copy link

Bug description

Task was destroyed but it is pending!
task: <Task pending name='Task-11' coro=<AsyncCurl._force_timeout() done, defined at C:\Python311\Lib\site-packages\curl_cffi\aio.py:177> wait_for=>

Screenshots

def chat(finalpayload):
    client = Client()
    response = client.chat.completions.create(
        model = "airoboros-70b",
        messages=[{"role": "user", "content": finalpayload}]
    )
    print(response.choices[0].message.content)

When running

chat(finalpayload)

The above "task is destroyed but it is pending" error occurs.
This error has also occured with or without wrapping the reponse in functions or threading.

Environment
Vscode, python 3.10.0

Additional context
I have tried resolving this error with asyncio and proper shutdown of threading but the error still remains even without threading i.e. invoking a normal response.

@AnonymousRendezvous AnonymousRendezvous added the bug Something isn't working label Apr 21, 2024
Copy link

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

@github-actions github-actions bot added the stale label Apr 29, 2024
@AnonymousRendezvous
Copy link
Author

Any help is much appreciated in solving this issue.

@github-actions github-actions bot removed the stale label May 1, 2024
Copy link

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

@github-actions github-actions bot added the stale label May 11, 2024
Copy link

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants