File tree 2 files changed +2
-10
lines changed
localstack-core/localstack/services/lambda_ 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,6 @@ def start(self):
103
103
)
104
104
self ._poller_thread .start ()
105
105
106
- def update (self ):
107
- with self ._state_lock :
108
- self .current_state = EsmState .UPDATING
109
- self .state_transition_reason = self .user_state_reason
110
- self .start ()
111
-
112
106
def stop (self ):
113
107
with self ._state_lock :
114
108
self .enabled = False
Original file line number Diff line number Diff line change @@ -2155,9 +2155,6 @@ def update_event_source_mapping_v2(
2155
2155
"The resource you requested does not exist." , Type = "User"
2156
2156
) # TODO: test?
2157
2157
2158
- if old_event_source_mapping ["State" ] == EsmState .UPDATING :
2159
- raise ResourceConflictException ("Already updating" , Type = "User" )
2160
-
2161
2158
# normalize values to overwrite
2162
2159
event_source_mapping = old_event_source_mapping | request_data
2163
2160
@@ -2202,7 +2199,8 @@ def update_event_source_mapping_v2(
2202
2199
2203
2200
# We should stop() the worker since the delete() will remove the ESM from the state mapping.
2204
2201
esm_worker .stop ()
2205
- updated_esm_worker .start ()
2202
+ # This will either create an EsmWorker in the CREATING state if enabled. Otherwise, the DISABLING state is set.
2203
+ updated_esm_worker .create ()
2206
2204
2207
2205
return {** event_source_mapping , ** temp_params }
2208
2206
You can’t perform that action at this time.
0 commit comments