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

Support timeout for commands #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antonag32
Copy link

Commands can now be stopped after the specified timeout. The default behaviour of no timeouts is kept the same. Users wanting to opt into this feature must set a new DefaultRunner with properly set values.

Related to #70.

Commands can now be stopped after the specified timeout. The default
behaviour of no timeouts is kept the same. Users wanting to opt into
this feature must set a new DefaultRunner with properly set values.

Related to mistifyio#70.
@antonag32
Copy link
Author

Hello @mmlb, this is the implementation I asked about. What do you think? The original PR had comments about Send and Receive, I have not used those ZFS commands but I think users can choose for themselves whether to timeout said commands or not?

Tried to go for something similar like httpclient or slog which have a default client/logger and users can override them. Ideally instead of overwriting the default they could create a custom one and use it but that would involve bigger changes and I wanted to keep it simple for starters.

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.

1 participant