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

Fix for #1137. Have wait_until_next return a boolean based on if housekeeping is needed or not. Fix other flowcbs accordingly #1140

Closed
wants to merge 1 commit into from

Conversation

andreleblanc11
Copy link
Member

@andreleblanc11 andreleblanc11 commented Jul 26, 2024

This fixes #1137. I tested the code with scheduled_interval set and scheduled_minute/hour and they both looked to be working correctly. The housekeeping doesn't run the gather retrieval anymore.

The problem is the gather needs to know if housekeeping is running or not to exit. I added return values from wait_until_next to accomplish this.

There's already a scheduled flow plugin http_with_metadata that has a fix inside of the plugin code to avoid this, but it isn't universal.

# for next expected post
self.wait_until_next()
if self.stop_requested or self.housekeeping_needed:
return (False, [])

…ekeeping is needed or not. Fix other flowcbs accordingly
Copy link

github-actions bot commented Jul 26, 2024

Test Results

246 tests   245 ✅  1m 8s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit 168d93e.

♻️ This comment has been updated with latest results.

@petersilva
Copy link
Contributor

after looking it over together we think the problem is in the scheduled plugins (in sr3-plugins repo) not implementing a guard for housekeeping_needed... so this PR is not needed.

@petersilva petersilva closed this Jul 29, 2024
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.

scheduled_interval is being ignored by housekeeping intervals
2 participants