dagster-postgres 0.23.2rc2__tar.gz → 0.23.2rc3__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.23.2rc2/dagster_postgres.egg-info → dagster-postgres-0.23.2rc3}/PKG-INFO +1 -1
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/event_log/event_log.py +7 -11
- dagster-postgres-0.23.2rc3/dagster_postgres/version.py +1 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3/dagster_postgres.egg-info}/PKG-INFO +1 -1
- dagster-postgres-0.23.2rc3/dagster_postgres.egg-info/requires.txt +2 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/setup.py +1 -1
- dagster-postgres-0.23.2rc2/dagster_postgres/version.py +0 -1
- dagster-postgres-0.23.2rc2/dagster_postgres.egg-info/requires.txt +0 -2
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/LICENSE +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/MANIFEST.in +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/README.md +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/__init__.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/alembic/alembic.ini +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/event_log/__init__.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/py.typed +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/run_storage/__init__.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/run_storage/run_storage.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/schedule_storage/__init__.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/schedule_storage/schedule_storage.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/storage.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/utils.py +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres.egg-info/SOURCES.txt +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres.egg-info/dependency_links.txt +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres.egg-info/not-zip-safe +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres.egg-info/top_level.txt +0 -0
- {dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/setup.cfg +0 -0
{dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/event_log/event_log.py
RENAMED
|
@@ -85,14 +85,11 @@ class PostgresEventLogStorage(SqlEventLogStorage, ConfigurableClass):
|
|
|
85
85
|
should_autocreate_tables, "should_autocreate_tables"
|
|
86
86
|
)
|
|
87
87
|
|
|
88
|
-
self._disposed = False
|
|
89
|
-
|
|
90
88
|
# Default to not holding any connections open to prevent accumulating connections per DagsterInstance
|
|
91
89
|
self._engine = create_engine(
|
|
92
90
|
self.postgres_url, isolation_level="AUTOCOMMIT", poolclass=db_pool.NullPool
|
|
93
91
|
)
|
|
94
|
-
|
|
95
|
-
self._event_watcher = SqlPollingEventWatcher(self)
|
|
92
|
+
self._event_watcher: Optional[SqlPollingEventWatcher] = None
|
|
96
93
|
|
|
97
94
|
self._secondary_index_cache = {}
|
|
98
95
|
|
|
@@ -344,6 +341,8 @@ class PostgresEventLogStorage(SqlEventLogStorage, ConfigurableClass):
|
|
|
344
341
|
) -> None:
|
|
345
342
|
if cursor and EventLogCursor.parse(cursor).is_offset_cursor():
|
|
346
343
|
check.failed("Cannot call `watch` with an offset cursor")
|
|
344
|
+
if self._event_watcher is None:
|
|
345
|
+
self._event_watcher = SqlPollingEventWatcher(self)
|
|
347
346
|
|
|
348
347
|
self._event_watcher.watch_run(run_id, cursor, callback)
|
|
349
348
|
|
|
@@ -357,16 +356,13 @@ class PostgresEventLogStorage(SqlEventLogStorage, ConfigurableClass):
|
|
|
357
356
|
return deserialize_value(cursor_res.scalar(), EventLogEntry) # type: ignore
|
|
358
357
|
|
|
359
358
|
def end_watch(self, run_id: str, handler: EventHandlerFn) -> None:
|
|
360
|
-
self._event_watcher
|
|
361
|
-
|
|
362
|
-
def __del__(self) -> None:
|
|
363
|
-
# Keep the inherent limitations of __del__ in Python in mind!
|
|
364
|
-
self.dispose()
|
|
359
|
+
if self._event_watcher:
|
|
360
|
+
self._event_watcher.unwatch_run(run_id, handler)
|
|
365
361
|
|
|
366
362
|
def dispose(self) -> None:
|
|
367
|
-
if
|
|
368
|
-
self._disposed = True
|
|
363
|
+
if self._event_watcher:
|
|
369
364
|
self._event_watcher.close()
|
|
365
|
+
self._event_watcher = None
|
|
370
366
|
|
|
371
367
|
def alembic_version(self) -> AlembicVersion:
|
|
372
368
|
alembic_config = pg_alembic_config(__file__)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.23.2rc3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.23.2rc2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/alembic/alembic.ini
RENAMED
|
File without changes
|
{dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/event_log/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres/run_storage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{dagster-postgres-0.23.2rc2 → dagster-postgres-0.23.2rc3}/dagster_postgres.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|