crossbario / crossbario/autobahn-python
Auto-retry for calls
Open
Nobody has claimed this yet.
feature
needs-discussion
wamp
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 768
- PR merge metrics
- No merged PRs in 30d
Description
Provide an easy to use mechanism for auto-retrying WAMP calls:
result = await session.call('com.example.proc1', 2, 3,
options=CallOptions(retry_delay=1, max_retries=120))
This will automatically retry the call (after waiting 1s) when running into a wamp.error.no_such_procedure error (but only that error).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the session.call entry point and the CallOptions interface shown in the issue. Determine where wamp.error.no_such_procedure is handled and how delayed retries and max_retries fit that flow. Done means calls retry only for that error, wait the configured delay, and stop at the configured retry limit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100