Skip to content

Commit a49a3e2

Browse files
committed
Set docstrings, prepare for release
1 parent b47a6fd commit a49a3e2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Changelog
22

3-
## 1.2.0 - 2024-07-23
3+
## 1.2.0 - 2024-07-25
44

5-
* The `reschedule()` method have an optional parameter to decrease the ttl if set to True (False by default).
6-
* The `add()` and `addMany()` methods set the can_start_at by default to the current time of the database clock for consistency.
5+
* The `reschedule()` method has an optional parameter to decrease the TTL if set to True (False by default).
6+
* The `add()` and `add_many()` methods set the `can_start_at` by default to the current time of the database clock, not Python, for consistency.
77

88
## 1.1.0 - 2024-07-01
99

postgrestq/task_queue.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,13 @@ def reschedule(
588588
589589
Workers can use this method to "drop" a work unit in case of
590590
eviction (because of an external issue like terminating a machine
591-
by aws and not because of a failure).
591+
by AWS and not because of a failure).
592+
Rescheduled work units are immediately available for processing again,
593+
and unless decrease_ttl is set to True, the TTL is not modified.
592594
593-
This function can optionally modify the TTL.
595+
This function can optionally modify the TTL, setting decrease_ttl to
596+
True. This allows to handle a failure quickly without waiting the
597+
lease_timeout.
594598
595599
Parameters
596600
----------

0 commit comments

Comments
 (0)