Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sourBz committed Jul 23, 2024
1 parent ce54414 commit 1166dcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions postgrestq/task_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def get(self) -> Tuple[
"""Get a task from the task queue (non-blocking).
This statement marks the next available task in the queue as
started (being processed) and returns its ID and task details. The query
uses a FOR UPDATE SKIP LOCKED clause to lock the selected
started (being processed) and returns its ID and task details.
The query uses a FOR UPDATE SKIP LOCKED clause to lock the selected
task so that other workers can't select the same task simultaneously.
After executing the query, the method fetches the result using
Expand Down Expand Up @@ -582,7 +582,7 @@ def _deserialize(self, blob: str) -> Any:
def reschedule(
self,
task_id: UUID,
decrease_ttl: Optional[bool]=False
decrease_ttl: Optional[bool] = False,
) -> None:
"""Move a task back from being processed to the task queue.
Expand Down

0 comments on commit 1166dcd

Please sign in to comment.