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

Run a watchdog timer in watchers #105

Closed
fvictorio opened this issue Oct 18, 2018 · 1 comment
Closed

Run a watchdog timer in watchers #105

fvictorio opened this issue Oct 18, 2018 · 1 comment
Assignees

Comments

@fvictorio
Copy link

The watchers of a deployed bridge instance have had issues in which they stop listening. We are not sure about what's happening, but to alleviate the issue we need to add a watchdog that kills the process if the watcher function doesn't return after a given amount of time.

Killing the process has an edge case where it causes a problem: if it's killed after the jobs are sent to rabbit but before the last processed block is updated in redis, the transactions involved may get sent twice. This is very unlikely, and the only downside is making the validators waste gas, so it's acceptable for now.

@akolotov
Copy link
Collaborator

Addressed in #106

@ghost ghost removed the review label Oct 26, 2018
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