Skip to content

Commit

Permalink
Feature Change - Make query run in the next on_poll cycle, if it fail…
Browse files Browse the repository at this point in the history
…s because of corrupt timestamp
  • Loading branch information
ishans-crest committed Jan 11, 2024
1 parent 088238e commit 7d1c88e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions splunk_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,11 +919,10 @@ def _on_poll(self, param): # noqa: C901
if "Invalid index_earliest" in action_result.get_message():
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
return action_result.set_status(phantom.APP_ERROR)
del self._state['start_time']
else:
self.save_progress(action_result.get_message())
return action_result.set_status(phantom.APP_ERROR)
return action_result.set_status(phantom.APP_ERROR)

display = config.get('on_poll_display')
header_set = None
Expand Down

0 comments on commit 7d1c88e

Please sign in to comment.