Skip to content

Commit c8bd585

Browse files
author
JK_Lu
committed
FEAT:Enhance BlockingScheduler with configurable wait_seconds parameter
1 parent 8be30a0 commit c8bd585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apscheduler/schedulers/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def _process_jobs(self):
12551255
else:
12561256
now = datetime.now(self.timezone)
12571257
wait_seconds = min(
1258-
max((next_wakeup_time - now).total_seconds(), 0), TIMEOUT_MAX
1258+
max((next_wakeup_time - now).total_seconds(), 0), self.max_timeout
12591259
)
12601260
self._logger.debug(
12611261
"Next wakeup is due at %s (in %f seconds)",

0 commit comments

Comments
 (0)