diff --git a/LICENSE b/LICENSE index b7b3c69..12536c5 100644 --- a/LICENSE +++ b/LICENSE @@ -198,4 +198,4 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file + limitations under the License. diff --git a/splunk_connector.py b/splunk_connector.py index ef574f8..99e6085 100644 --- a/splunk_connector.py +++ b/splunk_connector.py @@ -1284,6 +1284,9 @@ def _run_query(self, search_query, action_result, attach_result=False, kwargs_cr while True: for attempt_count in range(0, RETRY_LIMIT): try: + # TODO: One possible infinite loop - while could never + # end as the job could be stuck in permanent "QUEUED" + # or other state. while not job.is_ready(): time.sleep(self.sleeptime_in_requests) pass