Skip to content

Commit d60be24

Browse files
committed
6.0.0.3
1 parent b00924d commit d60be24

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

pynamodb_mate/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "6.0.0.2"
1+
__version__ = "6.0.0.3"
22

33
if __name__ == "__main__": # pragma: no cover
44
print(__version__)

pynamodb_mate/patterns/status_tracker/impl.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ class StatusNameEnum(enum.Enum):
179179
pending = "pending"
180180
in_progress = "in_progress"
181181
failed = "failed"
182-
succeeded = "success"
183-
ignored = "ignore"
182+
succeeded = "succeeded"
183+
ignored = "ignored"
184184

185185

186186
class BaseStatusEnum(int, enum.Enum):
@@ -799,6 +799,10 @@ def start(
799799
)
800800
if more_pending_status is None:
801801
more_pending_status = cls.config.more_pending_status
802+
elif isinstance(more_pending_status, int):
803+
more_pending_status = [more_pending_status]
804+
else: # pragma: no cover
805+
pass
802806
if more_pending_status:
803807
for status in more_pending_status:
804808
is_ready_to_start |= cls.status == status

release-history.rst

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ Backlog
1717
**Miscellaneous**
1818

1919

20+
6.0.0.3 (2024-06-06)
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
**Bugfixes**
23+
24+
- Fix a bug that the :meth:`pynamodb_mate.patterns.status_tracker.impl.BaseStatusTracker.start` will faile when ``more_pending_status`` argument is an integer.
25+
26+
2027
6.0.0.2 (2024-06-05)
2128
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2229
**Minor Improvements**

tests/patterns/test_status_tracker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def _test_1_happy_path(self):
314314
utc_now = get_utc_now()
315315
time.sleep(0.001)
316316

317-
with Step2.start(task_id, debug=False) as exec_ctx:
317+
with Step2.start(task_id, more_pending_status=Step1StatusEnum.succeeded.value, debug=False) as exec_ctx:
318318
exec_ctx.set_data({"version": 2})
319319

320320
# check the in-memory updated task

0 commit comments

Comments
 (0)