Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix beacons not sent when beacon_refresh called#68549

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Ch3LL wants to merge1 commit intosaltstack:3006.x
base:3006.x
Choose a base branch
Loading
fromCh3LL:beacon_int

Conversation

@Ch3LL
Copy link
Contributor

What issues does this PR fix or reference?

Fixes:#68548

Previous Behavior

The interval_map would get re-set to 0 whenever we called beacons_refresh. If beacons_refresh is continually getting called for example when running a state run then the beacons would never get sent.

New Behavior

interval_map is preserved if set and the beacon still gets sent when running a state run (or any other situation that refreshes beacon)

bdrx312 reacted with thumbs up emoji
@Ch3LLCh3LL requested a review froma team as acode ownerDecember 17, 2025 16:39
Comment on lines 2610 to 2611
self.beacons=salt.beacons.Beacon(self.opts,self.functions)
self.beacons.interval_map=old_interval_map
Copy link
Contributor

@bdrx312bdrx312Dec 17, 2025
edited
Loading

Choose a reason for hiding this comment

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

I recommend updating the Beacon init to accept an interval map and pass it in instead of setting the variable afterwards. i.e. something like

def__init__(self,opts,functions,interval_map=None):importsalt.loaderself.opts=optsself.functions=functionsself.beacons=salt.loader.beacons(opts,functions)self.interval_map=interval_mapor {}

Ch3LL reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@bdrx312bdrx312bdrx312 left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Ch3LL@bdrx312

[8]ページ先頭

©2009-2025 Movatter.jp