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

Skip sensor runs from same tick that use same run key #27990

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smackesey
Copy link
Collaborator

@smackesey smackesey commented Feb 21, 2025

Summary & Motivation

Sensors are supposed to skip subsequent RunRequests that have the same run key as a previous run. This works across ticks but not for RunRequests within the same tick-- currently two runs will be launched with the same key from within the same tick.

This PR amends the sensor daemon logic to ensure that sensor RunRequests with the same run key are handled the same as they are across runs.

User @Gw1p submitted an initial attempt here at fixing this but an alternative approach was required to ensure identical handling of cross-tick and same-tick duplicates.

How I Tested These Changes

New unit test.

Changelog

Fixed a bug where a sensor emitting multiple RunRequests with the same run key within a single tick would cause two runs with the same key to be executed. Now only the first run will be executed.

Co-authored by: Anton [email protected]

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@smackesey smackesey marked this pull request as ready for review February 21, 2025 21:58
@smackesey smackesey requested a review from gibsondan February 21, 2025 22:04
@smackesey smackesey changed the title Skip sensors runs from same tick that use same key Skip sensor runs from same tick that use same run key Feb 21, 2025
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.

1 participant