From b24219fe9163c824ec19d599f6e7ed6f86984a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Bieli=C5=84ski?= Date: Mon, 9 Sep 2024 14:08:43 +0200 Subject: [PATCH] Adding TODO --- LICENSE | 2 +- splunk_connector.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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