Skip to content

Added wakeup sources to cf-reactor - #6452

Draft
nickanderson wants to merge 9 commits into
cfengine:masterfrom
nickanderson:cf-reactor-watch-methods
Draft

nickanderson wants to merge 9 commits into
cfengine:masterfrom
nickanderson:cf-reactor-watch-methods

Conversation

@nickanderson

@nickanderson nickanderson commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Lets cf-reactor wake a watcher as soon as its file changes instead of waiting for the next poll.

Merge together:
#6452
https://github.com/cfengine/enterprise/pull/1025
https://github.com/cfengine/nova/pull/2745

@cf-bottom

Copy link
Copy Markdown

Thanks for submitting a PR! Maybe @larsewi can review this?

@nickanderson
nickanderson force-pushed the cf-reactor-watch-methods branch 5 times, most recently from 97c8808 to 9bf50d9 Compare November 1, 2026 02:56
@nickanderson

Copy link
Copy Markdown
Member Author

@cf-bottom jenkins please

@cf-bottom

Copy link
Copy Markdown

@nickanderson
nickanderson force-pushed the cf-reactor-watch-methods branch 2 times, most recently from 03066ee to 0b49892 Compare November 1, 2026 05:50
@nickanderson nickanderson changed the title Added watch methods to cf-reactor Added wakeup sources to cf-reactor Nov 1, 2026
@nickanderson

Copy link
Copy Markdown
Member Author

@cf-bottom jenkins please

@cf-bottom

Copy link
Copy Markdown

Stepping the system clock back postponed every watcher check by the
size of the step.

Ticket: TBD
Changelog: Title
The new wakeup_sources attribute of when bodies lists, in order of
preference, how a watcher is woken up before its interval. The methods
other than polling are provided by the Enterprise extension; without it,
cf-reactor polls. Polling at the interval continues underneath every
method. Without wakeup_sources, the first available method is used.

Ticket: TBD
Changelog: Title
Without these, a confined cf-reactor falls back to polling.

Changelog: None
Ticket: TBD
…dows

A file in a directory opened without sharing no longer looks deleted,
a watcher whose check fails is kept and checked again within a second,
and \\?\ prefixes and trailing separators are stripped before checking.

Changelog: None
Ticket: TBD
Changelog: None
Ticket: TBD
@nickanderson
nickanderson force-pushed the cf-reactor-watch-methods branch from 0b49892 to c372001 Compare November 9, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants