Skip to content

Ignore duplicate CreateSIPParticipant request from sdk retry - #750

Open
cnderrauber wants to merge 1 commit into
mainfrom
retry_ideompotence
Open

Ignore duplicate CreateSIPParticipant request from sdk retry#750
cnderrauber wants to merge 1 commit into
mainfrom
retry_ideompotence

Conversation

@cnderrauber

Copy link
Copy Markdown
Contributor

No description provided.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@hechen-eng hechen-eng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We don't dedup for CreateSIPParticipant today and I think it's a gap we need to fill. There are a couple problems with this PR though:

  1. not tested.. e.g. is req.Token enough for GetParticipant?
  2. what if WsUrl is missing?
  3. do we want to create a new LiveKitAPI per call?
  4. no timeouts
  5. what if a retry arrives before we can see the participant?
  6. waitUntilAnswered may be broken since it returns immeidately
  7. ...

I think dedup should be handled by sip itself, not querying the ws url to get participant. They are two separate systems and there are consistency issues.

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.

2 participants