Skip to content

Commit

Permalink
adding an event so we can exit early if requested
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Dec 5, 2024
1 parent 94d3a65 commit a7ce1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pioreactor/background_jobs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ def sneak_in(ads_interval: float, post_delay: float, pre_delay: float) -> None:

self._event_is_dodging_od.wait(
ads_interval - self.OD_READING_DURATION - (post_delay + pre_delay) - action_after_duration
)
) # we use an Event here to allow for quick stopping of the timer.

if self.state != self.READY:
return
Expand Down

0 comments on commit a7ce1d6

Please sign in to comment.