Skip to content

Commit

Permalink
PAPP-31540: Feature Change - Make query run in the next on_poll cycle…
Browse files Browse the repository at this point in the history
…, if it fails because of corrupt timestamp
  • Loading branch information
ishans-crest committed Jan 10, 2024
1 parent 9c67650 commit 6b1ece3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions splunk_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,11 +920,7 @@ def _on_poll(self, param): # noqa: C901
self.debug_print("The value of 'start_time' parameter {} is not a valid epoch time. Re-invoking api without start_time".format(
search_params.get("index_earliest")))
self._state['start_time'] = None
search_params.pop("index_earliest")
ret_val = self._run_query(search_query, action_result, kwargs_create=search_params, parse_only=po)
if phantom.is_fail(ret_val):
self.save_progress(action_result.get_message())
return action_result.set_status(phantom.APP_ERROR)
return action_result.set_status(phantom.APP_ERROR)
else:
self.save_progress(action_result.get_message())
return action_result.set_status(phantom.APP_ERROR)
Expand Down

0 comments on commit 6b1ece3

Please sign in to comment.