Skip to content

Commit 451b5ae

Browse files
authored
Merge pull request #5484 from khushboobhatia01/bkhushboo/5483
Fix etcd lock error
2 parents caacdfa + a19f8c6 commit 451b5ae

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

CHANGELOG.rst

+17-8
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,30 @@ Changelog
44
in development
55
--------------
66

7-
8-
3.6.0 - October 29, 2021
9-
------------------------
10-
117
Added
128
~~~~~
139

1410
* Added service degerestration on shutdown of a service. #5396
1511

1612
Contributed by @khushboobhatia01
1713

14+
* Added cancel/pause/resume requester information to execution context. #5459
15+
16+
Contributed by @khushboobhatia01
17+
18+
Fixed
19+
~~~~~
20+
21+
* Fixed regression caused by #5358. Use string lock name instead of object ID. #5484
22+
23+
Contributed by @khushboobhatia01
24+
25+
3.6.0 - October 29, 2021
26+
------------------------
27+
28+
Added
29+
~~~~~
30+
1831
* Added possibility to add new values to the KV store via CLI without leaking them to the shell history. #5164
1932

2033
* ``st2.conf`` is now the only place to configure ports for ``st2api``, ``st2auth``, and ``st2stream``.
@@ -28,10 +41,6 @@ Added
2841
Changed
2942
~~~~~~~
3043

31-
* Added cancel/pause/resume requester information to execution context. #5459
32-
33-
Contributed by @khushboobhatia01
34-
3544
* Modified action delete API to delete action files from disk along with backward compatibility.
3645

3746
From CLI ``st2 action delete <pack>.<action>`` will delete only action database entry.

st2common/st2common/services/executions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def update_execution(liveaction_db, publish=True, set_result_size=False):
196196
"""
197197
execution = ActionExecution.get(liveaction__id=str(liveaction_db.id))
198198

199-
with coordination.get_coordinator().get_lock(liveaction_db.id):
199+
with coordination.get_coordinator().get_lock(str(liveaction_db.id)):
200200
# Skip execution object update when action is already in completed state.
201201
if execution.status in action_constants.LIVEACTION_COMPLETED_STATES:
202202
LOG.debug(

0 commit comments

Comments
 (0)