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

Add call_activity_with_retry to DurableOrchestrationContext class #486

Open
nickholt15 opened this issue Feb 22, 2024 · 0 comments
Open
Labels
Enhancement Feature requests. P2 Priority 2

Comments

@nickholt15
Copy link

nickholt15 commented Feb 22, 2024

💡 Feature description
The DurableOrchestrationContext class has both a call_activity_with_retry method and a call_sub_orchestrator_with_retry method. Often times the call_http method fails for unknown and external reasons. Adding a call_http method that includes an option to retry a specified number of times would go a long way to improve the reliability of durable orchestrations. Adding an exponential backoff would be a nice plus.

💭 Describe alternatives you've considered
The obvious alternative is to wrap your API call into an activity function and use the call_activity_with_retry method. Creating new activity functions for each API call tends to bloat projects though. The v2 programming model may address this concern though - I'm still stuck on the v1 programming model for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Feature requests. P2 Priority 2
Projects
None yet
Development

No branches or pull requests

2 participants