Skip to content

ENT-6451: Move periodic refresh out of policy - #3231

Open
victormlg wants to merge 1 commit into
cfengine:masterfrom
victormlg:cf-reactor.ProcessAPIEvents
Open

victormlg wants to merge 1 commit into
cfengine:masterfrom
victormlg:cf-reactor.ProcessAPIEvents

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

No description provided.

Ticket: ENT-6451
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg
victormlg force-pushed the cf-reactor.ProcessAPIEvents branch from 163d425 to da2cb18 Compare October 29, 2026 12:23
@victormlg
victormlg marked this pull request as ready for review October 29, 2026 12:38
@victormlg

Copy link
Copy Markdown
Contributor Author

The error is unrelated. Nightlies are missing packages for ubuntu 22

# @note Beginning with 3.20.0 the materialized_hosts_view_refresh CLI task no
# longer exists in Mission Portal, so this bundle does nothing.
{
@if before_version(3.20.0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 3.19?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larsewi
larsewi requested a review from nickanderson October 30, 2026 10:55

@nickanderson nickanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious why you chose a macro for this.

# @note Beginning with 3.20.0 the materialized_hosts_view_refresh CLI task no
# longer exists in Mission Portal, so this bundle does nothing.
{
@if before_version(3.20.0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a macro for this instead of adjusting a class expression?

you also have the functions related to these macros you could use to further constrain the context under which a promise runs.

e.g.

          if => or( cf_version_before( "3.18.2" ),
                    cf_version_at( "3.19" ) );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants