Skip to content

Fix typos in docstring and variables. #80

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

Merged
merged 3 commits into from
Apr 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions taskiq_redis/list_schedule_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@


class ListRedisScheduleSource(ScheduleSource):
"""Schecule source based on arrays."""
"""Schedule source based on arrays."""

def __init__(
self,
url: str,
prefix: str = "schedule",
max_connection_pool_size: Optional[int] = None,
serializer: Optional[TaskiqSerializer] = None,
bufffer_size: int = 50,
buffer_size: int = 50,
skip_past_schedules: bool = False,
**connection_kwargs: Any,
) -> None:
super().__init__()
self._prefix = prefix
self._buffer_size = bufffer_size
self._buffer_size = buffer_size
self._connection_pool = BlockingConnectionPool.from_url(
url=url,
max_connections=max_connection_pool_size,
Expand Down Expand Up @@ -185,11 +185,11 @@ async def get_schedules(self) -> List["ScheduledTask"]:
async with Redis(connection_pool=self._connection_pool) as redis:
buffer = []
crons = await redis.lrange(self._get_cron_key(), 0, -1) # type: ignore
logger.debug("Got cron scheduleds: %s", crons)
logger.debug("Got %d cron schedules", len(crons))
if crons:
buffer.extend(crons)
timed.extend(await redis.lrange(self._get_time_key(current_time), 0, -1)) # type: ignore
logger.debug("Got timed scheduleds: %s", crons)
logger.debug("Got %d timed schedules", len(timed))
if timed:
buffer.extend(timed)
while buffer:
Expand Down