Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/examples/extending/schedule_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def add_schedule(self, schedule: "ScheduledTask") -> None:
print("New schedule added:", schedule)

# This method is completely optional, but if you want to support
# schedule cancelation, you must implement it.
# schedule cancellation, you must implement it.
async def delete_schedule(self, schedule_id: str) -> None:
print("Deleting schedule:", schedule_id)

Expand Down
8 changes: 4 additions & 4 deletions docs/guide/state-and-deps.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ async def get_transaction(
) -> AsyncGenerator[Transaction, None]:
trans = db_driver.begin_transaction():
try:
# Here we give transaction to our dependant function.
# Here we give transaction to our dependent function.
yield trans
# If exception was found in dependant function,
# If exception was found in dependent function,
# we rollback our transaction.
except Exception:
await trans.rollback()
Expand All @@ -297,9 +297,9 @@ async def get_transaction(
) -> AsyncGenerator[Transaction, None]:
trans = db_driver.begin_transaction():
try:
# Here we give transaction to our dependant function.
# Here we give transaction to our dependent function.
yield trans
# If exception was found in dependant function,
# If exception was found in dependent function,
# we rollback our transaction.
except Exception:
await trans.rollback()
Expand Down
2 changes: 1 addition & 1 deletion taskiq/abc/schedule_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def delete_schedule(self, schedule_id: str) -> None:
"""
Method to delete schedule by id.

This is useful for schedule cancelation.
This is useful for schedule cancellation.

:param schedule_id: id of schedule to delete.
"""
Expand Down
Loading