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

Prevent double delays and add some docs #411

Merged
merged 2 commits into from
Apr 13, 2023
Merged

Prevent double delays and add some docs #411

merged 2 commits into from
Apr 13, 2023

Conversation

svanharmelen
Copy link
Contributor

I just noticed that reusing delay for the poll interval will cause an unintended double delay (first the delay is used as interval, and when a change happened delay is used to wait before building after the change).

Adding a dedicated poll_interval parameter allows people to prevent that and apply a more fine-grained configuration.

Also added the new params to the example toml file with some docs which I forgot to do in the initial PR and "fixed" a few linter warnings (if wanted I can of course remove that commit from the PR!).

Thanks again!

I just noticed that reusing `delay` for the poll interval will cause an unintended double delay (first the delay is used as interval, and when a change happened delay is used to wait before building after the change).

Adding a dedicated `poll_interval` parameter allows people to prevent that and apply a more fine-grained configuration.

Also added the new params to the example toml file with some docs which I forgot to do in the initial PR.
runner/engine_test.go Show resolved Hide resolved
runner/engine_test.go Show resolved Hide resolved
@cosmtrek
Copy link
Collaborator

Thanks for the contribution. I've reviewed the code and left some comments.

@cosmtrek cosmtrek merged commit 6e01a68 into air-verse:master Apr 13, 2023
@svanharmelen
Copy link
Contributor Author

Thanks! If possible, could you maybe set a new tag so we can use that instead of @latest?

@svanharmelen
Copy link
Contributor Author

Just noticed the tag, thanks for being so responsive and helpful 👍🏻 Much appreciated!

@silverwind
Copy link
Contributor

Sounds this may fix what I've seen in #343 (comment).

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.

None yet

3 participants