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

[Question] How to Determine Dispatch Success When Manually Dispatching Events? #515

Open
ari-github opened this issue Jun 25, 2024 · 4 comments

Comments

@ari-github
Copy link

I need to manually dispatch events due to certain constraints, which I have implemented by setting the DispatchInterval to -1 and tracker.dispatchBlocking(). I am currently dispatching events using a job service.

My question is: how can I determine if a dispatch attempt has failed in order to implement a retry mechanism?

Thank you for your assistance!

@ari-github ari-github changed the title How to Determine Dispatch Success When Manually Dispatching Events? [Question] How to Determine Dispatch Success When Manually Dispatching Events? Jun 25, 2024
@hannesa2
Copy link
Collaborator

Hi, do you have an idea, how to force this error ? Best by a test

@ari-github
Copy link
Author

Thank you for your response. I apologize, but I didn't fully understand what you meant. My question is: when using the manual dispatch mechanism, how can I determine if the dispatch failed, similar to how it is handled in the default dispatcher?

I appreciate your help!

@hannesa2
Copy link
Collaborator

how can I determine if the dispatch failed

I search a way to force a failed dispatch, to have a reproduceable workflow for development

@ari-github
Copy link
Author

I am reproducing the error by setting the tracker.dispatchTimeout to 1, so the request to the server always fails within this short time.

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

No branches or pull requests

2 participants