This repository was archived by the owner on Nov 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ class ExecutionState(NamedTuple):
2020 # alert_name: str
2121 execution_time : datetime
2222
23-
2423 def new (executed_at : Optional [datetime ]= None ) -> 'ExecutionState' :
2524 '''Construct a new `ExecutionState` representing the execution of an
2625 alert at a specific time.
@@ -41,7 +40,6 @@ class Record(NamedTuple):
4140 identifier : Optional [str ]
4241 state : ExecutionState
4342
44-
4543 def new (state : ExecutionState ) -> 'Record' :
4644 '''Construct a new `Record` that, when stored, will result in a new
4745 document being inserted into ElasticSearch.
Original file line number Diff line number Diff line change @@ -1195,7 +1195,6 @@ def setup(self):
11951195 self .es_client .delete_index (index , True )
11961196 self .es_client .create_index (index )
11971197
1198- journal = geomodel .wrap_journal (self .es_client )
11991198 exec_state_store = execution .store (self .es_client )
12001199
12011200 def state (username , locs ):
@@ -1207,7 +1206,7 @@ def locality(cfg):
12071206 record = execution .Record .new (execution .ExecutionState .new (
12081207 toUTC (datetime .now ()) - timedelta (minutes = 2 )))
12091208 exec_state_store (record , index )
1210-
1209+
12111210 self .refresh (index )
12121211
12131212 def teardown (self ):
You can’t perform that action at this time.
0 commit comments