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

Checking if function failed before deciding to progress checkpointer #1

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

xzuttz
Copy link
Owner

@xzuttz xzuttz commented Jun 3, 2020

When a function app fails internally, the EventHubTrigger will throw away events, because the exception is treated as user code.

See:

Azure/azure-webjobs-sdk#2432
Azure/azure-functions-host#5240

This PR prevents events getting thrown away, by not progressing the checkpointer in case of exceptions. Code assumes, that the user will handle user exceptions manually in the Run function.

Code should be refactored to allow the user to choose the flow, in host.json or the local settings file.

MyGet package for this branch:

https://www.myget.org/feed/xzuttz/package/nuget/Microsoft.Azure.WebJobs.Extensions.EventHubs

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