Skip to content

Conversation

@bxbach732
Copy link
Collaborator

Hi, I've added a way to guarantee that the user get a fresh session on page load: the page will call the get endpoint in the router file to check whether the session id is already in the session dictionary or not. Also, I've added the age for the session as 3600 seconds. Could you take a look to check if I missed something or got something wrong. Thanks!

@bxbach732 bxbach732 requested a review from tpfau September 16, 2025 09:09
):
sessionID = session.id
if sessionID in sessions:
queue_handler.remove_response_queue(sessionID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend calling

Suggested change
queue_handler.remove_response_queue(sessionID)
queue_handler.clear_session(sessionID)

Also, I would put this into the task_router as a "/start" endpoint (corresponding to "/finish").

And, it would probably be good, if we ensure, that other endpoints don't work if there is no session, with only this endpoint creating sessions. This is not strictly necessary, but would make sure, that all Tasks act somewhat similar.

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

Successfully merging this pull request may close these issues.

3 participants