dagster-postgres 0.21.13__tar.gz → 0.21.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dagster-postgres might be problematic. Click here for more details.
- {dagster-postgres-0.21.13/dagster_postgres.egg-info → dagster-postgres-0.21.14}/PKG-INFO +1 -1
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/event_log/event_log.py +13 -1
- dagster-postgres-0.21.14/dagster_postgres/version.py +1 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14/dagster_postgres.egg-info}/PKG-INFO +1 -1
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/requires.txt +1 -1
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/setup.py +1 -1
- dagster-postgres-0.21.13/dagster_postgres/version.py +0 -1
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/LICENSE +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/MANIFEST.in +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/README.md +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/__init__.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/alembic/alembic.ini +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/event_log/__init__.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/py.typed +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/run_storage/__init__.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/run_storage/run_storage.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/schedule_storage/__init__.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/schedule_storage/schedule_storage.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/storage.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/utils.py +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/SOURCES.txt +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/dependency_links.txt +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/not-zip-safe +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/top_level.txt +0 -0
- {dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/setup.cfg +0 -0
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/event_log/event_log.py
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
from
|
|
1
|
+
from contextlib import contextmanager
|
|
2
|
+
from typing import Any, ContextManager, Iterator, Mapping, Optional, Sequence
|
|
2
3
|
|
|
3
4
|
import dagster._check as check
|
|
4
5
|
import sqlalchemy as db
|
|
@@ -287,6 +288,17 @@ class PostgresEventLogStorage(SqlEventLogStorage, ConfigurableClass):
|
|
|
287
288
|
def index_connection(self) -> ContextManager[Connection]:
|
|
288
289
|
return self._connect()
|
|
289
290
|
|
|
291
|
+
@contextmanager
|
|
292
|
+
def index_transaction(self) -> Iterator[Connection]:
|
|
293
|
+
"""Context manager yielding a connection to the index shard that has begun a transaction."""
|
|
294
|
+
with self.index_connection() as conn:
|
|
295
|
+
if conn.in_transaction():
|
|
296
|
+
yield conn
|
|
297
|
+
else:
|
|
298
|
+
conn = conn.execution_options(isolation_level="READ COMMITTED") # noqa: PLW2901
|
|
299
|
+
with conn.begin():
|
|
300
|
+
yield conn
|
|
301
|
+
|
|
290
302
|
def has_table(self, table_name: str) -> bool:
|
|
291
303
|
return bool(self._engine.dialect.has_table(self._engine.connect(), table_name))
|
|
292
304
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.21.14"
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/requires.txt
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
dagster==1.5.
|
|
1
|
+
dagster==1.5.14
|
|
2
2
|
psycopg2-binary
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.21.13"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/event_log/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/run_storage/__init__.py
RENAMED
|
File without changes
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/run_storage/run_storage.py
RENAMED
|
File without changes
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres/schedule_storage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{dagster-postgres-0.21.13 → dagster-postgres-0.21.14}/dagster_postgres.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|