File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## 1.2.0 - 2024-07-23
3
+ ## 1.2.0 - 2024-07-25
4
4
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.
7
7
8
8
## 1.1.0 - 2024-07-01
9
9
Original file line number Diff line number Diff line change @@ -588,9 +588,13 @@ def reschedule(
588
588
589
589
Workers can use this method to "drop" a work unit in case of
590
590
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.
592
594
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.
594
598
595
599
Parameters
596
600
----------
You can’t perform that action at this time.
0 commit comments