Skip to content

rework eventbus scheduled rule execution #9298

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

thrau
Copy link
Member

@thrau thrau commented Oct 5, 2023

Motivation

The key mechanism of the JobScheduler class was a 59.9 second wait event in a while true loop:

# This is a simple heuristic to cause the loop to run apprx every minute
# TODO: we should keep track of jobs execution times, to avoid duplicate executions
self._stop_event.wait(timeout=59.9)

We have an event-based scheduler utility that could be used for the JobScheduler, which will also make things easier for our time simulation project.

So this PR is both about cleaning up tech debt and making the JobScheduler more flexible.

Changes

  • Rework JobScheduler using the Scheduler utility
  • ... TODO

@thrau thrau force-pushed the rework-job-scheduler branch from c263b64 to f1d2eca Compare October 5, 2023 23:43
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 12m 20s ⏱️
2 245 tests 1 735 ✔️ 501 💤 9
2 246 runs  1 735 ✔️ 502 💤 9

For more details on these failures, see this check.

Results for commit f1d2eca.

@thrau thrau modified the milestones: Playground, 3.1 Nov 13, 2023
@thrau thrau force-pushed the rework-job-scheduler branch 2 times, most recently from 0cc7a77 to 29f9405 Compare December 27, 2023 20:02
@thrau thrau removed this from the 3.1 milestone Jan 23, 2024
@thrau thrau force-pushed the rework-job-scheduler branch from 29f9405 to c62a127 Compare January 31, 2024 22:58
@thrau thrau added this to the 3.3 milestone Feb 19, 2024
@alexrashed alexrashed modified the milestones: 3.3, 3.4 Mar 19, 2024
@alexrashed alexrashed modified the milestones: 3.4, Playground Apr 24, 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.

2 participants