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

allow for closing stuff in beacons #36808

Merged
merged 1 commit into from
Oct 14, 2016
Merged

Conversation

gtmanfred
Copy link
Contributor

@gtmanfred gtmanfred commented Oct 5, 2016

What does this PR do?

allow for closing file handlers in the inotify beacon when disable_during_state_run is enabled.

@gtmanfred gtmanfred added the ZD The issue is related to a Zendesk customer support ticket. label Oct 5, 2016
@cachedout
Copy link
Contributor

Why not just have the beacon check for a running state? This feels like a bunch of unnecessary overhead and complexity.

@cachedout cachedout added the Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged label Oct 6, 2016
@gtmanfred
Copy link
Contributor Author

So if we were to do that, we would have to move handling of 'disable_during_state_run' to each beacon, where as right now we are skipping running the beacon function at all if this setting is set.

Actually, another way to do it would be to check disable_during_state_run until after the beacon runs, and then just throw away any events that would be returned instead of not running the beacon, that would solve both problems?

Like the filehandler for inotify
@thatch45
Copy link
Contributor

Oh, this is far better, it would be bad if the beacons all hit the disk checking for whether a state run was going all the time

@gtmanfred gtmanfred deleted the beacons branch February 24, 2017 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged ZD The issue is related to a Zendesk customer support ticket.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants