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

Feature request: Check if thread ID is active #554

Open
Eirmas opened this issue Oct 6, 2024 · 1 comment
Open

Feature request: Check if thread ID is active #554

Eirmas opened this issue Oct 6, 2024 · 1 comment

Comments

@Eirmas
Copy link

Eirmas commented Oct 6, 2024

I'm trying to prevent users from double texting. I see that this is something LangGraph Cloud handles, but I'm hoping that this could be something that would be possible to do in plain LangGraph.

Maybe I'm missing some documentation and it is possible? How can one check if a thread ID is currently being processed?

@jacoblee93
Copy link
Collaborator

There's a few strategies, one being adding some kind of queue mechanism in front of your graph:

https://langchain-ai.github.io/langgraph/cloud/how-tos/enqueue_concurrent/

There currently isn't yet an API for detecting this in the core LangGraph library though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants