Es-wait

Latest version: v0.9.4

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

8.15.1

Set optional es_client versions to same release
Added docker_tests/.kurl and http_ca.crt to .gitignore

All tests pass

0.9.4

Changes

The extremely rapid retry interval used when running PII tool integration tests sometimes resulted in no ILM phase data returned by the client.ilm.explain_lifecycle() API call, which would cause tests to fail.

This has been addressed.

Tests are passing in the PII tool with Docker again.

And there was much rejoicing.

0.9.3

Patch release addresses that the Task API is not yet GA and suppresses the warning that blocks execution.

diff
--- a/src/es_wait/task.py
+++ b/src/es_wait/task.py
-2,8 +2,10

import typing as t
import logging
+import warnings
from time import localtime, strftime
from dotmap import DotMap type: ignore
+from elasticsearch8.exceptions import GeneralAvailabilityWarning
from ._base import Waiter

if t.TYPE_CHECKING:
-72,6 +74,10 class Task(Waiter):

response = {}
try:
+ The Tasks API is not yet GA. We need to suppress the warning for now.
+ This is required after elasticsearch8>=8.16.0 as the warning is raised
+ from that release onward.
+ warnings.filterwarnings("ignore", category=GeneralAvailabilityWarning)
response = dict(self.client.tasks.get(task_id=self.task_id))
except Exception as err:
msg = (

0.9.2

Patch release. A lot of typing corrections.

Allow ILM phase waiting to catch any phase "above" or beyond `new` if you specify `new` as the phase to watch for.

0.9.1

Patch release. Removed 1 superfluous line of debug output.

0.9.0

Changes

Add **Index** health check class

This differs from the **Health** check class, which is cluster-wide.

This uses the `client.cat.indices` method to get ONLY the health status (`h='health'`) of 1 index, `format='json'`.


{'health': 'green'}


It can be `green`, `yellow`, or `red`.

This will _possibly_ work for `mount`, and other actions. TBD.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.